Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
ItsDon
Old
#81  
ItsDon's Avatar
Senior Member
Thanks Meter 252
Posts: 1,853
Join Date: Mar 2008
Location: Dripping Springs, Texas

 
DONATE TO ME
Quote:
Originally Posted by chrisd1a1 View Post
Menneisyys,

Found this over on ppcgeeks, coded in C++. works the same as yours but does not need mortscript. might be worth adding to your first post as an alternative? to quote the developer (and with thanks to same)

"Attached is a beta app that will set opera mini as the default web browser and open links when clicked from email, etc. The app has been tested to work in wm6. It assumes that java is at /windows/jbed.exe and the Opera mini app is the first applet installed. This app is similar to the mortscript version, but, is coded in c+ and does not rely on delays."
Just a heads up for folks here that this .cab file works great on my Dash with WM6.1. I do still get the nag/warnings the initial time Opera is invoked but other than that it works like a charm! Thanks for posting it!
 
kino-kino
Old
#82  
Junior Member
Thanks Meter 0
Posts: 23
Join Date: Mar 2008
I used that mortscript with sucess with opera mini.

Unfortunatly it does not run well with that new opera mini beta 4.1

There seems to be something new in that beta.

The copied link does not get pastet in the field for the url anymore.

Does anyone know how to add the script, thanks!
 
dgaud007
Old
(Last edited by dgaud007; 3rd April 2008 at 06:42 PM.) Reason: credit where credit is due!
#83  
dgaud007's Avatar
Senior Member
Thanks Meter 11
Posts: 323
Join Date: Oct 2007
Location: Ponce
I have this working with 4.1 beta and some modifications to the script (see below).In my case, it kept duplicating or echoing each character in the url string, like wwwwww..xxddaa-- ... etc. so I replaced the SendKeys(url) statement with a for next loop. (this trick was suggested by Menneisyys on post # 16 of this thread). It is kind of slow doing it now, so please let me know if there is an easier fix or setting. Thanks,

#Open Address Box
SendLeftSoft
Sleep(1000)
SendLeftSoft
Sleep(1000)
#Clear default www. characters
SendEnd
SendBackspace
SendBackspace
SendBackspace
SendBackspace
Sleep(100)
#Input link
ForEach char in charsOf %url%
SendKeys(%char%)
Sleep(1)
SendBackspace
Sleep(1)
EndForEach
Sleep(100)
#Click OK
SendLeftSoft
 
Menneisyys
Old
#84  
Retired Moderator - OP
Thanks Meter 7
Posts: 5,381
Join Date: Jul 2005
Quote:
Originally Posted by dgaud007 View Post
I have this working with 4.1 beta and some modifications to the script (see below).In my case, it kept duplicating or echoing each character in the url string, like wwwwww..xxddaa-- ... etc. so I replaced the SendKeys(url) statement with a for next loop. (this trick was suggested by Menneisyys on post # 16 of this thread). It is kind of slow doing it now, so please let me know if there is an easier fix or setting. Thanks,

#Open Address Box
SendLeftSoft
Sleep(1000)
SendLeftSoft
Sleep(1000)
#Clear default www. characters
SendEnd
SendBackspace
SendBackspace
SendBackspace
SendBackspace
Sleep(100)
#Input link
ForEach char in charsOf %url%
SendKeys(%char%)
Sleep(1)
SendBackspace
Sleep(1)
EndForEach
Sleep(100)
#Click OK
SendLeftSoft


Cool, will link to your post in my next article.
Microsoft MVP - Mobile Devices, 2006, 2007, 2008. Make sure you follow my PPC & SP Mag Expert blog HERE.
 
Menneisyys
Old
#85  
Retired Moderator - OP
Thanks Meter 7
Posts: 5,381
Join Date: Jul 2005
Quote:
Originally Posted by chrisd1a1 View Post
Menneisyys,

Found this over on ppcgeeks, coded in C++. works the same as yours but does not need mortscript. might be worth adding to your first post as an alternative? to quote the developer (and with thanks to same)

"Attached is a beta app that will set opera mini as the default web browser and open links when clicked from email, etc. The app has been tested to work in wm6. It assumes that java is at /windows/jbed.exe and the Opera mini app is the first applet installed. This app is similar to the mortscript version, but, is coded in c+ and does not rely on delays."
Will definitely do.
Microsoft MVP - Mobile Devices, 2006, 2007, 2008. Make sure you follow my PPC & SP Mag Expert blog HERE.
 
Menneisyys
Old
#86  
Retired Moderator - OP
Thanks Meter 7
Posts: 5,381
Join Date: Jul 2005
UPDATE (04/04/2008): Now that Opera Mini 4.1 beta has been released (see THIS) with a, by default, slightly modified address input field, you’ll need a modified version available HERE.

Also, there’s a full native (C++), MortScript-free implementation of the invocation script HERE. It’s (still) not compatible with 4.1 unless you untick "Direct address input" in Settings.
Microsoft MVP - Mobile Devices, 2006, 2007, 2008. Make sure you follow my PPC & SP Mag Expert blog HERE.
 
badbob001
Old
(Last edited by badbob001; 6th April 2008 at 05:04 AM.)
#87  
Senior Member
Thanks Meter 0
Posts: 191
Join Date: Mar 2005
If your device supports control-v, then this mort script works for me on 4.1 with direct address input still enabled. Pasting is certainly much faster than sending characters to the device one at a time. I mainly added the "if (direct_address_input = True)" parts to send extra keystrokes to get to the enter symbol option and clear out the existing address. Then the script can paste the url as before. If you use this script with 4.0, then just set direct_address_input = False and it work as before.

Only tested it briefly so it may not be perfect. Be sure to change the beginning variable values to suit your device.

Update: using ctrl-home and ctrl-end to simulate ctrl-a, the script is slightly faster due to fewer steps.

Code:
direct_address_input = True
jvm_string = "\Program Files\Jbed3DMod\jbed.exe"
applet_string = "-run s1_"
delay_if_jbed_running = 3000
delay_if_jbed_not_running = 8500

if (substr(url,1,1) eq " ")
	url = substr(url,2)
EndIf

If ( Find( "file:///", ToLower(url) ) )
	Run("\Windows\iexplore.exe", url)
Else
	Call OpenOM
EndIf

Sub OpenOM
	If (ProcExists("jbed.exe"))
	   Run(jvm_string, applet_string)
	   sleep(delay_if_jbed_running)
	Else
	   Run(jvm_string, applet_string)
	   sleep(delay_if_jbed_not_running)
	EndIf
	
	SendLeftSoft
	Sleep(100)
	SendLeftSoft
	Sleep(100)

	if (direct_address_input = True)
		sendup
		Sleep(100)
		sendup
		Sleep(100)
		sendcr
		Sleep(100)
	Endif
	
	SetClipText(url)
	
	SendHome("",1,0)
	sleep(100)
	SendEnd("",1,1)
	sleep(100)
	
	SendCtrlKey("V")
	Sleep(100)
	SendLeftSoft
	sleep(100)

	if (direct_address_input = True)
		sendcr
	endif
EndSub
 
JZ SmartMort
Old
(Last edited by JZ SmartMort; 14th April 2008 at 09:00 AM.)
#88  
JZ SmartMort's Avatar
Senior Member
Thanks Meter 5
Posts: 754
Join Date: Mar 2008
Location: Hollywood
Default Full MortScript Solution for Windows Mobile Devices - JZ SmartMort

Hi everyone,

JZ SmartMort is a new Mort script pack of mine. It has some logic enhancements to ones in this thread, like a self installer/remover, also not having to deal with finding your java application ID for Opera, my script figures it out. It has clipboard history ability and many more features. Screenshot is attached. You can find more info HERE or HERE. Read below for a little more specific info. Thanks to this post I learned a lot and now contributing something worthwhile IMHO.

The script pack is meant for SmartPhones and Pocket PC devices running Windows Mobile 5 and above with Mort's MortScript installed as the macro engine mapped to the Notes hardware button.

Copy/Paste: This was the first task since SmartPhones don't have the function.

Clipboard History: Added ability to select the last 10 items copied to the clipboard.

Browsing: Opera Mini 4 & Opera Mini 2.00 Mod are free, some sites look and feel better using Opera, so I wanted to make it a system level browser with the option to revert to IE as needed. Also added support for the non-free version of Opera Mobile.

IE Favorites: Ability to open Internet Explorer favorites under \Windows\Favorites where .url files are stored.

Java: TAO Intent Java Midlet which came on my Cingular 3125 phone, is garbage in comparison to Jbed. Esmertec Jbed is about twice as fast and I highly recommend using it, so I added support for jbed.exe.

Activation: JZ SmartMort comes with a self installer/remover. Once installed, script is activated by pressing the Voice Notes button.
Attached Thumbnails
Click image for larger version

Name:	Screenshot Animation.gif
Views:	58
Size:	18.7 KB
ID:	79500  
 
Menneisyys
Old
(Last edited by Menneisyys; 5th April 2008 at 11:04 AM.)
#89  
Retired Moderator - OP
Thanks Meter 7
Posts: 5,381
Join Date: Jul 2005
Quote:
Originally Posted by JZ SmartMort View Post
Hi everyone,

JZ SmartMort is a new Mort script pack of mine. It has some logic enhancements to ones in this thread, like a self installer/remover, also not having to deal with finding your java application ID for Opear, my script figures it out. It has clipboard history ability and many more features. Screenshot is attached. You can find more info HERE or HERE. Read below for a little more specific info. Thanks to this post I learned a lot and now contributing something worthwhile IMHO.

The script pack is meant for SmartPhones and Pocket PC devices running Windows Mobile 5 and above with Mort's MortScript installed as the macro engine mapped to the Voice Notes hardware button.

Copy/Paste: This was the first task since SmartPhones don't have the function.

Clipboard History: Added ability to select the last 10 items copied to the clipboard.

Browsing: Opera Mini 4 & Opera Mini 2.00 Mod are free, some sites look and feel better using Opera, so I wanted to make it a system level browser with the option to revert to IE as needed. Also added support for the non-free version of Opera Mobile.

IE Favorites: Ability to open Internet Explorer favorites under \Windows\Favorites where .url files are stored.

Java: TAO Intent Java Midlet which came on my Cingular 3125 phone, is garbage in comparison to Jbed. Esmertec Jbed is about twice as fast and I highly recommend using it, so I added support for jbed.exe.

Activation: JZ SmartMort comes with a self installer/remover and the script is activated by pressing the Voice Notes button.
Wowz! Great! Will soon post an article update!
Microsoft MVP - Mobile Devices, 2006, 2007, 2008. Make sure you follow my PPC & SP Mag Expert blog HERE.
 
Menneisyys
Old
#90  
Retired Moderator - OP
Thanks Meter 7
Posts: 5,381
Join Date: Jul 2005
UPDATE (04/05/2008):

XDA-Devs user JZ SmartMort has released a very promising title making Opera Mini the system-level browser much simpler and offering a LOT of additional functionality. See his thread HERE. Note that he also posted a somewhat shorter post HERE (in THIS thread, should you also want to read the possible, future discussion of his app).
Microsoft MVP - Mobile Devices, 2006, 2007, 2008. Make sure you follow my PPC & SP Mag Expert blog HERE.

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Guide to Using Adobe Air on Android

When writing an app with performance in mind, you most likely want to write it native code using the … more

Boot Animation Paradise for your Android Device

The default boot animations on any device, no matter whichmanufacturer, are generally pretty … more