REFERENCE
PassThrough


Passes the hotkey trigger key to the window that has the focus.

Syntax

<PassThrough>

Parameters

None.


Remarks

When you press a hotkey, HotkeyNet is normally the only program that sees the pressed key. If you want the keystroke to have its normal effect in addition to triggering the hotkey, you have to say so like this:


<Hotkey A>
   <PassThrough>
   <SendLabel w1>
      <Key A>

This hotkey allows "A" to pass through to whichever window has the focus on the local PC. Then the hotkey types "A" into the window specified by label w1.


Technical remarks

If you write PassThrough anywhere in a hotkey defnition, it always executes immediately when you press the hotkey before any other part of the hotkey is executed.

This means PassThrough is not subject to If-conditions.

The program is designed this way because PassThrough is executed by the keyboard hook, and the hook needs to run as fast as possible, without slowing down to examine If-conditions.

If you want to put PassThrough inside an If-block, use SendFocusWin instead as shown in this example.


Related topics

SendFocusWin


This page was last revised on October 30, 2009
 
INSTRUCTIONS


REFERENCE


OTHER STUFF


WORLD OF WARCRAFT