Code: Select all
WinActivate, SomeDialog
WinSet, Top ,, SomeDialog
KeyWait, Enter, D T12
Send {Enter} ;
Of course this assumes SomeDialog has focus, and I'm finding this fails often because other windows steal focus from SomeDialog before or while the text is being entered.
I'd like to have something like
Code: Select all
repeat
WinActivate, SomeDialog
WinSet, Top ,, SomeDialog
sleep 50
until KeyWait, Enter, D T12
Send {Enter} ;
Any ideas how this could be accomplished?