I have successfully sent text and/or control sequences to Notepad, the Ruby 1.92 interactive interpreter, and the ActiveState Komodo 6.1 multilanguage editor.
However, the app I'm trying to automate, TradeStation 8.8, a stock trading platform, does not respond to the Send (the same is true for its sister app from the same vendor, a development environment for trading stategies).
It is clear that TradeStation is receiving focus. To begin it's window is displayed and Macro 12's is on top of it. As the macro runs, TradeStation's window is brought to the top, the Macro Scheduler Eval message is displayed top right, and the TradeStation window border lights up. After the macro runs (I kill it manually since it hangs on the WaitWindowOpen) I can manually do the Send from the keyboard (meaning I just type the sequence in and it is responded to).
I find the window names by using:
Code: Select all
GetWindowList>winlist Separate>winlist,CRLF,windows Let>k=1 Repeat>k Let>this=windows_%k% MessageModal>this Let>k=k+1 Until>k>windows_count // end code
And my test code:
Code: Select all
Let>WaitTime=2 Input>theSymbol,Enter Symbol MessageModal>theSymbol SetFocus>TradeStation 8.8* Wait>WaitTime Press ALT Wait>WaitTime Send>o Wait>WaitTime Send>s Wait>WaitTime Release ALT Wait>WaitTime WaitWindowOpen>Format Symbol* SetFocus>Format Symbol* Wait>WaitTime Send>theSymbol Wait>WaitTime Press Enter Wait>WaitTime Release Enter // end code
The ALT-os should pop up a dialog box, but does not.
Other details you may want to know:
- All programs are 32 bit
- Windows 7 64 bit Home Premium, fully updated as of 3/27/11
- Microsoft HID Keyboard Driver Version 6.1.7600.16385 June 21, 2006