AND
The KeyWait is consuming the key itself (Example 2).
My question: How to make KeyWait just wait for the key to be pressed, without triggering another hotkey or sending the key itself? Thanks.
Please run this script you will understand my point:
Code: Select all
; How to make KeyWait ignore another hotkey?
#SingleInstance Force
$a::
Send, B{Enter}
ToolTip, A was pressed`, B was sent.
return
$1::
ToolTip, Please press A
KeyWait, a, D
Send, {BackSpace}{Space 5}<----- See? A was pressed, B was sent.{Enter}
ToolTip,
return
$2::
ToolTip, Please press A
Hotkey, $a, Off
KeyWait, a, D
Send, {Space 5}<----- See? A was pressed, A was sent.{Enter}
Hotkey, $a, On
ToolTip,
return
$3::
Send, {Space 6}<----- I wish that by pressing A, neither A nor B were sent, and the content after KeyWait was executed.{Enter}
return
Esc::
ExitApp
return
/*
Test here:
|
v
*/