Sign in to follow this  
Followers 0
Doman

Send keys to 3 windows - help me

4 posts in this topic

Hi all.

I have a little problem and a question for u all.

Is it possible to write a script that will send keys to 3 different windows with 3 different delays?

I use 3 different scripts now and don't know how to write everything in one.

If anyone can write it here I will be very thankfull.

Script should start after pushing F11 key and stop after pushing it again.

It should send "F1, move mouse cursor to X,Y coords in this window and left mouse click" every 0,1s for window named "Window1".

It should send F2 every 59s to window named "Window2".

It should send F3 every 119 to window named "Window3".

Thanks for all help.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Hi all.

I have a little problem and a question for u all.

Is it possible to write a script that will send keys to 3 different windows with 3 different delays?

I use 3 different scripts now and don't know how to write everything in one.

AFAIK, send will only send to the active window. So this can work if you activate each window before sending the keys. The other option is to use ControlSend.

If anyone can write it here I will be very thankfull.

Script should start after pushing F11 key and stop after pushing it again.

It should send "F1, move mouse cursor to X,Y coords in this window and left mouse click" every 0,1s for window named "Window1".

It should send F2 every 59s to window named "Window2".

It should send F3 every 119 to window named "Window3".

Would you like to have a seat and help yourself to some donuts while we create some code for you?

Seriously though, that's not how it works here. The someone who should write the code is you, and then if you have problems, please show your code. What is the goal of this program anyway? Why send this information to these three windows at odd times?

Edited by Fubarable

Share this post


Link to post
Share on other sites

Would you like to have a seat and help yourself to some donuts while we create some code for you?

:)


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

Would you like to have a seat and help yourself to some donuts while we create some code for you?

Posted Image


Example Script(s): Export Listview to Excel & Print!....(¯`v´¯)..... ·.¸.·´...¸.·´.. (☻//▌♥♥/ \ ... Wake up the dawn and ask her why ...╔══╗ ♥ ♫ ♥║██║ ♫ ♥ ♫║(O)║♥A dreamer dreams she never dies♥╚══╝۩۞۩ஜ1984'09ஜ۩۞۩

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