Many thanks for your effort, Mark and Asterix. I'm sticking with AHK script for now, it's a more flexible solution in case IB makes some changes to the pop-up. It's relatively easy to modify the script and recompile the exe.
Below is a ReadMe about how to install and use Auto_Confirm.exe. All this info is scattered over a few posts in the very long thread, which makes things a bit confusing, especially for less experienced members and also for those who have never used AutoHotkey.
The ReadMe could be included in the zip package as ReadMe.txt.
--------
ReadMe
--------
"Auto_Confirm_exe" is built from an AutoHotkey script. You can learn more about the scripts and how to compile them by following the link below:
http://www.autohotkey.com/
However, to get "Auto_Confirm_exe" working, you do not have to download or install anything from AutoHotkey website, everything needed is already included in the zip file "auto_confirm_v*.exe + source.zip". The zip file contains:
a) auto_confirm_v*.exe - this is the actual executable
b) auto_confirm_v*.ahk - source file, useful if you decide to modify and then compile the script yourself
c) ReadMe.txt - help file
In order to get the script running please do the following (instructions are for Windows XP but should be similar with Vista or Win-7):
1) Unpack the zip file (r-click on the file and select program like 7-zip, WinZip, etc). The contents of zip file should be extracted to any empty folder. It's always a good idea to have things organized, so for example, if your TWS is installed in:
C:\Program Files\Jts
you can create a new folder and subfolder:
C:\Program Files\JtsAddons\AutoConfirm
and extract the files there.
2) Create shortcuts to Start Menu and/or Desktop icon:
- from Windows Explorer single click on the file "Auto_Confirm_v*.exe" (don't double click at the file at this point!)
- select: File - Create Shortcut
- single click on created shortcut and hit Ctrl+C
- go to: C:\Documents and Settings\YourUserProfile\Start Menu\Programs
- select the folder where you want to copy the shortcut to and hit Ctrl+V
- you can create a Desktop icon the same way, the icons are in:
C:\Documents and Settings\YourUserProfile\Desktop
- after the shortcuts have been successfully copied to Start Menu and/or Desktop they can be deleted from their original location.
To use the script you need to do the following:
- start TWS (it can also be started after the script has been launched)
- click on the new Desktop icon or launch the script from the Start Menu
- a new icon that looks like "H" will appear in System Tray (right bottom corner of the screen)
- you can pause or exit (stop) the script by right clicking on this icon. You can also pause the script by hitting Pause key
Below are a few things to remember.
1) Whenever a window titled Order Confirmation pops up it is automatically selected and Transmit button is clicked. If, at any time, you really want to be able to confirm the order by clicking on this or any other similar pop-up, you will have to first pause or stop (exit) the script.
2) Pause/Break key is linked to AutoConfirm so it won't work normally (Win+Break works ok, though). To assign a different key to perform Pause function you would need to modify AHK file and recompile it.