- May
- 13,834
- 211
In another forum, a user wants to send input (with KEYSTACK) to a window of a newly STARTed app. ISWINDOW "title" is true almost immediately, but it's another 8 seconds before the window is visible (and accepts input). An ISVISIBLE "title" conditional expression would be handy here.
For fun, I worked around it with the following.
For fun, I worked around it with the following.
Code:
start Capture4Me.exe
set visible=0
do while %visible == 0
delay /m 500
set hwnd=%@WINAPI[user32,FindWindowEx,0,0,0,Capture4Me]
iff %hwnd NE 0 then
set visible=%@winapi[user32,IsWindowVisible,%hwnd]
endiff
enddo
keystack ...