You would think <PassThrough> could be used that way but it can't.
No matter where you write <PassThrough> in a hotkey definition, it always executes before anything else in the hotkey including <If>.
Therefore, PassThrough is not subject to If and the above hotkey executes like this:
If you want the trigger to pass through conditionally, you have to emulate that behavior with <SendFocusWin> like Olipcs did.Code:<Hotkey LButton> <PassThrough> <If MouseIsOverWindowRect wow5 0 291 146 48> <SendLabel w3> <Key Numpad1> <EndIf>
Edit: The reason for this strange behavior is that PassThrough must be executed by the keyboard hook almost instantaneously, but <If> and everything else in the hotkey definition may not get evaluted for many seconds depending on how many hotkey definitions are buffered. This will probably be handled in a more intuitive way in HotkeyNet 2.
Connect With Us