[Windows Mobile Apps and Games] badbob001:
New version: 0.07b

Shortcuts created in localized Start Menu location

Start Menu shortcut is now created in the localized Start Menu location using mortscipt's systempath("StartMenu") function. If it's still not right, just manually update this line:

start_menu = SystemPath("StartMenu")
# Command should auto-find locationized name of Start Menu.
# On english device, it should find: "\Windows\Start Menu".
# If defining manually, don't put a trailing \.

Thanks to the international community for reminding me of this.

Prompt-less auto-configuration

I didn't like how in the previous version, it will ask you if you have Direct Address Input (DAI) turned off or not. With the right combination of key sequences, it is possible to still insert the URL text in Opera Mini despite what the DAI settings is. Thanks to dodo-dk for reminding me of this. So now it's possible to run the script and have it bring up Opera Mini with no jarring question windows popping up. Other than problem-related messages, the only popup that may appear is if you have more than one version of opera mini installed and you are asked which one is to be made the default.

Alternative url input methods

mskovrinskie had some problems on his Blackjack II with ctrl-home, ctrl-shift-end and ctrl-v, which would produce the following characters respectively: $, #, and V. On my device, control-a would insert an 'a'. Key-combo support on WM is truly messed up. He also reports that shift-insert works on his device as an alternative to control-v. dodo-dk also reports that ctrl-home and ctrl-shift-end don't work on some devices with soft-keyboards.

The ctrl-home and ctrl-shift-end sequence is meant to select the address in the input windows so the new url can be paste over it. An alternative method is send four backspaces to delete 'www.'. One problem with OM 4.1 is that if the browser has already been to a page, the address input window will show the existing url, which will take more than four backspaces to delete. Solution is to send rightsoftkey > clear when using 4.1 and then complete with four backspaces.

As for getting the url text into the browser, nothing is faster than a paste. Now StartOperaMini has a second shortcut created in the Start Menu called 'Start Opera Mini Setup' (more info later) with some advance settings you can change if the defaults don't work for you. One option is to change the url text paste method. Choices are:

* Control-v

* Shift-insert

* (type one letter, backspace duplicate) repeat

* type entire url (backspace duplicate, left) repeat

The default method is shift-insert.

I got the idea to try shift-insert from the copy/paste options in JZ SmartMort's script. No idea where he got shift-insert from, but thanks!

What to do options list

Added back an option from a super-old version of my script where you can be presented a list of options. When a link is clicked, a list of choices appear asking which browser to open the link in or to copy the url to the clipboard. If just running the shortcut and you have more than one version of OM installed, a choice of which one to run is shown.

The default setting is to not to be prompted.

To kill jbed or not

Azimuth21 noticed that if OM is already running when a link is invoked, OM is restarted before pasting the link. This is by design because the pasting process needs the browser to be in a known state for it to work. There are times when OM is not killed and that is when starting the script with no url specified, which makes it a handy way to switch back to OM. But if you really don't like OM getting killed all the time, then I've put an option in 'Start Opera Mini Setup' to 'mostly' disable killing Opera. I say mostly because there are times when opera should be killed, such as when you enabled it so that you are prompted for which version of opera to run and only by killing the existing opera can it be guaranteed that the chosen version is run.

One known big limitation of not always killing opera is that full-screen mode is not supported for pasting urls. When in full-screen mode and not on the opera homepage, there is no familiar page element for the script to use to know opera is ready for receiving the url. One possible workaround for this small scenario is to use the old arbitrary wait times method after the automatic method fails. Anyone really interested in this? Why not just let OM be killed all the time?

Even if you don't mess with the above setting, I do have one scenario where you can keep the existing OM running. If you have enabled the feature for the script to prompt you on what to do when opening a link, it will also show this option: [Switch to already running Opera Mini]. Even though the script has no idea which version of Opera Mini is running, it'll assume it's 4.1 and that seems to work for both versions. The limitation of not supporting full-screen mode for pasting urls is still present.

'Start Opera Mini Setup'

I thought it was silly to make the user delete the ini file to reconfigure the script settings or to uninstall some features. That is why I made 'Start Opera Mini Setup'. You can find a link to it in the Start Menu and a duplicate link in the same folder as the script.

Note that you may NEVER need to run 'Start Opera Mini Setup'. The main script's auto-configuration should take care of most issues. 'Start Opera Mini Setup' is only for special case scenarios and people who like want options, especially the ones that break things.

Here you have the options to:

Change the default browser

Either select from different versions of Opera Mini, Internet Explorer, or be asked every time. Choosing Internet Explorer will update the registry so links are handled by IE and so this is essentially an uninstall procedure. Afterwards, you can of course still run the script shortcut to launch Opera. There is also an option to re-detect browsers, which replaces the old method of deleting the ini file first.

Change the url paste method

This was mentioned before.

Specify if DAI is enabled or not

Frankly, you really don't need to touch this... ever. As mentioned before, assuming that DAI is enabled even when it's not will not affect the results. The only benefit is that a handful of keys is not sent, which saves less than a second. The downside is that if OM has DAI enabled, url input will fail.

Kill jbed first

Mentioned before. Just leave this alone.

Start Menu shortcuts

Add or remove them. Shortcuts are automatically added when the script is run normally.

Little tweaks and fixes here and there.

Thanks for the input! I have to go clean up and update the documentation later.