Quantcast
Channel: AutoHotkey Community
Viewing all articles
Browse latest Browse all 579

Ask for Help (v1) • KeyWait vs. "key"+"key Up" hotkeys

$
0
0
Hello,
which is the better method in this case,

KeyWait

CODE:

~F1::
ToolTip, AltTab
KeyWait, F1
ToolTip
If (A_PriorKey = "F1")
Send !{Tab}
return

F1 & F2::
ToolTip, Notepad
KeyWait, F2
ToolTip
Run Notepad
return


or
"key"+"key Up"

CODE:

~F1::ToolTip, AltTab

F1 Up::
ToolTip
If (A_PriorKey = "F1")
Send !{Tab}
return

F1 & F2::ToolTip, Notepad

F1 & F2 Up::
ToolTip
Run Notepad
return


Hotkeys say
"Up" hotkeys and their key-down counterparts always use the keyboard hook.

Is it not the case with KeyWait?

Thanks!

Statistics: Posted by Relax — Today, 08:56



Viewing all articles
Browse latest Browse all 579

Trending Articles