Close
Showing results 1 to 10 of 18

Threaded View

  1. #4

    Default

    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:

    Code:
    <Hotkey LButton>
       <PassThrough>
       <If MouseIsOverWindowRect wow5 0 291 146 48>
          <SendLabel w3>
             <Key Numpad1>
       <EndIf>
    If you want the trigger to pass through conditionally, you have to emulate that behavior with <SendFocusWin> like Olipcs did.

    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.
    Last edited by Freddie : 09-07-2009 at 07:26 PM
    �Author of HotkeyNet and Mojo

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •