[Solved] Puzzle with asterisk hotkey prefix
Posted: 22 Jun 2015, 10:08
In a huge script I have the lines and these work as expected. When, however, I add the asterisk prefix and make the script then I never see the the hotkeys fire (I never get debug output for the hotkeys) Finally, if I extract these lines and run them in a small script (having killed the huge script for testing), then the asterisk and non-asterisk versions both fire the hotkeys. Any idea why the asterisks do not work in the much (much) larger script (with huge piles of hotkeys)? Literally, simply adding or removing the asterisks is the only change required to show the difference.
Code: Select all
#IfWinActive, ahk_exe AnyTimer.exe
LButton::
OutputDebug, DID DOWN JUNK
SendInput, {Blind}{LButton Down}
Return
LButton Up::
OutputDebug, DID UPPE JUNK
SendInput, {Blind}{LButton Up}
Return
#IfWinActive
Code: Select all
#IfWinActive, ahk_exe AnyTimer.exe
*LButton::
OutputDebug, DID DOWN JUNK
SendInput, {Blind}{LButton Down}
Return
*LButton Up::
OutputDebug, DID UPPE JUNK
SendInput, {Blind}{LButton Up}
Return
#IfWinActive