My GM and I both have multiple accounts, and would like to start pairing them up to level our toons up together to save time. This did not come about with intentions such as PvP or mass dungeon runs, so we're not running the same classes at once. Rather than spend lots of time figuring out macros that I'll have to rework as I gain new spells, what I'd like to do is use my mouse to control one WoW window, and use the keyboard (or more specifically in my case my Nostromo n52 [not TE] gamepad) to control the second WoW window.
I've remapped a second keyset on my Nostromo to include the Alt key, which will be the signifier to send the keypresses to the other window. I'm using standard 1-0 plus - and = for the main bar, +Ctrl for the second, and +Shift for the third bar, so you can imagine what that all looks like with +Alt.
My only problem is that for some reason my script is sending the commands to both windows, even though it only had a send command for one window (non-looped by id). I don't know if it's that WoW is just reading the original and AHK is sending the duplicate like it should, with the breakdown being my Nostromo. Any suggestions or support would be much appreciated.
Here is a copy of my current script:
Code:
WinGet, wowid, List, World of Warcraft
~!1::
KeyWait !
KeyWait 1
IfWinActive, World of Warcraft
{
ControlSend,, 1, ahk_id %wowid2%
Return
}
~!2::
KeyWait !
KeyWait 2
IfWinActive, World of Warcraft
{
ControlSend,, 2, ahk_id %wowid2%
Return
}
~!3::
KeyWait !
KeyWait 3
IfWinActive, World of Warcraft
{
ControlSend,, 3, ahk_id %wowid2%
Return
}
~!4::
KeyWait !
KeyWait 4
IfWinActive, World of Warcraft
{
ControlSend,, 4, ahk_id %wowid2%
Return
}
~!5::
KeyWait !
KeyWait 5
IfWinActive, World of Warcraft
{
ControlSend,, 5, ahk_id %wowid2%
Return
}
~!6::
KeyWait !
KeyWait 6
IfWinActive, World of Warcraft
{
ControlSend,, 6, ahk_id %wowid2%
Return
}
~!7::
KeyWait !
KeyWait 7
IfWinActive, World of Warcraft
{
ControlSend,, 7, ahk_id %wowid2%
Return
}
~!8::
KeyWait !
KeyWait 8
IfWinActive, World of Warcraft
{
ControlSend,, 8, ahk_id %wowid2%
Return
}
~!9::
KeyWait !
KeyWait 9
IfWinActive, World of Warcraft
{
ControlSend,, 9, ahk_id %wowid2%
Return
}
~!0::
KeyWait !
KeyWait 0
IfWinActive, World of Warcraft
{
ControlSend,, 0, ahk_id %wowid2%
Return
}
~!-::
KeyWait !
KeyWait -
IfWinActive, World of Warcraft
{
ControlSend,, -, ahk_id %wowid2%
Return
}
~!=::
KeyWait !
KeyWait =
IfWinActive, World of Warcraft
{
ControlSend,, =, ahk_id %wowid2%
Return
}
~!^1::
KeyWait !
KeyWait ^
KeyWait 1
IfWinActive, World of Warcraft
{
ControlSend,, ^1, ahk_id %wowid2%
Return
}
~!^2::
KeyWait !
KeyWait ^
KeyWait 2
IfWinActive, World of Warcraft
{
ControlSend,, ^2, ahk_id %wowid2%
Return
}
~!^3::
KeyWait !
KeyWait ^
KeyWait 3
IfWinActive, World of Warcraft
{
ControlSend,, ^3, ahk_id %wowid2%
Return
}
~!^4::
KeyWait !
KeyWait ^
KeyWait 4
IfWinActive, World of Warcraft
{
ControlSend,, ^4, ahk_id %wowid2%
Return
}
~!^5::
KeyWait !
KeyWait ^
KeyWait 5
IfWinActive, World of Warcraft
{
ControlSend,, ^5, ahk_id %wowid2%
Return
}
~!^6::
KeyWait !
KeyWait ^
KeyWait 6
IfWinActive, World of Warcraft
{
ControlSend,, ^6, ahk_id %wowid2%
Return
}
~!^7::
KeyWait !
KeyWait ^
KeyWait 7
IfWinActive, World of Warcraft
{
ControlSend,, ^7, ahk_id %wowid2%
Return
}
~!^8::
KeyWait !
KeyWait ^
KeyWait 8
IfWinActive, World of Warcraft
{
ControlSend,, ^8, ahk_id %wowid2%
Return
}
~!^9::
KeyWait !
KeyWait ^
KeyWait 9
IfWinActive, World of Warcraft
{
ControlSend,, ^9, ahk_id %wowid2%
Return
}
~!^0::
KeyWait !
KeyWait ^
KeyWait 0
IfWinActive, World of Warcraft
{
ControlSend,, ^0, ahk_id %wowid2%
Return
}
~!^-::
KeyWait !
KeyWait -
IfWinActive, World of Warcraft
{
ControlSend,, ^-, ahk_id %wowid2%
Return
}
~!^=::
KeyWait !
KeyWait ^
KeyWait =
IfWinActive, World of Warcraft
{
ControlSend,, ^=, ahk_id %wowid2%
Return
}
~!+1::
KeyWait !
KeyWait +
KeyWait 1
IfWinActive, World of Warcraft
{
ControlSend,, +1, ahk_id %wowid2%
Return
}
~!+2::
KeyWait !
KeyWait +
KeyWait 2
IfWinActive, World of Warcraft
{
ControlSend,, +2, ahk_id %wowid2%
Return
}
~!+3::
KeyWait !
KeyWait +
KeyWait 3
IfWinActive, World of Warcraft
{
ControlSend,, +3, ahk_id %wowid2%
Return
}
~!+4::
KeyWait !
KeyWait +
KeyWait 4
IfWinActive, World of Warcraft
{
ControlSend,, +4, ahk_id %wowid2%
Return
}
~!+5::
KeyWait !
KeyWait +
KeyWait 5
IfWinActive, World of Warcraft
{
ControlSend,, +5, ahk_id %wowid2%
Return
}
~!+6::
KeyWait !
KeyWait +
KeyWait 6
IfWinActive, World of Warcraft
{
ControlSend,, +6, ahk_id %wowid2%
Return
}
~!+7::
KeyWait !
KeyWait +
KeyWait 7
IfWinActive, World of Warcraft
{
ControlSend,, +7, ahk_id %wowid2%
Return
}
~!+8::
KeyWait !
KeyWait +
KeyWait 8
IfWinActive, World of Warcraft
{
ControlSend,, +8, ahk_id %wowid2%
Return
}
~!+9::
KeyWait !
KeyWait +
KeyWait 9
IfWinActive, World of Warcraft
{
ControlSend,, +9, ahk_id %wowid2%
Return
}
~!+0::
KeyWait !
KeyWait +
KeyWait 0
IfWinActive, World of Warcraft
{
ControlSend,, +0, ahk_id %wowid2%
Return
}
~!+-::
KeyWait !
KeyWait +
KeyWait -
IfWinActive, World of Warcraft
{
ControlSend,, +-, ahk_id %wowid2%
Return
}
~!+=::
KeyWait !
KeyWait +
KeyWait =
IfWinActive, World of Warcraft
{
ControlSend,, +=, ahk_id %wowid2%
Return
}
~!Space::
KeyWait !
KeyWait Space
IfWinActive, World of Warcraft
{
ControlSend,, {Space}, ahk_id %wowid1%
ControlSend,, {Space}, ahk_id %wowid2%
Return
}
~Up::
KeyWait Up
IfWinActive, World of Warcraft
{
ControlSend,, {Up}, ahk_id %wowid1%
ControlSend,, {Up}, ahk_id %wowid2%
Return
}
~Down::
KeyWait Down
IfWinActive, World of Warcraft
{
ControlSend,, {Down}, ahk_id %wowid1%
ControlSend,, {Down}, ahk_id %wowid2%
Return
}
~Left::
KeyWait Left
IfWinActive, World of Warcraft
{
ControlSend,, {Left}, ahk_id %wowid1%
ControlSend,, {Left}, ahk_id %wowid2%
Return
}
~Right::
KeyWait Right
IfWinActive, World of Warcraft
{
ControlSend,, {Right}, ahk_id %wowid1%
ControlSend,, {Right}, ahk_id %wowid2%
Return
}
Please note this is my first attempt with AHK, and no one else I know is doing something like this. And yes, the duplicated arrow and space keys is intentional, those are the only ones I want going to both (for the time being).
Thanks in advance for any help.