06-20-2017, 02:15 PM
I'll pick your brain probably one more time today..
I need to send the ENTER key but only to the specified active window. Sometimes this windows does not appear and my ENTER is sent to the next prompt, which causes a problem. Here is the code I used. It does set the focus properly, I only need to understand if I can put a condition on the ENTER key I send.
Thanks.
I need to send the ENTER key but only to the specified active window. Sometimes this windows does not appear and my ENTER is sent to the next prompt, which causes a problem. Here is the code I used. It does set the focus properly, I only need to understand if I can put a condition on the ENTER key I send.
OnScreenDisplay "Set the focus on the Old Inv prompt" 2 0 0 "" 0 0 1|4|128 "spla" 0 0
int w6=win("L-BOSS Confirm" "TMessageForm")
act w6
2
OnScreenDisplay "Answer YES to the prompt " 10 0 0 "" 0 0 1|4|128 "spla" 0 0
'Ay ;; ALT+Y
10
Thanks.