Jump to content
Sign in to follow this  
LordNeo

Sending to a window that isnt selected

Recommended Posts

LordNeo

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

Share this post


Link to post
Share on other sites
BigDod

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


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
LordNeo

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?

Share this post


Link to post
Share on other sites
BigDod

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:



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
LordNeo

Yes, I have tried that example. What I do not understand is the Edit1.

What does it mean and how do I know what to put there?

Share this post


Link to post
Share on other sites
BigDod

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:



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
LordNeo

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

Share this post


Link to post
Share on other sites
BigDod

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

<{POST_SNAPBACK}>

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


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

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  

×