Sign in to follow this  
Followers 0
taind

Sends key to Deactive Window

4 posts in this topic

#1 ·  Posted (edited)

The Send function only send simulated keystrokes to the active window.

How to use that ( function Send ) to send simulated keystrokes to the deactive window.

Please help me by anyway !

All thank !

Example:

I run notepad.exe, and i run a script which send to notepad window the key {a} when the notepad window is deativating.

And the script only send key {a} to the notepad window.

Edited by taind

Share this post


Link to post
Share on other sites



Forum Rules This is not a general support forum!

Big red letters at the top

Eh, i'll help anyways :whistle:

Opt("WinTitleMatchMode", 2)
Run("notepad.exe")
ControlSend("Untitled -", "", "Edit1", "Text")

Share this post


Link to post
Share on other sites

Forum Rules This is not a general support forum!

Big red letters at the top

Eh, i'll help anyways :whistle:

Opt("WinTitleMatchMode", 2)
Run("notepad.exe")
ControlSend("Untitled -", "", "Edit1", "Text")

If i wish send {F1} key to notepad window.

Does the code below run exactly ?

Thank for read !

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