ctrl/alt/shift stuck in down position Topic is solved

Ask gaming related questions (AHK v1.1 and older)
User avatar
mikeyww
Posts: 27042
Joined: 09 Sep 2014, 18:38

Re: ctrl/alt/shift stuck in down position

29 Nov 2021, 14:43

I ran your script and did not find any leakage or issue. You can check KeyHistory to understand what is happening with the keys.
IDunno45
Posts: 15
Joined: 04 Oct 2021, 16:00

Re: ctrl/alt/shift stuck in down position

29 Nov 2021, 14:58

Hold down Alt and 1 together, eventually the keyboard stops spamming the alt and begins just spamming the 1, even with you still pressing both keys.
User avatar
mikeyww
Posts: 27042
Joined: 09 Sep 2014, 18:38

Re: ctrl/alt/shift stuck in down position

29 Nov 2021, 16:01

It worked here, but another way to do it is to use blind mode to send just the last character. That circles us back to your original script! You could insert a short sleep inside your loop there.

Code: Select all

F7::
on := !on
SoundBeep, 1000 + 500 * on
Return
#UseHook
#If on
a::
b::
+b::
!+b::
hk := SubStr(A_ThisHotkey, 0)
While GetKeyState(hk, "P") {
 Send {Blind}%A_ThisHotkey%
 Sleep, 15
}
Return
#If
#UseHook Off
IDunno45
Posts: 15
Joined: 04 Oct 2021, 16:00

Re: ctrl/alt/shift stuck in down position

29 Nov 2021, 16:15

That seems to work perfectly so far! I'll let you know if I have any more issues. Thanks so much for your help and generosity (:

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 50 guests