yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] badbob001:
Try the 0.09b version I just uploaded. When sending the url text, it specifies that the keys go to the 'Enter Address' window explicitly.

How do you know that the script always thinks opera mini is in portrait or not?

method1: to select enter address menu:

portrait: send leftsoft,selftsoft

landscape: send rightsoft,rightsoft

then if the 'Enter Address' window doesn't appear, it'll assume DAI is enabled and then for both methods:

portrait: senddown,sendcr

landscape: sendleft,sendcr

to select 'insert symbol'. The end result for any method is that the full-screen enter address screen should appear. If it doesn't, then something went wrong.

So if you notice the wrong menu opening, then it got the orientation wrong. In this version, it writes some debug information to file StartOperaMini_last.txt after a link is invoked.

Version: 0.09b
Orientation: portrait
UpperLeft: 527467
UpperRight: 527459
Active Window: Enter Address
OS: 5.2.1711
Mort: 4.1.0.5
Settings: kill_jbed(0)paste_type(shift-insert)opera_control(method2)

Here is what I look for:

Now if in landscape your upper-left color matches one of the portrait colors, then it may mistakenly think it's portrait.

And of course, the actual orientation of your device should not matter. I'm assuming that if you use your device in landscape mode and opera mini is in portrait mode, the script should correctly see that opera mini is in portrait mode.

Doesn't your device automatically go into landscape mode when the keyboard is opened? So you shouldn't need to set the orientation in opera itself since I think that's for portrait-only devices. If you set opera to landscape and then open the keyboard, wouldn't then Opera Mini rotate clockwise and have its top toward the dpad of your device?
[Windows Mobile Apps and Games] badbob001:
For those people that prefer to be prompted for what browser to use for each link, does having the exclude list make you reconsider disabling the prompt?

If you encounter a link that you prefer to be opened in IE instead, just run setup, add an entry to the exclude list, and then click Open last link to have the link open in IE. Then edit the exclude list so similar links open in IE automatically.
[Windows Mobile Apps and Games] mskovrinskie:
.9 doesn't work on my BlackJack II now with shift+insert+trim. It pastes the URL in then starts backspace/deleting. It continues to do so infinitely in OperaMini or even in the shell. I need to kill MortScript to get my phone back.

I have not tried .9 yet on the Duo (will do that tonight and get back to you). As far as knowing if it thought it was portrait or landscape, I verified this by adding some debugging messaging statements in the script in your function that detects for landscape or portrait.
[Windows Mobile Apps and Games] badbob001:
Thanks for bringing that to my attention. Very strange bug. Who would think that this is correct:

repeat 1
sendright
Sleep(wait_time_between_keys)
sendbackspace
Sleep(wait_time_between_keys)
endrepeat

but this is wrong:

trim_length = 1
repeat trim_length
sendright
Sleep(wait_time_between_keys)
sendbackspace
Sleep(wait_time_between_keys)
endrepeat

This seems to work:

trim_length = 1
repeat(trim_length)
sendright
Sleep(wait_time_between_keys)
sendbackspace
Sleep(wait_time_between_keys)
endrepeat

0.09b fixed and re-uploaded.
[Windows Mobile Apps and Games] mskovrinskie:
OK, .9 on the Pantech Duo does not work and here's the last log:

http://c.moreover.com/click/here.pl?j1390377590&f=2238

Version: 0.09b

Orientation: portrait

UpperLeft: 16249847

UpperRight: 0

Active Window: Enter Address

OS: 5.2.1620

Mort: 4.1.0.5

Settings: kill_jbed(1)paste_type(type)opera_control(method1)

The Duo is a strange phone. It is a portrait smartphone by default, but then has a slider for a keyboard that rotates to landscape.

I tried running again with different settings and saw this:

http://c.moreover.com/click/here.pl?j1390377590&f=2238

Version: 0.09b

Orientation: portrait

UpperLeft: 16249847

UpperRight: 0

Active Window: Enter Address

OS: 5.2.1620

Mort: 4.1.0.5

Settings: kill_jbed(1)paste_type(shift-insert)opera_control(me
[Windows Mobile Apps and Games] badbob001:
So it looks like you're running OM portrait and in fullscreen mode. Is that correct? The active window right before the script sends keys is correct.

Maybe mortscript is just not able to send characters to your device while actual buttons like leftsoft and backspace work. Have you tried the latest beta version of Mortscript? http://www.sto-helit.de/index.php?module=download&action=view&entry=125

Also, which version of jbed are you running?
[Windows Mobile Apps and Games] mskovrinskie:
Yes, OM portrait in fullscreen. The same thing happens when not fullscreen.

I was using the released version of 4.1. I just tried 4.11b7 and it fails too.

I have tried JBED cloudyfa, rubeiro, and ebenezer.

One odd thing with JBED on a portrait smartphone is that some of the windows don't go fullscreen. When in Opera mainscreen it is fullscreen, but the applet manager window and the Address Window actually end up showing "Esmertec Jbed MIDP 2.0: in the title bar and an empty area at the bottom of the screen that shows through to the prior app. Could this by why this is happening? This happens with all of the JBED installs on Smartphone portrait screens.
[Windows Mobile Apps and Games] badbob001:
This is a known problem of jbed on smartphones. I have the same issue and shouldn't be related.

As for your Duo issue, one idea was to use tinyurl.com to create a link short enough for you to memorize so you can type it in manually.

http://tinyurl.com/api-create.php?url=http://www.google.com/

produces:

http://tinyurl.com/161

On PC/PocketPC, mortscript supports a download command so I can request and download the tinyurl and display it to you. I can't do the same on smartphones unless I use IE to replace the function of download() to display the tinyurl.

You love opera mini enough to want to try this? Just copy this over your old version, run Setup and select 'tinyurl' as a Paste Type. Then try a link. It'll go all the way to the Address Input screen and then launch IE to show you the tinyurl. Once you got it memorized, just hit back to switch back to opera and type in the url. It will speed things up once you have done this a few times so you can just press Menu > Previous Addresses, bring up an old tinyurl and just edit the last few characters...
[Windows Mobile Apps and Games] badbob001:
Since we're trying silly things at this point, back when Menneisyys and I were trying to figure out how to get all this to work on WM6, one idea I had was to upload the link to a page and just have that page bookmarked in Opera Mini for easy access.

In the ideal situation, the script would launch IE to send a command like this:

http://somewebserver.com/joesmoe/create-redirect-page?url=http://myemailurl.com/yo

and a page is created/updated at

http://somewebserver.com/joesmoe/

that just contains a redirect command to the specified url. So then in Opera Mini, just go to

http://somewebserver.com/joesmoe/redirect-page.html

and it'll automatically go to the email link.

I wonder if there are any existing sites or services that can do something similar. I guess you can even use a blogging site and send it links and then view those links from opera. The important thing is that the link needs to be uploadable from within the url, like how tinyurl.com does it:

http://tinyurl.com/api-create.php?url=http://www.google.com/
[Windows Mobile Apps and Games] mskovrinskie:
I do like OM and the tinyurl test script does work, but it kind of loses the simplicity I am looking for.

I think I'll just stick with the Tilt and the BlackJack where .8 works perfectly. :)
[Windows Mobile Apps and Games] badbob001:
Re-reading your testing on the Duo, it does look like if you press OK to get out of the Address Input window, mortscript is able to type text into the Direct Address Input field. Am I correct on this?

In this test version, I have a setting in Setup called: 'Use Direct Address Input'. If you set it to yes, then the script will assume you have DAI enabled in opera and will try to enter the url directly into that field and not go through the 'insert symbol' route.

On my pocketpc device, this worked well with Paste Type: type-then-delete. Type-and-delete didn't work as well as it left some duplicate letters. I really hope mortscript fixes this duplicate letter issue in the next release! Since your device has a full keyboard, DAI may not be screwed up for you like on devices with number pads. Tried this on my smartphone and it can type in the url but messes up the url if it contains any numbers.
[Windows Mobile Apps and Games] mawst95:
One thing I like is to use a Choicedefault for browser. Give the option to choose, but with say a 3 second time out that will automatically chose your default browser.
[Windows Mobile Apps and Games] mskovrinskie:
.10btest2 works great with the option "Use Direct Address Input" and paste type: type then delete on the Pantech Duo. It works in both landscape and portrait.

Thanks for all your help on this!
[Windows Mobile Apps and Games] caretaker22:
Thank YOU

Mr. BAD!!

I just wanted to give you major props for this program... im really blown away thanks alot for your hard work! WOW!!

Edit- Is there anyway to create a script when click on youtube video, it will open play video/save/copy for tcpmp player? The only reason i use iexplore is for youtube. If a script can be create using mortscript to open this pop box linked to tcpmp player/flashbundle it will be the ultimate explorer! thanks
[Windows Mobile Apps and Games] francesco85:
it's possible to have a similar script that launch others applets with this feature?
[Windows Mobile Apps and Games] MaXTSM:
Hello M. Bad and thanks for this amazing work, this is exactly what i was looking for.

However i'm an opera mini 3.0 user (have no choice, only proxies used by 3.0 version are allowed by my carrier), your script works fine for everything except for url links. when i click a link opera mini is launched, but the "search" box is opened instead of the "enter address" box - then i get message "Did not find the address input window after xx seconds".

I suppose version 3 has different menu organisation that cause that problem, i tried to edit the script but could solve the issue. Could you please help or give me a clue ?

Thanks a lot
[Windows Mobile Apps and Games] badbob001:
I haven't tested Opera Mini 3 with my script until you mentioned it. Does control method2 work for you? If not, try this edit in version 0.09b:

change this starting on line: 651:

if (opera_control eq "method1")
if (OMorientation eq "portrait")
SendLeftSoft
Sleep(wait_time_between_keys)
SendLeftSoft
elseif (OMorientation eq "landscape")
SendRightSoft
Sleep(wait_time_between_keys)
SendRightSoft

to

if (opera_control eq "method1")
if (OMorientation eq "portrait")
SendLeftSoft
Sleep(wait_time_between_keys)
[B]SendCR[/B]
elseif (OMorientation eq "landscape")
SendRightSoft
Sleep(wait_time_between_keys)
[B]SendCR[/B]

Over the past few versions, I had been alternating from sendleftsoft,sendleftsoft or sendleftsoft,sendcr to open the address menu. Sendleftsoft,sendcr sometimes doesn't work on my pda so I tried the other way. Method2 uses #1 to bypass the menu, but it may not be supported by your device. I'll test Opera Mini 3 in future versions. Thanks for the input.
[Windows Mobile Apps and Games] badbob001:
This script will create a Start Menu subfolder called midlets that will contain shortcuts to all your midlets. Give it a try:
[Windows Mobile Apps and Games] badbob001:
I don't know of a way for a script to know what you are clicking on in Opera Mini. You should ask the creators of Opera Mini to add such a feature. You may want to try one of the numerous apps out there made just for browsing online videos like vtap: http://www.vtap.com.
[Windows Mobile Apps and Games] badbob001:
Wait for the next version... :)
[Windows Mobile Apps and Games] N'da:
an error

Hello, i've tried all the version but i've got the same error "unknow command setchoiceentryformat line: setchoiceentryformat (16,9, "courier")". I think it's a font error but i got cour.ttf in my windows folder. Can i change something in the script to work with tahoma.ttf or download the right courier font ?

Thanks for help.
[Windows Mobile Apps and Games] badbob001:
What version of mortscript are you running? An older version of mortscript may not have that command. I've only test mortscript version 4.1 and the newer betas.

Update: I've checked the mortscript 4.0 documentation and it doesn't mention the SetChoiceEntryFormat command.

A simple workaround is to just comment out that line:

Change:

SetChoiceEntryFormat( 16, 9, "Courier" )

to:

[B]#[/B]SetChoiceEntryFormat( 16, 9, "Courier" )
[Windows Mobile Apps and Games] N'da:
You were right because after installing your script i've installed another (tomtom switcher) that bring back my mortscript from 4.11beta to 4.0, now it's working like a charm. Thanks for your quick answer.
[Windows Mobile Apps and Games] MaXTSM:
I forgot to test method2 ! So, yes, we are making progress : with method2 the "enter address" box is shown correcly. However here is how the text in that box looks like :

www.#4#4#4#4#4#4#4#4#4#4#4#4#4#4#4#4#4#4#4

"www." is not deleted and the script keeps adding "#4" until timeout is reached. Any idea about that behaviour ? I though there was a problem as I use opera mini 3.0 french version so i replaced the "Enter Address" occurences by the french name of the window, but it seems it did not change anything.

Thanks a lot for your help

Max
[Windows Mobile Apps and Games] spangelsaregreat:
Hi

I have all the correct JBED, MortScript and Opera Mini 4.1 installed on my MDA Compact 3.

However, when ever I run the short cut it comes up with a message

"4.1.0.5 v0.09b

Java did not run after 5 seconds

Run Setup?"

I can see that JBED does run for a second or two but then seems to close before the above message is displayed.

Any solutions.

Thanks
[Windows Mobile Apps and Games] badbob001:
Are you using jbed 3.1? On my device, only jbed 3.1 worked correctly with method2. But you can stay with method1 if you just do the small edit I suggested in my earlier post.

The #4 may repeat when it's still waiting for the opera interface to show up. With jbed not currently running, does it start without complaint if you just run StartOperaMini directly and not via clicking a link?

I never thought about the localized name of the 'Enter Address' window. Unless there is a listing of all the different language version of that text, I guess users will have to manually edit that text for now.
[Windows Mobile Apps and Games] badbob001:
I'm guessing that when the script sends a leftsoftkey to open the menu and then another leftsoftkey to click 'Enter Address', the selection may move down to Exit for some reason and quit Jbed. You can try method2 if you have jbed 3.1, which uses #1 to get to the address window.
[Windows Mobile Apps and Games] francesco85:
badbob001 thanks for this script!

attached zip file fix a missing bracket.

i've modified the script to create a StartMenu\Programs subfolder that contain shortcuts.. (changed first line from SystemPath("StartMenu") to SystemPath("ProgramsMenu"))
[Windows Mobile Apps and Games] caretaker22:
Hey, Bad

Could you write a script which start up flashbundle and tcpmp when surfing youtube?
[Windows Mobile Apps and Games] badbob001:
Thanks for fixing that.

As for the shortcuts, the issue is that on WM Standard, shortcuts are normally in Start Menu\ while on WM Pro / Classic, it's in Start Menu\Programs\. To satisfy both devices, I could have mortscript detect which OS version it is and use Start Menu\ for WM Standard and Start Menu\Programs\ for everything else. Does anyone have any objections to that?
[Windows Mobile Apps and Games] badbob001:
From what I have read, flashbundle only works with IE or possibly other direct access browsers. Opera Mini doesn't access websites directly but go through a proxy at Opera. Isn't flashbundle automatically started / invoked when you try to view a flash video from IE?

From: http://eazyvg.linuxoss.com/2007/08/05/
[Windows Mobile Apps and Games] spangelsaregreat:
Hi,

Changed it to method2 but it does exactly the same thing.

Any more ideas?

Regards
[Windows Mobile Apps and Games] badbob001:
Did you use the selector.utf patch command? Try running jbed by itself and see if your midlets are still coming up. If not, then your selector.utf is damaged and that may be the cause of it shutting down. If my script is the cause of the damage, restore the backup in the script folder.

Another cause is if you uninstalled / reinstalled opera mini and thus you need to tell the script re-detect your new settings.

If your selector.utf is okay or untouched, then try this:

Download 0.10b_test2 from an earlier post:

http://xdaforums.com/showthread.php?t=384271&page=8#71

Then use method2 and set 'Use Direct Address Input' to Yes. This way, no softkeys are pressed.
[Windows Mobile Apps and Games] spangelsaregreat:
Nope,

That didn't work. Tried all of the above and completely reinstalling MortScript etc but it still is doing the same.

Any more ideas?

Regards
[Windows Mobile Apps and Games] badbob001:
What if you just run the script / shortcut directly instead of clicking on a link? This will show if the script can start your midlet directly.
[Windows Mobile Apps and Games] spangelsaregreat:
Hi,

Tried that to but it still does the same thing. Very frustrating.

Opera still runs fine if I start up Jbed and run it from there.

Regards
[Windows Mobile Apps and Games] badbob001:
Have you created a shortcut to directly run Opera? I'm just curious if direct-run works at all for you.

See this post:

http://xdaforums.com/showthread.php?t=384271&page=9#88

Use the script to create shortcuts to your midlets. Then see if the direct-run shortcut works. If it still doesn't work, then please zip and post your selector.utf and StartOperaMini_ini.txt.
[Windows Mobile Apps and Games] caretaker22:
Yes, but i love opera mini with your scripts i think its just perfect! The only thing is missing is accessing youtube video. I guess im stuck with IE when i want to watch youtube. Thanks for the reply!
[Windows Mobile Apps and Games] spangelsaregreat:
Hi,

That shortcut also does not work.

I have checked my Mortscript folder and it does not have a selector.utf file. It does have the other one. Is that maybe the problem?

Regards
[Windows Mobile Apps and Games] badbob001:
Selector.utf is a file created by your jvm as a central database of your installed midlets. It's usually in \windows\appdb\ but it may also exist in [path to your jvm]\appdb\ like "\storage card\Esmertec Java\Appdb\selector.utf".

The script first finds the location of jbed.exe from a registry setting.

Then it tries to find selector.utf from a registry setting.

Failing that, it tries [path to your jvm]\appdb\.

Failing that, it tries \windows\appdb\.

If you had installed multiple versions of jbed with multiple selector.utf files, it is possible that it assumed the wrong selector.utf.

Looking at StartOperaMini_ini.txt will show you which jbed.exe it has chosen and the parameters to run Opera. Then in selector.utf, if the suite number for opera matches the _ini.txt parameters, then direct launching opera should work.

Not sure if this is related, but you may need to 'application unlock' your device if it isn't already. It's basically a registry change but you can also use this app:

http://mobile.surrealnetworks.com/AppUnlockReg.htm
[Windows Mobile Apps and Games] spangelsaregreat:
Hi,

From checking the registry the device is app unlocked.

I have attached the selector and StartOperaini files

http://rapidshare.com/files/113283552/Temp.rar.html

Regards
[Windows Mobile Apps and Games] badbob001:
You have attached StartOperaMini_help.txt instead of StartOperaMini_ini.txt. It's just text so you can copy and paste the contents here if you like. If you still have the \Start Menu\Midlets\ shortcuts, you can open the 'Opera Mini 4.1' shortcut in notepad and copy and paste the contents here.

What is the full version number of the jbed you are using?
[Windows Mobile Apps and Games] spangelsaregreat:
Hi,

The text for StartOperaMini_ini.txt is

*|4.1|\Esmertec Java\jbed.exe|-run s0_|kill_jbed(0)paste_type(shift-insert)opera_control(method2)dai_enabled(1)

I appear to have two versions of Jbed. I have version number

20070808.2.1

which is installed in the main windows directory and also version number

20080222.3.1

which is installed in the Esmertec Java directory in the root of the phone.

I can run Opera from the earlier version but it will not run using the later version (it just defaults to a blank screen with an OK soft key which when pressed takes you back to the main Java Launch screen).

So it would appear your script is running fine, it is just that the newer version of java does not want to run.

Any ideas why?

Regards
[Windows Mobile Apps and Games] spangelsaregreat:
Hi

Reinstalled opera and that solved the problem.

Thanks for your assistance.
[Windows Mobile Apps and Games] MaXTSM:
Hello M. badbob001,

I finally got it working with the following setup :

- opera mini 3.1 english version found here : http://mini.opera.com/?rel=3

- jbed 3.1 (was using 2.1 previously)

- input method2, or method1 with the modification you mentionned

Then I had to change a few things :

- remove a bracket at line 1140 because I had a "missing bracket" error

utf_filename = "\Windows\Appdb\selector.utf")

- change opera name to support "opera mini 3" on line 120

opera40_string = "Opera Mini 3,"

- and finally change all "Enter Address" string occurences with "Enter address" !! In Opera Mini 3 the address box name has a lowercase "a" and it seems it makes the difference !

I'm in a very particular case where i can't use version 4, but if it may help other people in my case, the scipt I modified as explained above it attached here

Now i got to test a bit more with usage... Thanks a lot for your help
[Windows Mobile Apps and Games] Menneisyys:
Bob, congrats - really cool! BTW, I've directly linked to this thread as well from the original and just working on an entirely updated, multi-platform tutorial on Opera Mini 4.1 invocation.
[Windows Mobile Apps and Games] athome93:
There is the official 4.1 out and this script don't work with it !

http://www.operamini.com/download/
[Windows Mobile Apps and Games] badbob001:
Can you be more specific on how the script doesn't work? I looked at 4.1 and it seems to behave the same. One difference is that Direct Address Input, now known as Auto-Complete Address Input, is now disabled by default. So you should update your settings accordingly (if you deviated from the defaults).
[Windows Mobile Apps and Games] michd43:
ok, I have a really bad question to ask. I want to write my own scripts but, (here it is :)) I dont know how you guys are saving the mscr. file ext. Is there an editor program or something? I tried using notepad, word, and even my xml editor. I can't figure it out. Thanks in advanced.
[Windows Mobile Apps and Games] spangelsaregreat:
Hi,

It seems to work okay with the final version of OperaMini for me.

The only issue is it asking for permission to connect to the internet at each new session? How do you revert it back to automatic connection (which worked in the last beta I used)?

Regards
[Windows Mobile Apps and Games] Zenoran:
Very nice!

I'm going to throw this out there as a feature request... dont flame plz! but I thought it would be cool if there was a way to update the script to switch between IE and opera...

i.e. if you have the script bound to your IE button on your phone... u click click once to start opera... then if you're browsing around and find a site that doesn't like opera mini (lots of these, specifically with forms) and you need to switch to PIE you could click the button again.. logic would be if you're in Opera/IE and it is the current focus, switch to Other app and launch same URL... if Opera/IE isn't the focus then launch/switch as it does previously...

might make for a nice option to turn on and off based on user preference