REFERENCE
SetSendMode

Sets options that determine how keystrokes are sent.

Syntax

<SetSendMode option [option...]>

Parameters

You can include as many options as you want from the following list, but only some combinations work:


SendInput
The system command SendInput() will be used. (This imethod is used by SendWin.)

PostMessage
The system command PostMessage() will be used to send WM_KEYDOWN and WM_KEYUP messages. (This method is used by SendWinM.)

SendMessage
The system command SendMessage() will be used to send WM_KEYDOWN and WM_KEYUP messages.

BackgroundFocus
HotkeyNet will attempt to make the targeted window act as if it has the keyboard focus even though it's in the background.

BackgroundFocusDelays
HotkeyNet will insert delays after setting the background focus and before killing it. This option has an effect only when BackgroundFocus is also specified. To change the length of the delays, use the Settings panel or SetBackgroundFocusDelays.

Topmost
Not yet implemented.

Buffer
Not yet implemented.

wmCharOnly
Instead of sending WM_KEYDOWN and WM_KEYUP messages, HotkeyNet will send only WM_CHAR messages. This option has an effect only when PostMessage or SendMessage are specified.

wmCharAlso
In addition to WM_KEYDOWN and WM_KEYUP messages, HotkeyNet will also send WM_CHAR messages. This option has an effect only when PostMessage or SendMessage are specified.

FocusWin
Specifies that output gets sent to whichever window happens to have the focus. Must be used in combination with SendInput. (This keyword changed In build 104. It used to be "NoTarget.")

Remarks

You can write options in any order.

This is a low-level command. It's usually more convenient to use high-level command such as SendWin, SendWinMF, etc. However, SetSendMode must be used when the high-level commands fail to send keystrokes to a particular background window,


Example

The following definition:

<hotkey F1>
   <sendpc local>
       <TargetWin "My difficult background Window">
       <SetSendMode PostMessage>
       <text hi boss!>
is equivalent to this one:
<hotkey F1>
   <sendpc local>
       <SendWinM "My difficult background Window">
       <text hi boss!>

Related topics

TargetChild
TargetWin


This page was last revised on June 8, 2008
 
INSTRUCTIONS


REFERENCE


OTHER STUFF


WORLD OF WARCRAFT