SendKeys - QTP window steals focus on debug mode
I have a problem..
Im using SendKeys in a windows application..
When i run the script regulary it works great, but when i run in debug mode (step by step) QTP window gets the focus all and the sendkeys methos actually sends the keystrokes to QTP and not to my application.
i tried MyWindow.Activate and *.AppActivate "my application" - nothing works.. is it a QTP setting?
Re: SendKeys - QTP window steals focus on debug mode
To debug QTP has to take focus. You need to but a breakpoint after the send key code and run the code before that break point and then start debugging.