REFERENCE
SendFocusWin


Sends keystrokes to the window that has the focus.

Syntax

<SendFocusWin>

Parameters

None.


Remarks

SendFocusWin sends keystrokes to the window that has the focus. That's the window that would receive keystrokes if you typed at the keyboard.

SendFocusWin can be used to to imitate a key broadcasting program. This is shown in the second example below.

The following two lines are equivalent:

       <SendFocusWin>
       <SetSendMode SendInput NoTarget>

SendFocusWin uses the same send method as SendWin. The only difference between them is that SendWin brings a specified window to the foreground before it types keystrokes. SendFocusWin does not.


Examples

The following hotkey types "Happy birthday to you!" into the window that has the focus.

    <Hotkey F1 >
        <SendPC local>
           <SendFocusWin>
           <Text Happy birthday to you!>


The following hotkey passes the trigger key "G" to the window that has the focus. (You can also use PassThrough for this purpose).

    <Hotkey G>
        <SendPC local>
           <SendFocusWin>
           <Key G>


Related topics

SendWinM
SendWinMF
SendWin
PassThrough
SetSendMode


This page was last revised on April 14, 2008
 
INSTRUCTIONS


REFERENCE


OTHER STUFF


WORLD OF WARCRAFT