General:
The command to define a Hotkey is: <Hotkey ..>
A simple example to broadcast '1' to a window named 'wow1' on the local computer would look like:
Code:
<hotkey 1>
<sendpc local>
<sendwin wow1>
<key 1>
So basicaly in the <hotkey ..>-command the trigger is defiend (line 1), here '1', and in the following (line 2-4) an action to execute.
As a trigger simple keys like '1','a','F11' can be used or combinations of modifiers and a key.
As a modifier the normal modifiers 'shift','ctrl','alt' can be used or with the <UseKeyAsModifier>-command any other key can be used.
For the hole definition of <HotKey> see: HKN: HotKey .
For how to figure out keynames see: HKN: Keynames .
Broadcasting Keys to WoW windows
For broadcasting a hole bunch of keys to different WoW windows the following example (here for 5 boxing on one pc) can be used:
Code:
//-----------------------------------------------------------
// DEFINE MAIL LABELS FOR SENDING KEY STROKES.
//-----------------------------------------------------------
<Label w1 Local SendWinM WoW1>
<Label w2 Local SendWinM WoW2>
<Label w3 Local SendWinM WoW3>
<Label w4 Local SendWinM WoW4>
<Label w5 Local SendWinM WoW5>
//-----------------------------------------------------------
// DEFINE HOTKEYS FOR ALL KEY COMBINATIONS THAT WILL GET
// SENT TO ALL WOWS. ADD MORE KEY COMBO'S IF YOU WANT.
//-----------------------------------------------------------
<KeyList MyList A-Z, 0-9, Enter, Tab, Oem4, Space, Comma, Oem6 except W, A, S, D, Q, E, L>
<Hotkey MyList; Shift MyList; Alt MyList; Ctrl MyList>
<SendLabel w1, w2, w3, w4, w5>
<Key %Trigger%>
this does the following:
1. Defining five <Label..>-commands, one for each WoW-window.
A <Label ..> -command can be used to summerize for a setup to which window, running on which pc, with what method keys (or other actions) are send.
So <Label w1 Local SendWinM WoW1> defines that when sending a key to the label 'w1' with <SendLabel..> its meant: Sending a key to the window named 'WoW1', which is runing on the local pc using the method SendWinM.
2. Defining a KeyList
This also is a shorter form of defining multiple hotkeys. And basicly means, that all the trigger-keys can be defined in a KeyList and the name of the KeyList can be used in the <HotKey>-definition instead of the triggers. For the syntax see this .
3. Defining the Hotkey
With <Hotkey MyList; Shift MyList; Alt MyList; Ctrl MyList> the triggers for the action defined in the next 2 lines are defined, using the KeyList defined before. The action to execute is composed of 2 things:
a) <SendLabel w1, w2, w3, w4, w5>, tells HKN to which Labels to send (and thereby to wich Window, on which PC with which Method)
b) <Key %Trigger%>, tells HKN what to send. Here the same key as the key which triggerd the action. For reference see: this .
Movement Keys
Some keys which need to be handled differently are keys that should be used for moving, turning etc. in wow, as for them ist not a simple <KeyDown><KeyUp>. This keys can be defined like any other <HotKey> with <MovementHotkey> .
So example code for using the cursor-keys as movement-keys and broadcasting them to all windows, would look like:
Code:
<MovementHotkey up, down, left, right>
<SendLabel w1, w2, w3, w4, w5>
<Key %Trigger%>
Toggeling HKN off/on
Sometimes its quite usefull to simply turn of all hotkey-definitions (for example for chatting) this can be easily be done with defining a Trigger-Key for toggeling HKN on/off like:
Code:
<hotkey pause>
<sendpc local>
<ToggleHotkeys>
Connect With Us