unsure on how to send keystrokes to a window

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
General Grievous
Posts: 2
Joined: 26 Apr 2022, 21:25

unsure on how to send keystrokes to a window

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.
User avatar
SirSocks
Posts: 360
Joined: 26 Oct 2018, 08:14

Re: unsure on how to send keystrokes to a window

26 Apr 2022, 21:42

It looks like you may have forgotten to share your script. However you can use Content Sensitive hotkeys, such as #If.
Here's some more info on it.....
https://www.autohotkey.com/docs/commands/_If.htm
General Grievous
Posts: 2
Joined: 26 Apr 2022, 21:25

Re: unsure on how to send keystrokes to a window

30 Apr 2022, 00:45

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
here's the cript
Attachments
Script.ahk
(204 Bytes) Downloaded 31 times

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: AlFlo, anidealworld, RussF, yxldh and 130 guests