Log in

View Full Version : Ultimate multiboxing script for World of Warcraft



Shaone
05-23-2008, 06:36 PM
I just started dual boxing a few days ago and I've been working on this script with a few of the guys in the AHK IRC (thanks for all the help). I've fine tuned it to do everything I need to so far, and all I have left to do is in-game macros and bindings.

#Persistent
#IfWinActive, World of Warcraft
SetTitleMatchMode, 3
SetKeyDelay, -1
Thread, interrupt, 0
SetBatchLines, -1

WoW = World of Warcraft
WinGet, WinID, List, %WoW%
LastFollow := A_TickCount - 1000

; SUSPEND KEYS
; These keys will suspend the use of all other hotkeys in this script
~Enter::
~/::
~r::
Suspend, Toggle
Return

; HOTBAR KEYS, KEYBINDINGS, ETC.
; These keys are sent as-is to every WoW window
~1::
~2::
~3::
~4::
~5::
~6::
~7::
~8::
~9::
~0::
~-::
~=::
~x::
~z::
~Space::
StringTrimLeft, ThisKey, A_ThisHotKey, 1
WinGet, ThisID,, A
Loop, %WinID%
If (ThisID != WinID%A_Index%)
ControlSend,, {%ThisKey%}, % "ahk_id" WinID%A_Index%
Return

; MOVEMENT KEYS
; Any of these keys will send Shift+F (binding for follow macro) to all inactive WoW windows
~q::
~w::
~e::
~a::
~s::
~d::
If (A_TickCount - LastFollow > 1000)
WinGet, ThisID,, A
Loop, %WinID%
If (ThisID != WinID%A_Index%)
{
ControlSend,, +f, % "ahk_id" WinID%A_Index%
LastFollow := A_TickCount
}
Return
It's still a work in progress but it seems to do a more efficient job than the script found at WoWWiki. Let me know if you have any suggestions, changes, or additions. Enjoy!

Shaone
05-23-2008, 08:42 PM
I changed my name to Shaone, by the way...not sure why it wasn't changed in this thread.

zomkkii
06-09-2008, 12:14 PM
nice script, thanks for it but I got one question,
how do I get the q w e a s d follow work? Atleast for me it does not work, I binded it to Shift+F like you told me to, but it doesn't do it?

wowphreak
06-10-2008, 02:14 AM
Hey thats a whole lot cleaner then the script I've been using. :P

So if I get this right every time yeh move yeh sending all the others to autofollow?

LastFollow TickCount that to slow down the key spam?

Golle
06-29-2008, 04:55 PM
Yes, I'm not much of a programmer so an explanation of what the script does would be wonderful.

Metalocalypse
07-11-2008, 11:20 AM
How would I go ahead and incorporate the shift/ctrl/alt buttons in this script?
As in, I want combinations of those 3 buttons with the 1 to = buttons.

Do I just add

~+::
~^::
~!::

at line 36? or would I have to actually put all the combinations I'd want there like:

~+1::
~+2::
etc..
until
~!=::

Shaone
07-11-2008, 01:58 PM
Metalocalypse, I'll be adding those in the next release. Keep an eye on Dual Boxed ('http://dualboxed.com/') for details.

Metalocalypse
07-11-2008, 02:39 PM
Thnx :D