Oh, I see, Autohotkey is what you need then.As you can see below it can recognize the "Order Confirmation" window by its title and Class >>>>>>>>>>( Window Title & Class )<<<<<<<<<<< Order Confirmation ahk_class SunAwtDialog -------------- once it recognizes the window when it pops up, a simple script to click the Transmit button or to Type Alt-T (since the Order Confirmation window is automatically focused) should do the trick. The whole thing runs in a nano second of course... I could code it myself , but I'm too busy developing the new space shuttle program with the guy above...lmao Jokes aside pretty easy stuff even for a noob, just read the instructions...
Well, i found some spare time, here is the zip containing the exe and the code in case someone wants to expand its functionality. Click Auto_Confirm.exe, now whenever a window titled Order Confirmation pops up it's automatically selected (get focus) and Alt+T is typed. You won't see anything untill the window pops up, just the green Icon in the tray (end-right of your taskbar). Keep in mind that it works on any window titled Order Confirmation so be careful with orders outside Booktrader that you don't want to transmit right away. You can temporarily deactivate it by right clicking on the icon and select "Pause Script" you'll see the Icon turning red. You can reactivate it the same way. Tested only on my TWS running on XP Professional SP3 , so use it at your own risk, aka test it with a demo account , be smart ...aaaaaand DON'T FORGET TO DiSABLE IT when you need a confirmation!!! Enjoy!!!
Thanks for the script, I tried it on booktrader and it still shows a splash screen with a transmit button? Not sure if I am missing something. By the way the only way hot keys work in the present version of book trader is if the order line is clicked first.
mmm, I'm using an old version of tws, maybe they changed something in the window in the new version, I'll check tomorrow and let you know, stay tuned
just checked on my 2nd machine, yup , Alt+T doesnt work anymore (That's pretty lame IB coders..wtf?) , thus the script won't work either, I 'll find a solution and post a new script
Let me know if it works (here works fine). Basically the script closes the Confirm Order window, activates booktrader window , selects the order row, sends the cursor on the last column which is "Transmit" and types Enter. Voila' FU IB coders and most of all suck my Italian sausage TT !!!!
It sort of works, I see the confo screen and then it immediately gets confirmed basically faster than I could ever click it, but if I try to change the order say move it up or done then it just sits in one spot? I will still use the script together with my hot key solution so thank you very much. One question what is the .ahf file for?
that's the source code not compiled (if you don't plan to use autohotkey to change it , you can get rid of it) I see the problem, dang the only way is to simulate a click on that conf. window. I gotta use mouse coordinates relative to that window to position the cursor on the transmit button, click itand return the curson to its original position. Not today though hehe