Jump to content

Send keys to 3 windows - help me


Doman
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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