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
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.