I've seen so many questions on how to write or just setup AHK scripts, I'm posting my full AHK script here. I've recently re-written the entire thing, and although I've had no problems with initial testing, it's possible there's an error or two due to the massive amount of key combinations it's able to broadcast. There is absolutely no automation in the script - it's strictly key broadcasting with no added risk.
Here's the functionality involved:
- It is completely flexible with no modification needed for running different amounts of instances of WoW once you've got it set up for your at least your maximum amount. It's currently written to handle up to 6 instances of WoW at once (the amount of accounts I've used at once), but it could easily be expanded by adding a few lines to support as many instances of WoW you want. It will work perfectly fine using less than the supported instances. I've had it running with just one WoW instance, two, three, five, and six with no issues.
- F1 is my "formation spread" key, so it is broadcasted as a keypress down, and not broadcasted as a keypress up until it's released. This means the longer you hold the key, the farther apart your characters will spread. It broadcasts to all instances, so you'll probably want to unbind F1 on your main, and bind F1 to a different movement key on each of your alts. I have a commented section (using ;'s for commented lines) to go back to standard F1 broadcasting.
- All standard alphabetic keys are NOT broadcasted. I'm bad about forgetting to suspend AHK when I chat, and I hate character screens, social windows, bags, etc popping up while I'm chatting.
The commented section in the top of the script describes the functionality:
;================================================= ====================
; AutoHotKey Script by codeX* (aka -silencer-)
; - Flexible number of WoW instances. You can run from 1 to 6
; instances of WoW with no functional changes needed. All you
; have to do is reload the script.
; - Delete will toggle suspend script on/off.
; - The following keys are broadcasted:
; 1 to = (plus Shift, Control, Alt modifiers)
; F1 to F12 (plus Shift, Control modifiers)
; Note: F1 is my "spread" formation key, it works differently
; A to Z (only with Control modifier)
; Numpad Keys (plus Shift, Control, Alt modifiers)
; Arrow Keys (plus Shift, Control, Alt modifiers)
; Space (plus Shift, Control, Alt modifiers)
; Backspace (plus Shift, Control, Alt modifiers)
; [ ] (plus Shift, Control, Alt modifiers)
; 58-key X-Keys Pro Set (All have Shift+Control+Alt modifier)
; A to Z (26 keys)
; 1 to 0 (10 keys)
; Numpad1 to Numpad0 (10 keys)
; F1 to F12 (12 keys)
; Up, Down, Left, Right Arrow Keys
; - These keys are NOT broadcasted:
; NumLock & NumEnter
; A to Z, Shift+A to Shift+Z, Alt+A to Alt+Z
; Alt+F1 to Alt+F12
; Enter, Tab, Escape, ~, \, Insert, Delete, Home, End, PgUp, PgDn
; PrintScreen, ScrollLock, Pause, CapsLock, <, >, /
;================================================= ====================
Note that none of the alpha characters are broadcasted - I can't stand windows popping up while I'm chatting if I forget to suspend AHK. However, the alpha keys are broadcasted with Control modifier. Although I don't have an X-Keys Pro yet, I wanted the functionality ready when I decide to purchase one. There are 62 keys that are broadcast with the Shift+Control+Alt modifier, with the intended use to be with X-Keys Pro. I use these for my G15's 18 macro keys. There are no broadcasts using two combined modifiers, so that could be added for extra broadcasted keys if you have a full X-Keys keyboard you'd like to use alongside a regular keyboard.
If you have any questions, feel free to reply here.
Enjoy.
I didn't check the number of lines, but this is a large text file, so I can't post the full source here. Download it and take a look if you're interested.
(Attachments here have size restrictions, and it's 90kb uncompressed. Download this zip file, decompress, and load up my AHK script for massive key broadcasting goodness.)
Connect With Us