View Full Version : [HotKeyNet] Starting out with HotKeyNet
Ozbert
06-16-2012, 10:28 AM
Hi.
I've just returned to multiboxing WoW and I'm trying to get to grips with HotkeyNet for the first time, as my Keyclone license no longer works.
I've had a read through the docs and examples of HKN scripts, but am a little unclear on how to achieve the functionality I want.
In particular I think I need three different "levels" of key broadcasting in HKN:
Broadcast most keys to all windows, except movement and tab - for general play
Broadcast all keys - for entering arbitrary text in all windows at the same time, e.g. typing password, adding macros to all clients
Disable all broadcasting
I can see how to implement a simple enable/disable of all hotkeys using the ToggleHotKeys function which sorts 3, but how can I achieve the switching between 1 and 2?
Thanks for any advice.
PS. Mistakenly thought I was using AutoHotKey, not HotkeyNet. Could a moderator correct the thread tag to HotkeyNet please?
Khatovar
06-16-2012, 10:47 AM
I define keylists and use a toggle to swap between them.
<KeyList MyList 0-9, A-Z, Numpad0-Numpad9, Divide, Multiply, NumpadMinus, NumpadPlus, Backspace, Insert, Home, PgUp, PgDn, Delete, F1-F12, Esc, Tab, Oem1-Oem7, except OEM2, 2, w, a, s, d, q, e, x>
<Keylist All 0-9, A-Z, Backspace, Delete, Space, Esc, Enter, Tab, Oem1-Oem7>
<Hotkey CapsLockOff MyList; CapsLockoff Shift MyList; CapsLockOff Alt MyList; CapsLockOff Ctrl MyList; CapsLockOff Ctrl Alt MyList; CapsLockOff Shift Ctrl MyList; CapsLockOff Shift Alt MyList>
<SendLabel w1, w2, w3, w4, w5>
<Key %Trigger%>
<Hotkey CapsLockOn All>
<SendLabel w1, w2, w3, w4, w5>
<Key %Trigger%>
<hotkey Pause>
<sendpc local>
<ToggleHotkeys>
Keylist MyList defines keys I want to send during normal mutliboxing. Keylist All is keys I want to send for things like everyone entering text {emotes, passwords, etc}.
CapsLock is the toggle between the two. If CapsLock is off, I am broadcasting normally {defined the list for use with modifiers as well}. If Capslock is on, I am broadcasting everything to everyone.
And of course, Pause disables all broadcasting to any background window.
Ozbert
06-16-2012, 10:57 AM
Perfect, thank you!
Another question: Is it possible for HKN to stop attempting to broadcast to any WoW windows when I don't have any of them selected, for example I've tabbed out to a web browser.
Khatovar
06-16-2012, 11:35 AM
Yup. If you have Partial Match enabled under Options > Settings > Window Name Match you can make use of an IF statement
<Hotkey CapsLockOff MyList; CapsLockoff Shift MyList; CapsLockOff Alt MyList; CapsLockOff Ctrl MyList; CapsLockOff Ctrl Alt MyList; CapsLockOff Shift Ctrl MyList; CapsLockOff Shift Alt MyList>
<If ActiveWinIs WoW>
<SendLabel w1, w2, w3, w4, w5>
<Key %Trigger%>
<Else>
<SendPC Local>
<TurnHotkeysOff>
Using If ActiveWinIs WoW means that if you are in any window starting with WoW then your keys will act normally. If you aren't, as soon as you use a key in that list, it will pause HotKeyNet.
Ozbert
06-17-2012, 03:36 AM
Here's my script so far: http://pastebin.com/wPw8gkRx
I get a ton of errors about Disregarding Empty Hotkeys, listing all the keys in my two KeyLists when I load that script.
Khatovar
06-17-2012, 04:02 AM
I can't duplicate the error. I copied the script and got errors because you didn't close your brackets on lines 104 and 108 and because you have line breaks in the middle of your keylists at lines 96 and 100
03:56:17:
Loading script C:\Users\Giga_Mu-fin\Desktop\blegh.txt.
03:56:17:
Line 96 in C:\Users\Giga_Mu-fin\Desktop\blegh.txt: <KeyList AllKeys Esc, F1-F12, Oem1-8, 0-9, A-Z, Minus, Plus, Backspace, Tab, Enter, Comma, Period, Insert, Delete, Home, End,
03:56:17: unmatched left angle
03:56:17:
Line 98 in C:\Users\Giga_Mu-fin\Desktop\blegh.txt: PgUp, PgDn, Up, Down, Left, Right, Divide, Multiply, NumpadMinus, NumpadPlus, NumpadEnter, Numpad0-9, Decimal>
03:56:17: text was found outside <> symbols; that's not allowed.
03:56:17:
Line 100 in C:\Users\Giga_Mu-fin\Desktop\blegh.txt: <HotKey ScrollLockOff GameKeys; ScrollLockOff Shift GameKeys; ScrollLockOff Ctrl GameKeys; ScrollLockOff Ctrl Alt GameKeys;
03:56:17: unmatched left angle
03:56:17:
Line 102 in C:\Users\Giga_Mu-fin\Desktop\blegh.txt: ScrollLockOff Shift Ctrl GameKeys; ScrollLockOff Shift Alt GameKeys>
03:56:17: text was found outside <> symbols; that's not allowed.
03:56:17:
Line 104 in C:\Users\Giga_Mu-fin\Desktop\blegh.txt: <Key %Trigger%
03:56:17: unmatched left angle
03:56:17:
Line 106 in C:\Users\Giga_Mu-fin\Desktop\blegh.txt: <HotKey ScrollLockOn AllKeys>
03:56:17: "AllKeys" is unknown.
03:56:17:
Line 108 in C:\Users\Giga_Mu-fin\Desktop\blegh.txt: <Key %Trigger%
03:56:17: unmatched left angle
03:56:17:
Finished loading hotkey file.
03:56:17: 7 errors were found
03:56:17: 9 definitions were loaded
03:56:17: 0 keys will be used as modifiers
I added the missing brackets and removed the breaks and no more errors.
04:01:12:
Loading script C:\Users\Giga_Mu-fin\Desktop\blegh.txt.
04:01:12:
Finished loading hotkey file.
04:01:12: No errors were found
04:01:12: 381 definitions were loaded
04:01:12: 0 keys will be used as modifiers
Nothing about empty hotkeys in either.
vBulletin® v4.2.2, Copyright ©2000-2025, Jelsoft Enterprises Ltd.