Hotkey can not be recognized when you are holding the other one.

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
shanshans
Posts: 27
Joined: 13 Dec 2015, 08:10

Hotkey can not be recognized when you are holding the other one.

Post by shanshans » 13 May 2022, 15:09

Code: Select all

a::
		Send {k down}	 
		Sleep 40		
		KeyWait, numpad0
		Send {k up}
return


b::
		Send {j down}    	
		Sleep 65	      	
		KeyWait, numpaddot  
		Send {j up}			
return



~a Up::Send, {Blind}{j Up}
~b Up::Send, {Blind}{k Up}


hold b > hold a > release b > press/hold b (b is blocked until a is released)

It will be the same if you are holding a first...

How to prevent them blocking each other when one of them is in holding state? Thks

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

Re: Hotkey can not be recognized when you are holding the other one.

Post by mikeyww » 13 May 2022, 15:46

Code: Select all

a::
b::
If GetKeyState("a", "P")
 Send x
If GetKeyState("b", "P")
 Send y
Return

Post Reply

Return to “Ask for Help (v1)”