Log in

View Full Version : only clone can use the bars



dixo
02-12-2009, 02:47 PM
i am using this code:


;Grab unique window ID's
WinGet, WowWinId, List, World of Warcraft

ClonesPush(strKeys)
{
global WowWinId1
global WowWinId2
IfWinNotActive, ahk_id %WowWinId1%
ControlSend, , %strKeys%, ahk_id %WowWinId1%
IfWinNotActive, ahk_id %WowWinId2%
ControlSend, , %strKeys%, ahk_id %WowWinId2%
}

; *** Jump ***
~Space::ClonesPush("{Space down}{Space up}")

; *** Hotbars 1 Follow***
1::ClonesPush("{= down}{= up}{1 down}{1 up}")

; *** Hotbars 2 Attack Seq***
2::ClonesPush("{= down}{= up}{2 down}{2 up}")

; *** Hotbars 3 Drop Totems***
3::ClonesPush("{= down}{= up}{3 down}{3 up}")

; *** Hotbars 4 Heal Gnuu***
4::ClonesPush("{= down}{= up}{4 down}{4 up}")

; *** Hotbars 5 Heal Gnuu 2***
5::ClonesPush("{= down}{= up}{5 down}{5 up}")

; *** Hotbars 6 ***
6::ClonesPush("{= down}{= up}{6 down}{6 up}")

; *** Hotbars 7 ***
7::ClonesPush("{= down}{= up}{7 down}{7 up}")

; *** Hotbars 8 ***
8::ClonesPush("{= down}{= up}{8 down}{8 up}")

; *** Hotbars 9 ***
9::ClonesPush("{= down}{= up}{9 down}{9 up}")

; *** move other dudes ***
Up::ClonesPush("{Up down}")
Up Up::ClonesPush("{Up up}")
Down::ClonesPush("{Down down}")
Down Up::ClonesPush("{Down up}")
Left::ClonesPush("{Left down}")
Left Up::ClonesPush("{Left up}")
Right::ClonesPush("{Right down}")
Right Up::ClonesPush("{Right up}")


when i press on an action bar key (1, 2, 3, 4, 5, 6, 7) it only do the spells on my clone and not on me :-/
Is their anyway to fix this?

dixo
02-12-2009, 02:51 PM
just forget it, i only needed one ~ to fix it ^_^

wowphreak
02-12-2009, 09:45 PM
if yeh change yer clonespush() to



ClonesPush(strkey)
{
global WowWinId
Loop % WowWinId%
{
tmp:= WowWinId%A_Index%
IfWinNotActive, ahk_id %tmp%
ControlSend, ,%strkey%, ahk_id %tmp%
}
}


yeh wont need to change it if yeh add more accounts