Need help with the script

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
ilyastar
Posts: 4
Joined: 02 Dec 2021, 08:02

Need help with the script

Post by ilyastar » 02 Dec 2021, 09:37

Straight to the point.
I need that when holding down a certain key (for example RShift), other keys (A, Z, V and so on) are held down, and when RShift is released, the other keys are also stopped.

User avatar
mikeyww
Posts: 26601
Joined: 09 Sep 2014, 18:38

Re: Need help with the script

Post by mikeyww » 02 Dec 2021, 17:22

Code: Select all

RShift::
Send {a down}{z down}{v down}
SoundBeep, 1500
KeyWait, %A_ThisHotkey%
Send {v up}{z up}{a up}
SoundBeep, 1000
Return

ilyastar
Posts: 4
Joined: 02 Dec 2021, 08:02

Re: Need help with the script

Post by ilyastar » 03 Dec 2021, 02:28

Thank you very much, but I wanted that when you pinch the shift, the other keys would be endlessly engaged until I released the shift

User avatar
mikeyww
Posts: 26601
Joined: 09 Sep 2014, 18:38

Re: Need help with the script

Post by mikeyww » 03 Dec 2021, 06:55

That is what the script does. Holding a key differs from pressing it repeatedly. It also differs from what happens if you hold the key manually on your own keyboard. That is more like a repeated down-up sequence.

Post Reply

Return to “Ask for Help (v1)”