Jump to content

Send Keys to a different window other than the active one


 Share

Recommended Posts

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

Link to comment
Share on other sites

You could try using ControlSend


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

Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...