I have a function that (SendKeys "ESC") to my app. It works, however the if the main screen loses focus to a msgbox the function stops working. My question is, is there something that I'm doing wrong?
Thanks in advance.....
Printable View
I have a function that (SendKeys "ESC") to my app. It works, however the if the main screen loses focus to a msgbox the function stops working. My question is, is there something that I'm doing wrong?
Thanks in advance.....
MsgBox:es are modal so to answer your question No, you cant.
You could create another form/process to sendkeys so that a msgbox will not halt it's instructions.
Since its in your app then couldnt you change the focus to another control quite easily with .SetFocus?
Sendkeys are dependent upon the form/control having input focus.