cancel
Showing results for 
Search instead for 
Did you mean: 

Activate a window and send global key

Anonymous
Not applicable
Hi, I would like to know how to bring a page to front of all the applications running so that I could send a global key to that particular applicaiton correctly. Thanks VJ
2 REPLIES 2

John__Carter
Staff
Staff
Hi VJ - spy the app window as a WIn32 element. The use a Navigate state and the Activate method. Add a small pause, about 0.5s, between the activate and the send keys to give the app time to come forward. Take care also that the cursor is in the correct position.

Anonymous
Not applicable
Thanks John! That helped really helped me. Can we send ""Enter"" key to a window using ""Send KeyPress"" (in WIN32 element action) instead of activating window and then sending a key globally using ""Send Global Keys""?