unsure on how to send keystrokes to a window
Posted: 26 Apr 2022, 21:33
I'm trying to make the script attached below to send to only a specific window. I know you need to use controlsend to make it work, but unsure how to implement it.
Let's help each other out
https://www.autohotkey.com/boards/
https://www.autohotkey.com/boards/viewtopic.php?f=76&t=103281
Code: Select all
=::
SetTimer, AS, 17000
Send, {LButton Down}{s Down}
Return
AS:
Send,% GetKeyState("s")?"{s Up}{a Down}":"{a Up}{s Down}"
Return
-::
SetTimer, AS, Off
Send, {LButton Up}{s Up}{a Up}
Return