Log in

View Full Version : Need some help with maximizer and autohotkey



williami91
10-31-2008, 01:04 PM
Dual-boxing looks exiting, so I want to give it a try with 2xaccount
I'm using autohotkey, and I'm missing the maximizer options keyclone has.
Is there any free program I can use ?

This is my script copy from Sorn, and random I wrote my self.
Do this looks good?
1-0, Shift 1-5 and etc

;
; Wow Dual Account Helper Version: .02a
; Language: English
; Platform: AutoHotkey Script
; Author: Sorn
; NOTES: Written for the Dual-Boxing.com forums, Send PM or post in the Autohotkey thread for assistance or suggestions
;
; Script Function:
; Allows you to play two copies of WOW at the same time
;

;Tell user what is about to happen
SplashTextOn, 325, , Preparing to find your Main and Clone windows of WoW.
Sleep, 2000
SplasHtextoff

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

; Minimize All WOW windows
WinMinimize, ahk_id %wowid1%
WinMinimize, ahk_id %wowid2%

;Determine Main and Clone Windows
WinActivate, ahk_id %wowid1%

MsgBox, 4,, Is this your WOW Main window? (press Yes or No)
IfMsgBox Yes
idMain = %wowid1%
else
idMain = %wowid2%

If idMain = %wowid1%
{
idClone = %wowid2%
} else {
idClone = %wowid1%
}

;Activate All WOW windows
WinActivate, ahk_id %idMain%
WinActivate, ahk_id %idClone%


;*** Special Functions ***

#IfWinActive, World of Warcraft
; *** Makes wow2 follow Wow1 Player ***
~E::
ControlSend,,{E down}{E up}, ahk_id %idClone%
return

#IfWinActive, World of Warcraft
; *** Makes Wow2 accept grp,Q,Trade ***
~+::
Controlsend,,{+ down}{+ Up}, ahk_id %idClone%
return


; *******************
; *** Hotbars 1-0 ***
; *******************
#IfWinActive, World of Warcraft
~1::
ControlSend,,{1 down}{1 up}, ahk_id %idMain%
ControlSend,,{1 down}{1 up}, ahk_id %idClone%
return

#IfWinActive, World of Warcraft
~2::
ControlSend,,{2 down}{2 up}, ahk_id %idMain%
ControlSend,,{2 down}{2 up}, ahk_id %idClone%
return

#IfWinActive, World of Warcraft
~3::
ControlSend,,{3 down}{3 up}, ahk_id %idMain%
ControlSend,,{3 down}{3 up}, ahk_id %idClone%
return

#IfWinActive, World of Warcraft
~4::
ControlSend,,{4 down}{4 up}, ahk_id %idMain%
ControlSend,,{4 down}{4 up}, ahk_id %idClone%
return

#IfWinActive, World of Warcraft
~5::
ControlSend,,{5 down}{5 up}, ahk_id %idMain%
ControlSend,,{5 down}{5 up}, ahk_id %idClone%
return


; ***************************
; *** Hotbars Shift ^ 1-0 ***
; ***************************
#IfWinActive, World of Warcraft
~+1::
ControlSend,,{Shift down}{1 down}{1 up}{Shift up}, ahk_id %idMain%
ControlSend,,{Shift down}{1 down}{1 up}{Shift up}, ahk_id %idClone%
return

#IfWinActive, World of Warcraft
~+2::
ControlSend,,{Shift down}{2 down}{2 up}{Shift up}, ahk_id %idMain%
ControlSend,,{Shift down}{2 down}{2 up}{Shift up}, ahk_id %idClone%
return

#IfWinActive, World of Warcraft
~+3::
ControlSend,,{Shift down}{3 down}{3 up}{Shift up}, ahk_id %idMain%
ControlSend,,{Shift down}{3 down}{3 up}{Shift up}, ahk_id %idClone%
return

#IfWinActive, World of Warcraft
~+4::
ControlSend,,{Shift down}{4 down}{4 up}{Shift up}, ahk_id %idMain%
ControlSend,,{Shift down}{4 down}{4 up}{Shift up}, ahk_id %idClone%
return

#IfWinActive, World of Warcraft
~+5::
ControlSend,,{Shift down}{5 down}{5 up}{Shift up}, ahk_id %idMain%
ControlSend,,{Shift down}{5 down}{5 up}{Shift up}, ahk_id %idClone%
return



; **************************
; *** Hotbars Cntl ^ 1-0 ***
; **************************
#IfWinActive, World of Warcraft
~^1::
ControlSend,,{LAlt down}{1 down}{1 up}{LAlt up}, ahk_id %idClone%
return

#IfWinActive, World of Warcraft
~^2::
ControlSend,,{LAlt down}{2 down}{2 up}{LAlt up}, ahk_id %idClone%
return

#IfWinActive, World of Warcraft
~^3::
ControlSend,,{LAlt down}{3 down}{3 up}{LAlt up}, ahk_id %idClone%
return

#IfWinActive, World of Warcraft
~^4::
ControlSend,,{LAlt down}{4 down}{4 up}{LAlt up}, ahk_id %idClone%
return

#IfWinActive, World of Warcraft
~^5::
ControlSend,,{LAlt down}{5 down}{5 up}{LAlt up}, ahk_id %idClone%
return





;
; Movement - Wow1 and Wow2
;
~Right::
KeyWait Right, D
IfWinActive, World of Warcraft
{
ControlSend, , {Right Down}, ahk_id %idClone%
}
Return

~Right Up::
KeyWait Right, D
IfWinActive, World of Warcraft
{
ControlSend, , {Right Up}, ahk_id %idClone%
}
Return



~Left::
KeyWait Left, D
IfWinActive, World of Warcraft
{
ControlSend, , {Left Down}, ahk_id %idClone%
}
Return



~Left Up::
KeyWait Left, D
IfWinActive, World of Warcraft
{
ControlSend, , {Left Up}, ahk_id %idClone%
}
Return



~Down::
IfWinActive, World of Warcraft
{
ControlSend, , {Down Down}, ahk_id %idClone%
}
Return



~Down Up::
IfWinActive, World of Warcraft
{
ControlSend, , {Down Up}, ahk_id %idClone%
}
Return



~Up::
IfWinActive, World of Warcraft
{
ControlSend, , {Up Down}, ahk_id %idClone%
}
Return

~Up Up::
IfWinActive, World of Warcraft
{
ControlSend, , {Up Up}, ahk_id %idClone%
}
Return

zanthor
10-31-2008, 01:19 PM
I'm using autohotkey, and I'm missing the maximizer options keyclone has.AHK can do the maximizer stuff as well.

williami91
10-31-2008, 01:46 PM
Nice, can you show where I can learn to AHk "maximizer"?