Ah ok, thank you. Now I understand the logic behind what needs to be done.

The problem now is getting the code to work ><

I put this code from another post on the forum into AHK:

WinGet, wowid, List, World of Warcraft

~2::
KeyWait 2
IfWinActive, World of Warcraft
{
ControlSend,, 2, ahk_id %wowid1%
ControlSend,, 2, ahk_id %wowid2%
Return
}


Apparently it's supposed to send keypress 2 to all instances of WoW?

I then opened two copies of WoW (both loaded from the same WoW folder), logged into the two accounts and tried making the mage cast a spell through my other characters window and nothing happened .

Can anyone see what I am doing wrong here?



PS: I have WoW in "Windowed - Maximized" mode.