Numpad1-9 for the keys.Originally Posted by Jayk
Numpad1-9 for the keys.Originally Posted by Jayk
To mctrix: I dont think you could do that since your not moving the cursor over the corpse in all windows at the same time..
And I have some problems of my own, I hope someone can help me. You see when I move my character in my main window my secondary window character wont follow.. But if I write the "W" in the chat it writes in the 2nd window aswell, but why wont he move?...
Any ideas?
autohotkey imitates keyclick, so when u press W in one window, it presses single click in 2nd window. You can test it by putting character at 2nd window on /follow behind your main char and then in 1st window press W, character at 2nd window will stop following because it moved.
Maybe there is function to keep W key (or any other) pressed, but I dont rly know...
Thanks unit187, didnt think of that. But I have found a solution now, someone posted this on the AutoHotkey forums:
http://www.autohotkey.com/forum/viewtopic.php?t=20966
I also found a World of Warcraft script topic, might be intresting:
http://www.autohotkey.com/forum/topi...be78377fc56df8
Ok I edited a few of the examples throughout this thread into one script. This scripts allows the use of keys 1-0, Shift+1-0, and Cntl+1-0 for a total of 30 hotkeys you can pass back and forth between the two clients.
This script also is dependant upon two in-game macros you will have to make.
FOLLOW
/follow party1
and
ASSIST
/assist party1
Place these two macros in hotbar location - and =
- is for Follow
and
= is for Assist
This is a general script that will allow you to control any combination of characters, as with anything the usefulness of it depends on your understanding of your characters the placement of your skills.
Description of Script
Simply put it allows both clients to receive the same key press at the same time.
Client 1 (Main) - presses Key 1
Client 1 (Main) - receives Key 1 Input
Client 2 (Drone) - receives Key 1 Input
it also makes Client 2 assist Client 1 with every key press, this can be removed for your own needs by removing the line
ControlSend,,{= down}{= up}, ahk_id %wowid2%
from any of the keypress functions. Why is this needed, for most spells a target is required, so this tells Client 2 to use Client 1's target to cast what ever ability you are telling it to cast. And the script is simply telling Client 2 to press = (bound to macro Assist).
Things to watch out for
When testing this with a Warlock/Mage Combo as well as a Hunter/Hunter combo I noticed when Client 2 (Drone) goes into melee combat it leaves AutoFollowing Mode, so to tell Client 2 to start following you again simply Press Cntrl+- to have him follow you again.
Expand the script to meet your needs
AutoHotkey is a powerful yet very simple to understand scripting language, if you need a delay in between your Client 1 and Client 2 attacks add a pause in there to space out the attacks.
How to use this code
First i'm assuming you have AutoHotkey installed already if not, do that now, then Copy and paste all this code below into a text file and Save As DuelAccountHelper.ahk the ahk extension lets Autohotkey know this is a script file and to process it accordingly.
[code:1]
; ***************************
; *** Duel Account Helper ***
; ***************************
WinGet, wowid, List, World of Warcraft
;*** Special Functions ***
#IfWinActive, World of Warcraft
; *** Makes wow2 follow Wow1 Player ***
^-::
ControlSend,,{- down}{- up}, ahk_id %wowid2%
return
#IfWinActive, World of Warcraft
; *** Makes wow2 Assist Wow1 Player ***
^=::
ControlSend,,{= down}{= up}, ahk_id %wowid2%
return
; *******************
; *** Hotbars 1-0 ***
; *******************
#IfWinActive, World of Warcraft
~1::
ControlSend,,{1 down}{1 up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{1 down}{1 up}, ahk_id %wowid2%
return
#IfWinActive, World of Warcraft
~2::
ControlSend,,{2 down}{2 up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{2 down}{2 up}, ahk_id %wowid2%
return
#IfWinActive, World of Warcraft
~3::
ControlSend,,{3 down}{3 up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{3 down}{3 up}, ahk_id %wowid2%
return
#IfWinActive, World of Warcraft
~4::
ControlSend,,{4 down}{4 up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{4 down}{4 up}, ahk_id %wowid2%
return
#IfWinActive, World of Warcraft
~5::
ControlSend,,{5 down}{5 up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{5 down}{5 up}, ahk_id %wowid2%
return
#IfWinActive, World of Warcraft
~6::
ControlSend,,{6 down}{6 up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{6 down}{6 up}, ahk_id %wowid2%
return
#IfWinActive, World of Warcraft
~7::
ControlSend,,{7 down}{7 up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{7 down}{7 up}, ahk_id %wowid2%
return
#IfWinActive, World of Warcraft
~8::
ControlSend,,{8 down}{8 up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{8 down}{8 up}, ahk_id %wowid2%
return
#IfWinActive, World of Warcraft
~9::
ControlSend,,{9 down}{9 up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{9 down}{9 up}, ahk_id %wowid2%
return
#IfWinActive, World of Warcraft
~0::
ControlSend,,{0 down}{0 up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{0 down}{0 up}, ahk_id %wowid2%
return
; ***************************
; *** Hotbars Shift + 1-0 ***
; ***************************
#IfWinActive, World of Warcraft
~+1::
ControlSend,,{Shift down}{1 down}{1 up}{Shift up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{Shift down}{1 down}{1 up}{Shift up}, ahk_id %wowid2%
return
#IfWinActive, World of Warcraft
~+2::
ControlSend,,{Shift down}{2 down}{2 up}{Shift up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{Shift down}{2 down}{2 up}{Shift up}, ahk_id %wowid2%
return
#IfWinActive, World of Warcraft
~+3::
ControlSend,,{Shift down}{3 down}{3 up}{Shift up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{Shift down}{3 down}{3 up}{Shift up}, ahk_id %wowid2%
return
#IfWinActive, World of Warcraft
~+4::
ControlSend,,{Shift down}{4 down}{4 up}{Shift up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{Shift down}{4 down}{4 up}{Shift up}, ahk_id %wowid2%
return
#IfWinActive, World of Warcraft
~+5::
ControlSend,,{Shift down}{5 down}{5 up}{Shift up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{Shift down}{5 down}{5 up}{Shift up}, ahk_id %wowid2%
return
#IfWinActive, World of Warcraft
~+6::
ControlSend,,{Shift down}{6 down}{6 up}{Shift up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{Shift down}{6 down}{6 up}{Shift up}, ahk_id %wowid2%
return
#IfWinActive, World of Warcraft
~+7::
ControlSend,,{Shift down}{7 down}{7 up}{Shift up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{Shift down}{7 down}{7 up}{Shift up}, ahk_id %wowid2%
return
#IfWinActive, World of Warcraft
~+8::
ControlSend,,{Shift down}{8 down}{8 up}{Shift up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{Shift down}{8 down}{8 up}{Shift up}, ahk_id %wowid2%
return
#IfWinActive, World of Warcraft
~+9::
ControlSend,,{Shift down}{9 down}{9 up}{Shift up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{Shift down}{9 down}{9 up}{Shift up}, ahk_id %wowid2%
return
#IfWinActive, World of Warcraft
~+0::
ControlSend,,{Shift down}{0 down}{0 up}{Shift up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{Shift down}{0 down}{0 up}{Shift up}, ahk_id %wowid2%
return
; **************************
; *** Hotbars Cntl + 1-0 ***
; **************************
#IfWinActive, World of Warcraft
~^1::
ControlSend,,{Ctrl down}{1 down}{1 up}{Ctrl up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{Ctrl down}{1 down}{1 up}{Ctrl up}, ahk_id %wowid2%
return
#IfWinActive, World of Warcraft
~^2::
ControlSend,,{Ctrl down}{2 down}{2 up}{Ctrl up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{Ctrl down}{2 down}{2 up}{Ctrl up}, ahk_id %wowid2%
return
#IfWinActive, World of Warcraft
~^3::
ControlSend,,{Ctrl down}{3 down}{3 up}{Ctrl up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{Ctrl down}{3 down}{3 up}{Ctrl up}, ahk_id %wowid2%
return
#IfWinActive, World of Warcraft
~^4::
ControlSend,,{Ctrl down}{4 down}{4 up}{Ctrl up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{Ctrl down}{4 down}{4 up}{Ctrl up}, ahk_id %wowid2%
return
#IfWinActive, World of Warcraft
~^5::
ControlSend,,{Ctrl down}{5 down}{5 up}{Ctrl up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{Ctrl down}{5 down}{5 up}{Ctrl up}, ahk_id %wowid2%
return
#IfWinActive, World of Warcraft
~^6::
ControlSend,,{Ctrl down}{6 down}{6 up}{Ctrl up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{Ctrl down}{6 down}{6 up}{Ctrl up}, ahk_id %wowid2%
return
#IfWinActive, World of Warcraft
~^7::
ControlSend,,{Ctrl down}{7 down}{7 up}{Ctrl up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{Ctrl down}{7 down}{7 up}{Ctrl up}, ahk_id %wowid2%
return
#IfWinActive, World of Warcraft
~^8::
ControlSend,,{Ctrl down}{8 down}{8 up}{Ctrl up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{Ctrl down}{8 down}{8 up}{Ctrl up}, ahk_id %wowid2%
return
#IfWinActive, World of Warcraft
~^9::
ControlSend,,{Ctrl down}{9 down}{9 up}{Ctrl up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{Ctrl down}{9 down}{9 up}{Ctrl up}, ahk_id %wowid2%
return
#IfWinActive, World of Warcraft
~^0::
ControlSend,,{Ctrl down}{0 down}{0 up}{Ctrl up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{Ctrl down}{0 down}{0 up}{Ctrl up}, ahk_id %wowid2%
return
[/code:1]
PS. Not sure about how your system acts with Wow windowed, but I'm running a 2.20GHtz Athlon 64, with 3Gigs of Ram and wow lags a hell of alot with two copies open and running, To improve performance I shrank Client 2 down as small of a window as I could get it and Had Client one shank down enough where performance wasn't laggy anymore.
Hmm. I'm thinking of running two copies of WoW on the same computer with AHK. Warrior would be the main, priest would be running in a 2nd background window.
Let's say I create macro's for the priest like /target warrior, /cast heal, etc. Then I'd bind that macro to a key in the priest's window. I would then make a dummy macro in my warrior's screen, and it would only hit the keystroke that I bound my priest's heal macro to on the other screen. So when I want a heal on my warrior, I'd just click on that dummy heal macro on his screen, and it would automatically send that command to the priest's screen, and heal me.
I want to set up a bunch of macro's like this on the warrior's screen, like shield, renew, wand, etc. That way, when I want the priest to do something, I could just bind his actions to my F1-12 keys, my N52, or whatever. I'd much prefer this over just sending duplicate actions for everything my main toon does. I just want the priest to follow me, and only act when I hit certain keys while I'm playing the warrior.
Hopefully this makes sense, it's kinda early here, 3amOr maybe I missed the boat completely and this is the most basic of the basic things AHK can do. If this can work, then I could get some 3-boxing going with my 2 computers.
Do you want this hotkeyed or mouse click?Originally Posted by Mannyman
If you want it hotkeyed the above examples will work.
The scripts are based around Hotkeys, (ie 1-=, or Shift+1-0, or Cntl+1-0) I believe AHK would intercept mouseclicks as well, however I will not be posting any code for that, because it can be used nefariously. (ie unattended botting)
But if you're wanting to use the F1-F12 keys sure it's simple just change my script around and instead of ~1:: You would change it to ~F1 and so forth, you would have to edit all the script though to make it press the correct keys,
take this line for example
[code:1]
#IfWinActive, World of Warcraft
~1::
ControlSend,,{1 down}{1 up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{1 down}{1 up}, ahk_id %wowid2%
return [/code:1]
would be changed to
[code:1]
#IfWinActive, World of Warcraft
~1::
ControlSend,,{F1 down}{F1 up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{F1 down}{F1 up}, ahk_id %wowid2%
return [/code:1]
Like I said before this language is pretty straight forward and has a very slim learning curve, when in doubt, consult the help file it should tell you everything you need, look up Keys in the help file for all available keys it supports and how to use them in the scripts.
For those of you with three accounts, this script is just like my previous one, with the exception it supports three accounts opposed to two.
[code:1]
; ***************************
; *** Triple Account Helper ***
; ***************************
WinGet, wowid, List, World of Warcraft
;*** Special Functions ***
#IfWinActive, World of Warcraft
; *** Makes wow2 follow Wow1 Player ***
^-::
ControlSend,,{- down}{- up}, ahk_id %wowid2%
ControlSend,,{- down}{- up}, ahk_id %wowid3%
return
#IfWinActive, World of Warcraft
; *** Makes wow2 Assist Wow1 Player ***
^=::
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{= down}{= up}, ahk_id %wowid3%
return
; *******************
; *** Hotbars 1-0 ***
; *******************
#IfWinActive, World of Warcraft
~1::
ControlSend,,{1 down}{1 up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{= down}{= up}, ahk_id %wowid3%
ControlSend,,{1 down}{1 up}, ahk_id %wowid2%
ControlSend,,{1 down}{1 up}, ahk_id %wowid3%
return
#IfWinActive, World of Warcraft
~2::
ControlSend,,{2 down}{2 up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{= down}{= up}, ahk_id %wowid3%
ControlSend,,{2 down}{2 up}, ahk_id %wowid2%
ControlSend,,{2 down}{2 up}, ahk_id %wowid3%
return
#IfWinActive, World of Warcraft
~3::
ControlSend,,{3 down}{3 up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{= down}{= up}, ahk_id %wowid3%
ControlSend,,{3 down}{3 up}, ahk_id %wowid2%
ControlSend,,{3 down}{3 up}, ahk_id %wowid3%
return
#IfWinActive, World of Warcraft
~4::
ControlSend,,{4 down}{4 up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{= down}{= up}, ahk_id %wowid3%
ControlSend,,{4 down}{4 up}, ahk_id %wowid2%
ControlSend,,{4 down}{4 up}, ahk_id %wowid3%
return
#IfWinActive, World of Warcraft
~5::
ControlSend,,{5 down}{5 up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{= down}{= up}, ahk_id %wowid3%
ControlSend,,{5 down}{5 up}, ahk_id %wowid2%
ControlSend,,{5 down}{5 up}, ahk_id %wowid3%
return
#IfWinActive, World of Warcraft
~6::
ControlSend,,{6 down}{6 up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{= down}{= up}, ahk_id %wowid3%
ControlSend,,{6 down}{6 up}, ahk_id %wowid2%
ControlSend,,{6 down}{6 up}, ahk_id %wowid3%
return
#IfWinActive, World of Warcraft
~7::
ControlSend,,{7 down}{7 up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{= down}{= up}, ahk_id %wowid3%
ControlSend,,{7 down}{7 up}, ahk_id %wowid2%
ControlSend,,{7 down}{7 up}, ahk_id %wowid3%
return
#IfWinActive, World of Warcraft
~8::
ControlSend,,{8 down}{8 up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{= down}{= up}, ahk_id %wowid3%
ControlSend,,{8 down}{8 up}, ahk_id %wowid2%
return
#IfWinActive, World of Warcraft
~9::
ControlSend,,{9 down}{9 up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{= down}{= up}, ahk_id %wowid3%
ControlSend,,{9 down}{9 up}, ahk_id %wowid2%
ControlSend,,{9 down}{9 up}, ahk_id %wowid3%
return
#IfWinActive, World of Warcraft
~0::
ControlSend,,{0 down}{0 up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{= down}{= up}, ahk_id %wowid3%
ControlSend,,{0 down}{0 up}, ahk_id %wowid2%
ControlSend,,{0 down}{0 up}, ahk_id %wowid3%
return
; ***************************
; *** Hotbars Shift ^ 1-0 ***
; ***************************
#IfWinActive, World of Warcraft
~+1::
ControlSend,,{Shift down}{1 down}{1 up}{Shift up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{= down}{= up}, ahk_id %wowid3%
ControlSend,,{Shift down}{1 down}{1 up}{Shift up}, ahk_id %wowid2%
ControlSend,,{Shift down}{1 down}{1 up}{Shift up}, ahk_id %wowid3%
return
#IfWinActive, World of Warcraft
~+2::
ControlSend,,{Shift down}{2 down}{2 up}{Shift up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{= down}{= up}, ahk_id %wowid3%
ControlSend,,{Shift down}{2 down}{2 up}{Shift up}, ahk_id %wowid2%
ControlSend,,{Shift down}{2 down}{2 up}{Shift up}, ahk_id %wowid3%
return
#IfWinActive, World of Warcraft
~+3::
ControlSend,,{Shift down}{3 down}{3 up}{Shift up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{= down}{= up}, ahk_id %wowid3%
ControlSend,,{Shift down}{3 down}{3 up}{Shift up}, ahk_id %wowid2%
ControlSend,,{Shift down}{3 down}{3 up}{Shift up}, ahk_id %wowid3%
return
#IfWinActive, World of Warcraft
~+4::
ControlSend,,{Shift down}{4 down}{4 up}{Shift up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{= down}{= up}, ahk_id %wowid3%
ControlSend,,{Shift down}{4 down}{4 up}{Shift up}, ahk_id %wowid2%
ControlSend,,{Shift down}{4 down}{4 up}{Shift up}, ahk_id %wowid3%
return
#IfWinActive, World of Warcraft
~+5::
ControlSend,,{Shift down}{5 down}{5 up}{Shift up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{= down}{= up}, ahk_id %wowid3%
ControlSend,,{Shift down}{5 down}{5 up}{Shift up}, ahk_id %wowid2%
ControlSend,,{Shift down}{5 down}{5 up}{Shift up}, ahk_id %wowid3%
return
#IfWinActive, World of Warcraft
~+6::
ControlSend,,{Shift down}{6 down}{6 up}{Shift up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{= down}{= up}, ahk_id %wowid3%
ControlSend,,{Shift down}{6 down}{6 up}{Shift up}, ahk_id %wowid2%
ControlSend,,{Shift down}{6 down}{6 up}{Shift up}, ahk_id %wowid3%
return
#IfWinActive, World of Warcraft
~+7::
ControlSend,,{Shift down}{7 down}{7 up}{Shift up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{= down}{= up}, ahk_id %wowid3%
ControlSend,,{Shift down}{7 down}{7 up}{Shift up}, ahk_id %wowid2%
ControlSend,,{Shift down}{7 down}{7 up}{Shift up}, ahk_id %wowid3%
return
#IfWinActive, World of Warcraft
~+8::
ControlSend,,{Shift down}{8 down}{8 up}{Shift up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{= down}{= up}, ahk_id %wowid3%
ControlSend,,{Shift down}{8 down}{8 up}{Shift up}, ahk_id %wowid2%
ControlSend,,{Shift down}{8 down}{8 up}{Shift up}, ahk_id %wowid3%
return
#IfWinActive, World of Warcraft
~+9::
ControlSend,,{Shift down}{9 down}{9 up}{Shift up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{= down}{= up}, ahk_id %wowid3%
ControlSend,,{Shift down}{9 down}{9 up}{Shift up}, ahk_id %wowid2%
ControlSend,,{Shift down}{9 down}{9 up}{Shift up}, ahk_id %wowid3%
return
#IfWinActive, World of Warcraft
~+0::
ControlSend,,{Shift down}{0 down}{0 up}{Shift up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{= down}{= up}, ahk_id %wowid3%
ControlSend,,{Shift down}{0 down}{0 up}{Shift up}, ahk_id %wowid2%
ControlSend,,{Shift down}{0 down}{0 up}{Shift up}, ahk_id %wowid3%
return
; **************************
; *** Hotbars Cntl ^ 1-0 ***
; **************************
#IfWinActive, World of Warcraft
~^1::
ControlSend,,{Ctrl down}{1 down}{1 up}{Ctrl up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{= down}{= up}, ahk_id %wowid3%
ControlSend,,{Ctrl down}{1 down}{1 up}{Ctrl up}, ahk_id %wowid2%
ControlSend,,{Ctrl down}{1 down}{1 up}{Ctrl up}, ahk_id %wowid3%
return
#IfWinActive, World of Warcraft
~^2::
ControlSend,,{Ctrl down}{2 down}{2 up}{Ctrl up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{= down}{= up}, ahk_id %wowid3%
ControlSend,,{Ctrl down}{2 down}{2 up}{Ctrl up}, ahk_id %wowid2%
ControlSend,,{Ctrl down}{2 down}{2 up}{Ctrl up}, ahk_id %wowid3%
return
#IfWinActive, World of Warcraft
~^3::
ControlSend,,{Ctrl down}{3 down}{3 up}{Ctrl up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{= down}{= up}, ahk_id %wowid3%
ControlSend,,{Ctrl down}{3 down}{3 up}{Ctrl up}, ahk_id %wowid2%
ControlSend,,{Ctrl down}{3 down}{3 up}{Ctrl up}, ahk_id %wowid3%
return
#IfWinActive, World of Warcraft
~^4::
ControlSend,,{Ctrl down}{4 down}{4 up}{Ctrl up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{= down}{= up}, ahk_id %wowid3%
ControlSend,,{Ctrl down}{4 down}{4 up}{Ctrl up}, ahk_id %wowid2%
ControlSend,,{Ctrl down}{4 down}{4 up}{Ctrl up}, ahk_id %wowid3%
return
#IfWinActive, World of Warcraft
~^5::
ControlSend,,{Ctrl down}{5 down}{5 up}{Ctrl up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{= down}{= up}, ahk_id %wowid3%
ControlSend,,{Ctrl down}{5 down}{5 up}{Ctrl up}, ahk_id %wowid2%
ControlSend,,{Ctrl down}{5 down}{5 up}{Ctrl up}, ahk_id %wowid3%
return
#IfWinActive, World of Warcraft
~^6::
ControlSend,,{Ctrl down}{6 down}{6 up}{Ctrl up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{= down}{= up}, ahk_id %wowid3%
ControlSend,,{Ctrl down}{6 down}{6 up}{Ctrl up}, ahk_id %wowid2%
ControlSend,,{Ctrl down}{6 down}{6 up}{Ctrl up}, ahk_id %wowid3%
return
#IfWinActive, World of Warcraft
~^7::
ControlSend,,{Ctrl down}{7 down}{7 up}{Ctrl up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{= down}{= up}, ahk_id %wowid3%
ControlSend,,{Ctrl down}{7 down}{7 up}{Ctrl up}, ahk_id %wowid2%
ControlSend,,{Ctrl down}{7 down}{7 up}{Ctrl up}, ahk_id %wowid3%
return
#IfWinActive, World of Warcraft
~^8::
ControlSend,,{Ctrl down}{8 down}{8 up}{Ctrl up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{= down}{= up}, ahk_id %wowid3%
ControlSend,,{Ctrl down}{8 down}{8 up}{Ctrl up}, ahk_id %wowid2%
ControlSend,,{Ctrl down}{8 down}{8 up}{Ctrl up}, ahk_id %wowid3%
return
#IfWinActive, World of Warcraft
~^9::
ControlSend,,{Ctrl down}{9 down}{9 up}{Ctrl up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{= down}{= up}, ahk_id %wowid3%
ControlSend,,{Ctrl down}{9 down}{9 up}{Ctrl up}, ahk_id %wowid2%
ControlSend,,{Ctrl down}{9 down}{9 up}{Ctrl up}, ahk_id %wowid3%
return
#IfWinActive, World of Warcraft
~^0::
ControlSend,,{Ctrl down}{0 down}{0 up}{Ctrl up}, ahk_id %wowid1%
ControlSend,,{= down}{= up}, ahk_id %wowid2%
ControlSend,,{= down}{= up}, ahk_id %wowid3%
ControlSend,,{Ctrl down}{0 down}{0 up}{Ctrl up}, ahk_id %wowid2%
ControlSend,,{Ctrl down}{0 down}{0 up}{Ctrl up}, ahk_id %wowid3%
return
[/code:1]
Enjoy!
PS. If i get some time I might make this script a bit more smart. Meaning right now it can't determine which is the Main copy of Wow running, so I can add some user input and have it ask you which copy is the main account and dynamically adjust the script to reflect that. Any other suggestions as to what you'd like to see in the scripts is welcomed to, I'll see if I can add as many requests into the scripts as possible....no promises though![]()
Hotkeyed preferred. Good to know it has a chance
By the way, any chance AHK can handle spells where you have to target and click a spot, like blizzard, hellfire, shadowfury, etc?
Connect With Us