Page 1 of 1

Need help with the script

Posted: 02 Dec 2021, 09:37
by ilyastar
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.

Re: Need help with the script

Posted: 02 Dec 2021, 17:22
by mikeyww

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

Re: Need help with the script

Posted: 03 Dec 2021, 02:28
by ilyastar
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

Re: Need help with the script

Posted: 03 Dec 2021, 06:55
by mikeyww
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.