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

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

$
0
0
You can answer these questions by running your scripts. If they both work, take your pick. The AHK program window shows if hook is being used.

Some people believe that KeyWait and the "UP" modifier have equivalent effects. They do not. Without a KeyWait, a key-down hotkey can be triggered repeatedly after its subroutine ends. The "UP" subroutine is never triggered repeatedly while a key is held, because it triggers only when the key is released. This is quickly seen just by running a few test scripts.

Explained: #InstallKeybdHook

A simple demonstration is below, where F3 can be held to see the effect of the repeating.

CODE:

#Requires AutoHotkey v1.1.35
F3::Send 1
F3 Up::Send 2

Statistics: Posted by mikeyww — Today, 09:12



Viewing all articles
Browse latest Browse all 579

Trending Articles