Lexikos
Joined: 17 Oct 2006 Posts: 2472 Location: Australia, Qld
|
Posted: Sat Jul 14, 2007 4:51 am Post subject: tilde (~) implicitly applies to * variants |
|
|
The following script demonstrates: | Code: | ; this #IfWin doesn't help...
#IfWinActive ahk_class Notepad
*Left::
SoundPlay, *-1
return
#IfWinActive Some window which couldn't possibly exist.
~Left::
KeyHistory
return |
Pressing 'Left' triggers the *Left hotkey, but does not block the native function of 'Left'. This only happens when:- The ~Left hotkey exists (though it is disabled via #IfWin.)
- You are not holding a modifier key.
- The hotkey has the "*" modifier.
Note that the ~Left hotkey never fires. |
|