Disable a Key in an Hotkey temporarily - that will be used in an another Hotkey - until that Hotkey's action ends

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
deathes
Posts: 1
Joined: 14 Oct 2017, 22:33

Disable a Key in an Hotkey temporarily - that will be used in an another Hotkey - until that Hotkey's action ends

14 Oct 2017, 22:47

Code: Select all

$4::
Send {LButton}
Send {4}
Sleep, 10
Send {RButton down}
Sleep, 10
Send {RButton up}
Sleep, 3500
Return
$5::
Send {LButton}
Send {5}
Sleep, 10
Send {RButton down}
Sleep, 10
Send {RButton up}
Sleep, 3500
Return
I want to disable key "4" in the hotkey "$5::" until that "Sleep, 3500" ends and disable key "5" in the hotkey "$4::" until that "Sleep, 3500" ends.

Shortly, I want to disable other number keys or at least a few while an hotkey action is ongoing which is "Sleep" in this case.

Or even more simply, I don't want 1-2-3-4-5 keys on the keyboard to work while there's sleep, 3500 going on.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Anput, Fredrik F, maxkill, RandomBoy, ShatterCoder and 415 guests