Jump to content

Sending to a window that isnt selected


Recommended Posts

Topic pretty much explains it all..

I want to send a keystroke to another window so i can have it running while I do something else.

For instance, I want a script to send my F key to one window while I surf the net on firefox.

Is there a way to do this?

Edited by LordNeo
Link to comment
Share on other sites

:whistle:

Topic pretty much explains it all..

I want to send a keystroke to another window so i can have it running while I do something else.

For instance, I want a script to send my F key to one window while I surf the net on firefox.

Is there a way to do this?

<{POST_SNAPBACK}>

Look at ControlSend in the help file. :dance::dance:


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

I'm a bit new to v3. I've been using v2 for years now because it has worked for my needs.

Well, what I'm trying to say is I don't really understand the ControlSend command.

Could you give me an example of how to use it?

Link to comment
Share on other sites

Startup notepad then minimise it and run

ControlSend("Untitled", "", "Edit1", "This is a line of text in the notepad window")

Maximise notepad and see the result :whistle::dance::dance:


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

Use AutoIT Window Info, click where you require to send the text to and it will show you the ControlID to use. Try using Notepad and look for Edit1.

:whistle::dance::dance:


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

Alright, I got it working thank you very much :whistle:

<{POST_SNAPBACK}>

No problem, just like to help, it helps me learn. :dance::dance::(


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

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...