Akko
12-09-2007, 06:27 AM
I am trying to dualbox 2 characters 1 screen 1 computer.
However i am running into some trouble.
[code:1]
;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%
WinGet, wowid, List, World of Warcraft
~w::
KeyWait w
IfWinActive, World of Warcraft
{
ControlSend,, w, ahk_id %idMain%
ControlSend,, w, ahk_id %idClone%
Return
}
~s::
KeyWait s
IfWinActive, World of Warcraft
{
ControlSend,, s, ahk_id %idMain%
ControlSend,, s, ahk_id %idClone%
Return
}
~a::
KeyWait a
IfWinActive, World of Warcraft
{
ControlSend,, a, ahk_id %idMain%
ControlSend,, a, ahk_id %idClone%
Return
}
[/code:1]
This is a snippet of the code i am using.
However i have run into a few problems
1) Autofollow does not work. My character goes haywire, After looking around abit this is a ongoing issue.
2) W,S,A,D movement keys do not work. My 2nd character will not respond to these key movements. However when i press (space) both characters will jump. I've included the code for W,S,A,D and the code is written in the same format for (space)
Is this a built-in anti-hacking feature?
<I will edit this as i do further testing>
However i am running into some trouble.
[code:1]
;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%
WinGet, wowid, List, World of Warcraft
~w::
KeyWait w
IfWinActive, World of Warcraft
{
ControlSend,, w, ahk_id %idMain%
ControlSend,, w, ahk_id %idClone%
Return
}
~s::
KeyWait s
IfWinActive, World of Warcraft
{
ControlSend,, s, ahk_id %idMain%
ControlSend,, s, ahk_id %idClone%
Return
}
~a::
KeyWait a
IfWinActive, World of Warcraft
{
ControlSend,, a, ahk_id %idMain%
ControlSend,, a, ahk_id %idClone%
Return
}
[/code:1]
This is a snippet of the code i am using.
However i have run into a few problems
1) Autofollow does not work. My character goes haywire, After looking around abit this is a ongoing issue.
2) W,S,A,D movement keys do not work. My 2nd character will not respond to these key movements. However when i press (space) both characters will jump. I've included the code for W,S,A,D and the code is written in the same format for (space)
Is this a built-in anti-hacking feature?
<I will edit this as i do further testing>