Sign in to follow this  
Followers 0
Dezypher

Send Keys to a different window other than the active one

3 posts in this topic

Hello all,

I am trying to figure out how to send key strokes to a different window. So I have 2 notepad windows open and one of them is active...i want to send a some text to the other notepad window, but cannot figure out how to accomplish this. I can find the pid for each window and can activate them based off this pid but dont know how to send text to the other window without activating it first.

thank you for your help

Share this post


Link to post
Share on other sites



You could try using ControlSend



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

You could try using ControlSend

thank you that sounds like it would work could you give an example...im trying to use a pid based entry but i am getting an error in the scrip...

I have found where to see the handle in the window info viewer tool..but cannot send anything to this handle...is there a way to use the window PID instead...or can you send me an example of how to use the handle...

thanks

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0