and, DBritter, another thing: You still will often need
a little pause between you Sendkeys, so use this routine
instead:
Private Sub Sk(cmd)
Delay 0.2
SendKeys cmd, Wait:=Yes
End Sub
(I noticed that the "Private" part in Delay was in
the wrong line in my previous message...
Hello DBritter!
I have hade the same problem, and recently I found a
useful way to avoid it. Call WindowWait with e.g.
App = "Untitled - Notepad" if that's what you are
waiting for. Works nicely, but so far I have not
been able to find out what the name of an arbitrary
active window...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.