Here's the start of my AHK script for 5-boxing (and it works if I only load 2-4 instances of WoW too).. the rest of the keys continue like the first two listed, just replace the obvious key in the 3 places of each keypress command.
Code:
killbroadcast = 0
WinGet, wowid, List, World of Warcraft
WinActivate, ahk_id %wowid1%
WinActivate, ahk_id %wowid2%
WinActivate, ahk_id %wowid3%
WinActivate, ahk_id %wowid4%
WinActivate, ahk_id %wowid5%
~Pause::
KeyWait, Pause, D
If(%killbroadcast% = 0)
{
killbroadcast = 1
}
else
{
killbroadcast = 0
WinGet, wowid, List, World of Warcraft
}
Return
~1::
KeyWait 1, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, 1, ahk_id %target_window%
}
}
}
}
Return
~2::
KeyWait 2, D
WinGet, Active_Window, ID, A
IfWinActive, World of Warcraft
{
If(%killbroadcast% = 0)
{
Loop, %wowid%
{
target_window := wowid%A_index%
If (Active_Window <> target_window)
{
ControlSend,, 2, ahk_id %target_window%
}
}
}
}
Return
All keys are as above, except F1 (my formation key to spread out). The longer I hold the key, the further apart they spread. This key uses NO sleep/wait type commands, so it can't be classified as automation at all.
Code:
~F1::
IfWinActive, World of Warcraft
{
ControlSend, , {F1 Down}, ahk_id %wowid1%
ControlSend, , {F1 Down}, ahk_id %wowid2%
ControlSend, , {F1 Down}, ahk_id %wowid3%
ControlSend, , {F1 Down}, ahk_id %wowid4%
ControlSend, , {F1 Down}, ahk_id %wowid5%
}
Return
~F1 Up::
IfWinActive, World of Warcraft
{
ControlSend, , {F1 Up}, ahk_id %wowid1%
ControlSend, , {F1 Up}, ahk_id %wowid2%
ControlSend, , {F1 Up}, ahk_id %wowid3%
ControlSend, , {F1 Up}, ahk_id %wowid4%
ControlSend, , {F1 Up}, ahk_id %wowid5%
}
Return
Connect With Us