yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] neiltoe:
This works just the same no need for Mortscript.

http://xdaforums.com/showpost.php?p=2156987&postcount=1

As for Opera Mini 4.1 untrusted asking for permission grab a signed version there are 3 on the wap page.
[Windows Mobile Apps and Games] Feco:
Thank you so much for this mate, I was really pissed of with the mortscprit.. :D:D

Works great!
[Windows Mobile Apps and Games] badbob001:
Since there is no current way to know what website opera mini is at, you can't just switch to another browser and go to the same website. If you're taking about opening an email link in opera and then pressing the IE button again to open the same link again in IE... I'm not so sure about that. What if you're using Opera Mini, switch away to run another app, and then want to switch back to Opera Mini. Naturally, you would run the shortcut / press the IE button again to switch back. It would be annoying for IE to popup instead.

I do have the 'open last link' option in Setup where you can add a url to the exclude list and then have it open in IE. In the next version, I have a separate shortcut to launch the last link in the alternative browser and if you have prompts enabled, there is a prompt option to open the last link in the alternative browser.
[Windows Mobile Apps and Games] Zenoran:
Ahhh this would put a damper on the whole thing... I'm not too familiar with Opera Mini yet but wasn't sure if there was a way to actually copy current address to clipboard based on keystrokes.

Well, this is the part where I was saying the action would depend on whatever window is currently the focus.. Again, not familiar with Mortscript but I would imagine there is probably a way to test to see if Opera is the window in current focus???

All easily shot down anyways if there is no way to get the address from opera though... thanks :)
[Windows Mobile Apps and Games] badbob001:
Well, no one said it is impossible. We'll see...

Interesting find: Opera Mini 4.1 Final uses the midlet name 'Opera Mini', which is the same as Opera Mini 4.0. So installing Opera Mini 4.1 Final will overwrite Opera Mini 4.0. If you have Opera Mini 4.1 beta installed, Opera Mini 4.1 Final will install along side it. Can be confusing if you expected it to overwrite 4.1 beta.
[Windows Mobile Apps and Games] ramontrotman:
congrats on a fine app sir. works like a charm.
[Windows Mobile Apps and Games] badbob001:
Found some bugs with quickswitch if Use Direct Address Input is enabled. Fixed and re-uploaded.

With all this switching between opera mini, jbed 3.1's suspend problem can easily occur. One workaround is to use method2 and disable Direct Address Input in Opera Mini so the script has to just send a #1 to open the address input window.
[Windows Mobile Apps and Games] TheETENguardian:
Pocket internet explorer icon

Hej i like this script a lot! works like a charm! But i notice a little side effect thats starting to annoy me now.. The internet explorer icon has been changed to the yellow mortscript icon. Is there a way to change this ? I searched the registry to change the icon but i cant find it anywhere :S

Anyone who knows how to change it back?
[Windows Mobile Apps and Games] badbob001:
v0.10b sp2 released

Added context-menu copy/paste/select options so quickswitch works on my pda. Also, copy/paste/select options can be assigned differently for OM and IE, which is important since context-menus don't work in my JVM. Also added prompt and prompt timeout options to quickswitch.

For context menus to work, it of course requires a touchscreen device and knowledge of how your context menu is structured. On my PPC, a context-menu shows:

1. Undo

2. Cut

3. Copy

4. Paste

5. Clear

6. Select All

If the location of the Copy, Paste, and Select All commands are different, run Setup and adjust their position values.

See the help file, also attached, for more info.

Most likely your shortcut content (it's just a simple text file) is:

21#:MSPIE

where :MSPIE is in a registry setting that refers to iexplore.exe.

HKLM\SOFTWARE\Microsoft\Shell\Rai\:MSPIE
1=iexplore.exe

I've modified the :MSPIE value so it refers to the script instead, which is why you're seeing a different icon.

On my WM6 device, changing the :MSPIE value does not affect the icon since the contents of the shortcut is:

21#:MSPIE?:pieapp

Where the '?:pieapp' is a shortcut feature to change the icon of a shortcut. So :pieapp refers to:

HKCR\pieapp\DefaultIcon
=shellres.dll,-8314

HKCR\pieapp\SelectIcon
=shellres.dll,-8315

So :pieapp refers to an icon stored in file shellres.dll.

I'm looking at WM6.x devices so if you have an earlier device, you may not have :pieapp.

If the above doesn't help you, try going to your device's windows folder and see if iexplore.exe shows the correct icon. If it does, then the icon should be embedded within the .exe. So if you change your shortcut to:

21#\windows\iexplore.exe

it should show the same icon for the shortcut.
[Windows Mobile Apps and Games] Zenoran:
ya im not sure why :MSPIE was changed to run mortscript? is that necessary?
[Windows Mobile Apps and Games] badbob001:
Perhaps it's not clear, but the ONLY purpose to register the script is so links in emails, contacts, appointments, and documents are handled by the script. If you don't care about those rare situations, just run setup and unregister the script. And even if you click on an email link and ie opens, you can just quickswitch to om.
[Windows Mobile Apps and Games] badbob001:
0.10b SP3 posted

More quickfix tweaks. Streamlined the startup code so the decision to quickswitch or not occurs more quickly. In general, starting the script should be much faster.

More commands when using quickswitch prompt so the prompt is more like a context menu allowing to perform an action with the current url or task-switch between browsers:

From the help file:

Also added a sample bookmarks.mscr script that you can add to your list of commands and use with quickswitch prompt to have a unified bookmark list between IE and OM. Gives you an idea of all the fun stuff you can do once you have the ability to grab the url from the current browser.

Since it's not absolutely necessary to update the registry or add start menu shortcuts to 'Start Opera Mini', I've removed those automatic options on new installs.

Added a 'Add filename to param' button in the commands editor so it's easier to choose a mortscript file when defining a new command. Practice with the included bookmarks.mscr file.

Not sure if anyone has noticed, but the items in many prompt screens are now numbered so you can get to a particular item faster by pressing a number. Good when paired with the prompt timeout feature. On my wm standard device, I have to hold down a keypad number for the script to register the key press. May not work on all device types.

Added before but not mentioned: added a mortscript version check to make sure you have mortscript 4.1 or higher. Good against other scripts that include an outdated version of mortscript as part of the install.

As always, view the help file for more details.
[Windows Mobile Apps and Games] badbob001:
Added TO DO / KNOWN BUGS: to the first post.
[Windows Mobile Apps and Games] tmknight:
Keep up the good work!

Just a comment, not a complaint, but some of the dialogues are a long and do not display properly on square displays (e.g. Treo 750).

In the attachment I believe the OK button at the bottom is obscured - of course since it's just OK, easily worked around. I don't remember the dialogue that I first noticed this, but it had a yes/no that was mostly obscured.

Like I said, just an FYI.

Cheers!
[Windows Mobile Apps and Games] badbob001:
This seems to only happen on touchscreen devices. On smartphones, all windows are fullscreen and have scrollbars. On other devices, dialog windows are sometimes windowed with no scrollbars. The lack of scrollbars can be annoying if you want to display a lot of text (check out the About / Help). This is really a quirk with Mortscript and I'm not sure if there is anything I can do about it. The alternative is to save the text to a file and have Word open it (yuck).
[Windows Mobile Apps and Games] TheETENguardian:
I have adjusted that shell\rai\internet explorer key back to 1=iexplore.exe and that did the trick .. that pieapp thingie you mentioned i didn't understand but at least i changed that first key and everything still works hehehe... so thank you
[Windows Mobile Apps and Games] strikeone:
I just want to thank badbob001 again for the creation & development of this script. Thanks!
[Windows Mobile Apps and Games] ems275:
Question

By the Way this script is great!

Is there any way to adapt it to also add Skyfire to the Browser Choice List?

I tried to do it myself but without any luck. I could not find any reg Entries for Skyfire, except one for Install Location under HKLM\Software\Apps\Skyfire browser. But that is it. the Reg entry points to where it is installed.

This addition would be greatly beneficial. :)

Thanks in Advance.
[Windows Mobile Apps and Games] del4:
Autoswitch to Landscape

Thanks badbob001 for this awesome script. Had nearly run out of time with the 30-day trial of Opera Mobile, so I was checking out other options when I came across this which makes Opera Mini a more-than-worthy alternative! Only thing I really miss is tabs, but I'm sure that'll show up in a release somewhere down the line...

In my attempts to customize the script for my personal preferences, I tried to edit the script to do this myself, but obviously missed something, because it isn't working...:o I'm trying to have the script check the screen orientation and if it's in portrait mode, automatically switch to landscape view, launch Opera Mini as it does now, then switch back to portrait mode.

Could someone help me with this?

Might also be an option that could be incorporated into the Settings part of the script for use by others???

TIA
[Windows Mobile Apps and Games] badbob001:
In Setup > Command List, I tried adding skyfire.exe, which in located in \Program Files\Skyfire\ and used the [Test] button to run:

\Program Files\Skyfire\skyfire.exe http://google.com

While skyfire launched, it did not go to google.com. So either it doesn't take a url as a parameter or parameters need a specific format.
[Windows Mobile Apps and Games] badbob001:
I would create another script that would:

1. Check device orientation using screen(type)

2. Rotate screen using rotate(orientation)

3. Run StartOperaMini script

4. Wait a bit for my script to run.

5. In a loop, check to see if jbed.exe is running.

6. If jbed.exe stops running, change the orientation back and edit the loop.
[Windows Mobile Apps and Games] rebecker:
OK, I'm an idiot!

I thought that in addition to making Opera Mini my default browser (which works great!) I'd be free of those annoying permission messages at startup. Did I miss something, or do I have to install something else to kill those messages?

My apologies to those annoyed with old questions, but time is money ;)
[Windows Mobile Apps and Games] badbob001:
Either install the signed version of Opera Mini 4.1 Final (instructions here: http://xdaforums.com/showpost.php?p=2106476&postcount=2)

or

Hack your selector.utf file:

Run 'Start Opera Mini Setup' > Special Commands > Patch Selector.utf
[Windows Mobile Apps and Games] rebecker:
Thank you VERY MUCH! It works! :D
[Windows Mobile Apps and Games] dbh369:
This works great! Thanks for the very smooth install too. Thanks much to you and Menneisyys and JZ SmartMort
[Windows Mobile Apps and Games] badbob001:
New release: v0.11b

Faster startup

Biggest hurdle with this release was trying to reduce the startup time of the script. I've taken multiple steps, such as breaking the script to sub scripts (stored in the \sub\ folder) so less initial time is taken for loading the script file.

I've also changed the way settings are stored and loaded, so the _ini.txt file is gone. Instead, settings are stored in a script in the sub folder.

Keeping compatibility with the settings of earlier versions was always a concern, but the code to check for old versions was slowing down the startup, so I've decided to break compatibility. So installing this version over a previous version, the script will need to re-detect your JVM parameters, re-detect Opera Mini browsers, and redo your settings.

Better OM control

Fine tuned opera control methods and renamed them so the name describes what they do. So method1 is "leftsoftkey" and method2 is "shift3-one". The new addition is "f9-one", a tiny tweak of "shift-3-one", which works in jbed 2.1.

With the smartphone screen bug of jbed 3.1, I now recommend jbed 2.1 for everyone and have made "f9-one" the default control method. Since "f9-one" allows Opera Mini to be controlled when it's not on the Start Page and when in full screen, I've also changed "Kill JVM first" to default to 'No'.

Select, Copy, Paste

The Select, Copy, and Paste functions used for launching an opera mini url and quickswitching is now exposed for general usage. You can access these commands. All copied and pasted text is stored in the same file used to store link histories for easy retrieval.

To make these commands more quickly accessible, I've created the HotKey feature (see below).

HotKey

Excert from help file:

The HotKey shortcut has its own icon so you will need to update the OperaIcon.dll file by renaming the original and copying over the new one. Also check the help file on some tips on mapping the hotkey shortcut to hardware buttons.

Fixes

And many other fixes, such as:

If you accidentally switch away from a script dialog, it will switch back in a bit.

Long messages now can be completely viewed on touchscreen devices.
[Windows Mobile Apps and Games] aRGybaRGy:
Hmmm...

With this new version, it looks like I've lost the ability to click on a URL in flexmail and get it to open in OM now, or have I missed an important config step?

Ta

G
[Windows Mobile Apps and Games] badbob001:
I can only think you did this:

1) installed the new version in a different location than the old version.

2) ran the new version and answered No to the 'register script' question.

1) is easy to happen since I now put the zip contents in a subfolder called StartOperaMini.

2) since this version no longer reads the settings of old versions, you would have been asked some initial questions, such as if you wish to register the script so it works with links in emails, documents, etc. If you answered no to the question and in conjunction with 1), your registry is still pointing to the old script files. And if you deleted the old files, then the registry settings would cause nothing to happen.

So just run Setup > Special Commmands > Registry Script. Make sure when you when Setup, it shows "0.11b" in the window title to indicate that you are running the new version and not the old version.
[Windows Mobile Apps and Games] JonDeutsch:
Script not inserting the URL (?)

Hi,

I've installed and configured the latest version (11b) but when I get into OM4.1, I see the wwww's get removed one by one, but the destination URL (picked up from a link in WM's mail application) is not getting pasted into the URL field.

So the process fails. It really does seem like it needs vito's cut and paste and that that piece is missing. But, nowhere does it say that this cut'n'paste app is required... plus I already have it installed!

Any ideas?

Thanks,

Jon
[Windows Mobile Apps and Games] badbob001:
Vito cut and paste is not required. I'm assuming this is your first experience with my script. What device are you using?

I'm also assuming you didn't change any setting in setup, like

Setup > Use Auto-Comp Address Input. Setting this to Yes is usually a bad idea since you can't paste text into Opera Mini's auto-complete field. The following should make it clear:

​

Were there any error messages?

You may want to run Setup > Main Options > OM Paste Type and see control-v works.
[Windows Mobile Apps and Games] badbob001:
Found some issues with the script initializing the correct settings for new users. Corrected and re-uploaded, so please re-download.
[Windows Mobile Apps and Games] badbob001:
Noticed that quickswitch was grabbing the previous OM url instead of the current one. Fixed and re-uploaded. Interesting how fixing or tweaking one thing will break a previous working and unrelated thing.
[Windows Mobile Apps and Games] JonDeutsch:
Hi,

First, thanks so much for the quick and thorough response to my question. Allow me to further explain...

I am using a WM6 HTC S710 (VOX) SmartPhone. I do have Vito Cut'n'paste installed, but clearly that should not matter.

My use case is:

I'm in the WM email app, looking at an HTML email from Tech Crunch, and clicking on a hyperlink. It opens OM4.1 as expected, and I see it manually erase the "www" prefix. And then it pauses, briefly goes back to the OM4.1 start page, and then goes back to the URL entry window where I just was, with the "www." prefix back in place. Then the script ends.

I've gone into the settings and tried changing the paste approach to "type" and control-v to no avail.

Autocomplete is set to off. There are no error messages. The URL is passed correctly when I choose IE as my default browser.

Hope this helps... thanks,

Jon
[Windows Mobile Apps and Games] badbob001:
Firstly, please re-download the script as I think you have an earlier release of 0.11b and I since re-uploaded updated versions of it twice.

Your S710/Vox has been experienced by others as having problems with mortscript for pasting text. Does vito allow you to paste text into the Opera Mini address window, where the address window is what you get if you click the Opera Mini address field, press right, press up, and click on Insert Symbol.

If you want, you can experiment with the text pasting feature of my script to see if you can somehow manually get text into the Opera Mini address window. Perhaps all that is needed is an extra click to get the window into focus.

Another user with a Pantech Duo device has the same issue and the solution was:

Script settings:

Paste Type: type-then-delete

Use Auto-Comp Address Input: Yes

In Opera Mini:

'Auto-complete address input' needs to be checked.

Now the url is not pasted into a separate input window but directly typed into the address field on the Opera Mini interface. If the url is long, it can take a while, especially with mortscript's double-character bug and the need to go back and delete the duplicates.

One experiment was to send the long url to tinyurl.com to get a shorter url before typing the url into Opera Mini, but that may be overkill for this issue.

Let me know how it goes.
[Windows Mobile Apps and Games] JonDeutsch:
badbob001,

Thanks for the great on-line support for your script!

Your diagnosis was corret - my vito cut'n'paste would not paste content into the text entry UI, so neither would MortScript. Interesting problem... does it really only affect a few Vox-like phones? That seems odd.

Anyway, your configuration advice actually (sort of) worked! The settings to make the "typing" happen within the browser (and not the text entry UI) did enable it to work, but like you said, the double-character bug is really painful and slow to watch unfold.

Worse, there is another problem that stops it from working on my phone: the initial "www" is not removed when doing the typing in the address field itself. So, when it's done adding and removing all that text, I still end up with a page not found because all my addresses start with wwwhttp://etc...

I think the tinyURL solution would be a very savvy way to reduce the almost-comical type/delete routine some of us have to go through to make this work!

Or... is there a setting in JBed to enable the paste to work in the data entry screen?

Thanks again,

Jon
[Windows Mobile Apps and Games] badbob001:
You found a bug! Oops.

I'll fix that bug and post an alpha version that allows you to pre-process the url through tinyurl first.

What version of jbed are you using? I use CloudyFa Jbed 2.1 and it can be downloaded here:

http://www.modaco.com/index.php?act=attach&type=post&id=23899

Jbed itself doesn't block pasting as it works on many other phones, but perhaps it's more complicated than that since on touch-screen devices, you can't open a context menu within jbed to access copy/paste options.

I'm thinking it's a problem with some phones with slide-out keyboards...
[Windows Mobile Apps and Games] badbob001:
Jon,

Try this alpha build. Install it over your existing installation. Run Setup > Advance Options.

At the bottom of the list, you'll see two new options:

Run PRE script

Run POST script

PRE and POST refer to \sub\pre.mscr and \sub\post.mscr scripts and is where users can put in their own commands to perform custom actions.

Pre.mscr runs right before the browser is run and Post.mscr is run near the end of the main script.

In Pre.mscr, I put in a subroutine to query tinyurl.com to get the short name of the url. So in your case, change 'Run PRE script' from No to Yes, which simply renames \sub\pre.mscr_ to \sub\pre.mscr and vice versa. As before, you still need to have 'Use Auto-Comp input' set to Yes and paste method = type-then-delete.

My phone connects to the Internet via a carrier proxy server so I had to add some extra code in pre.mscr to get that to work. If there is any issues with the script connecting to the Internet, you may need to comment out some lines in pre.mscr.

One quirk with typing directly into the opera mini interface (not the insert symbol window) is that typing a number may not result in a number being entered but the T9 letter for that number. For example, typing ABC123 may show up as ABC.AD (1 = ., 2 = A, 3 = D). My phone doesn't have a keyboard so perhaps on your phone with a keyboard, it will be different or may require you to have the keyboard opened first. So if the retrieved tinyurl is typed with less than 6 characters, you end up at the wrong page, or the tinyurl website tells you the url was not found, then most likely this issue has occurred.

Other uses for PRE and POST:

* Rotate the screen to landscape before running opera mini and return to portrait after jbed is closed. I already have that code in the two script files so you just need to uncomment '#call("rotate_opera")' in pre.mscr and uncomment '#call("unrotate_opera")' in post.mscr. Someone asked for this feature. It's pretty useless for me since my device was not designed for landscape and so the dpad orientation doesn't rotate to match the screen.

* Connect / Disconnect from the Internet. While I don't have the code for this in place, it should be easy for someone to do and you can use the rotate code to model the start and end behavior. Someone asked for this.

* Whatever you want!

[alpha1 removed]
[Windows Mobile Apps and Games] JonDeutsch:
Thanks for the quick turn-around and the updated alpha.

What you predicted is exactly what happened: The TinyURL failed. Funny thing is, though, is that I do not have t9 set to ON on my phone... I do need to press-and-hold the numeric keypad to get a digit, though. I'm guessing that's what your talking about.

And, while the TinyURL pre-routine is very slick, the time it takes for my non-3G phone to do its business might be almost as (if not more) time-consuming as the type/delete routine.

But... you did fix the problem of not erasing the www in the browser, which is great.

One last thing I want to report is after all the typing and deleting is done, there seems to be an extended pause before the "action/enter" button is clicked in the script. Meaning, the URL is fine and trimmed, but it sits there for at least 10-15 seconds until MortScript clicks "go" to start the loading process. Is this a setting that can be set?

Thanks!

Jon