Script Summary: Fixes somе places in the game where the focus isn't set correctly.
Version: 1.04
The redesign of OGame is full of small annoyances. (OK, it's full of big annoyances, too.) For instance, when you enter Search, the focus has gone fishing and you need an additional mouse click (and mouse movement) to bring it into the input field where you have to enter the text to search for (player name, alliance name, planet name).
Similarly, when you're launching IPMs from the Galaxy view, the focus remains on the underlying document (the Galaxy), instead of in the input field where you are about to enter the number of IPMs to launch.
As an additional annoyance, even if you click into the field where you enter the number of IPMs (and, therefore, bring the focus there), pressing the Enter key still refreshes the Galaxy view, causing the loss of the IPM launch dialog (with no IMPs launched) and maybe also the loss of 10 units Deuterium (if this is not the solar system in which the planet from which you're launching IPMs is - which is usually the case).
This script fixes these annoyances. It puts the focus into the proper input field on the Search page and on the IPM launching dialog and redefines the Enter key there to launch the entered number of IPMs, instead of refreshing the Galaxy view.
Known problems:
- The script might not work in IE+IE7Pro. Haven't tested it there and IE has some incompatibility in one of the things the script is doing. I tried coding around it, but...
- If the IPMs are launched by pressing Enter (instead of by clicking on the big red Fire button), it seems that no fading box appears to tell you how many IPMs have been launched. I've been unable to determine the reason for this.
A Thank You goes to Black Cat for figuring out how to bring the focus into the proper input field on the Search page.
2011-01-02. Version 1.01. The script now also sets the focus to the input field of the first available ship type on the first fleet dispatch page.
2011-01-03. Version 1.02. Made the script not set the focus to an input field of the first fleet dispatch page, if that field already contains a non-zero value. This was necessary, in order to achieve compatibility with other scripts that put some value there (e.g., the number of transports needed to lift all resources), since the game zeroes these fields when they receive focus and the value, entered by the other scripts, was lost.
2011-12-13. Version 1.04. The script now also sets the focus onto the text input field on the page/tab for sending circular messages. The script now also sets the focus onto the first available input field for entering ships on the Jumpgate page. Made the script compatible with version 3.0.0 of OGame.



