Go Back   xda-developers > General discussion > General


Reply
 
Thread Tools Search this Thread Display Modes
  #81  
Old 2nd April 2008, 11:36 PM
ItsDon's Avatar
ItsDon ItsDon is offline
Member
 
Join Date: Mar 2008
Posts: 86
Default

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!
Reply With Quote
Sponsored Links

  #82  
Old 3rd April 2008, 06:07 PM
kino-kino kino-kino is offline
Junior Member
 
Join Date: Mar 2008
Posts: 23
Default

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!
Reply With Quote

  #83  
Old 3rd April 2008, 07:26 PM
dgaud007's Avatar
dgaud007 dgaud007 is offline
Senior Member
 
Join Date: Oct 2007
Location: Ponce
Posts: 272
Default

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
__________________
AT&T FUZE
ROM:NRGZ28 Photon [Build 28014]
RADIO:1.14.25.35

"If God is throwing dice, and Einstein doesn't mind the chance..." B. Dickinson

Titanium System Panel
Store emails (not just attachments) to SD Card
Bluetooth File Transfer to SD Card (MS Default Stack)
My OperaMini 4.1b Default Browser MortScript
Full Screen Video Playback in WM6.1

Last edited by dgaud007; 3rd April 2008 at 07:42 PM.. Reason: credit where credit is due!
Reply With Quote

  #84  
Old 4th April 2008, 12:58 PM
Menneisyys Menneisyys is offline
Moderator
 
Join Date: Jul 2005
Posts: 5,316
Default

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.
Reply With Quote

  #85  
Old 4th April 2008, 12:59 PM
Menneisyys Menneisyys is offline
Moderator
 
Join Date: Jul 2005
Posts: 5,316
Default

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.
Reply With Quote

  #86  
Old 4th April 2008, 05:38 PM
Menneisyys Menneisyys is offline
Moderator
 
Join Date: Jul 2005
Posts: 5,316
Default

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.
Reply With Quote

  #87  
Old 5th April 2008, 09:07 AM
badbob001 badbob001 is offline
Senior Member
 
Join Date: Mar 2005
Posts: 164
Default

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

Last edited by badbob001; 6th April 2008 at 06:04 AM..
Reply With Quote

  #88  
Old 5th April 2008, 11:42 AM
JZ SmartMort's Avatar
JZ SmartMort JZ SmartMort is offline
Senior Member
 
Join Date: Mar 2008
Location: Lost in Hollywood
Posts: 612
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 Images
File Type: gif Screenshot Animation.gif (18.7 KB, 55 views)
__________________
Quote:
\\\\\\\
--\\\\ Change the way you use your Windows Mobile device with - JZ SmartMort.
--//// See screenshots & download it HERE or on SourceForge!
///////
Aiming to supplement everything Windows Mobile lacks.

Last edited by JZ SmartMort; 14th April 2008 at 10:00 AM..
Reply With Quote

  #89  
Old 5th April 2008, 12:01 PM
Menneisyys Menneisyys is offline
Moderator
 
Join Date: Jul 2005
Posts: 5,316
Default

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.

Last edited by Menneisyys; 5th April 2008 at 12:04 PM..
Reply With Quote

  #90  
Old 5th April 2008, 01:33 PM
Menneisyys Menneisyys is offline
Moderator
 
Join Date: Jul 2005
Posts: 5,316
Default

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.
Reply With Quote

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

Forum Jump


All times are GMT +1. The time now is 11:38 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.