Log in

View Full Version : Setup and control of window focus



Fuzzyboy
12-13-2008, 01:50 PM
I'm still setting up my HKN which is coming along nicely, but there's one thing I don't know how to do. And one thing I don't know if can be done.

1) Is there any way to have HKN to only be active / send keys, when a WoW window has focus?

2) I use A, S, D, W for movement on my main, but I also want to use those keys "normally" on occasion (when typing my password, when using a quest item in game using /use etc.), is there any way to do that if asdw are defined as movement keys?

olipcs
12-13-2008, 02:19 PM
Hi, i try to give some examples how i do the thinks you asked about:
1) Is there any way to have HKN to only be active / send keys, when a WoW window has focus? I do this by defining all my hotkeys with the following template:


// %1% = Key, Keysequence or Keylist to be broadcasted
<Template Broadcastkey>
<Hotkey %1%; alt %1%; ctrl %1%; shift %1%>
<If ActiveWinIsNot WoW>
<SendFocusWin>
<Key %trigger%>
<Else>
<Sendlabel w1,w2,w3,w4,w5>
<Key %trigger%>
<EndTemplate>

with w1,w2,w3,w4,w5 being th labels for my WoW-windows, and the names of all my WoW windows starting with WoW (WoW1,WoW2,WoW3..).
You can the define the keys you want to broadcast with:

<ApplyTemplate Broadcastkey A-Z>

or even with a hole Keylist as a parameter:

<KeyList MyList A-Z, 0, 2-9, F6-F12 except W, A, S, D, Q, E>
<ApplyTemplate Broadcastkey MyList>

(if you don't need the alt,ctrl,shift-versions simply erase them.)


2) I use A, S, D, W for movement on my main, but I also want to use those keys "normally" on occasion (when typing my password, when using a quest item in game using /use etc.), is there any way to do that if asdw are defined as movement keys? for this I simply have a hotkey defined which toggles hkn-on and off like this:



<hotkey pause>
<sendpc local>
<ToggleHotkeys>

Fuzzyboy
12-13-2008, 02:41 PM
Brilliant - thanks :-)

olipcs
12-13-2008, 03:06 PM
No problem, glad i could help!
btw.: for the above template stuff you need a version with build 153 or above.