PDA

View Full Version : My first (Autohotkey + Vista voice command) dual box



Team_Supa
09-05-2007, 03:37 PM
Well my setup runs from just 1 pc , my laptop actually.
the code below is the one i use in autohotkey to dual box, i also put several macros into the game which you will find later in this document, so enjoy and i hope this can be of use.

Voice command
-Run the windows voice recognition program that is inbuilt in vista (No extra config is required maybe you will have to sit through the boring tutorial so it can attune to your voice)
-after you have it all set, then make sure the speech recognition program is open and that it is NOT sleeping
-Once in game you can use the following voice commands to interface with both characters via autohotkey and your standard hotbars

SAY
press 1
press shift 1

and so on (remember to say PRESS before a hotkey number and it works perfect)



Macros
Follow macro (for second follower character) bind your macro to a hotkey on your bars, for example in my one i use shift+4 so manually key bind shift + 4 to your hotbar slot that has the macro for follow in.
[code:1]/follow [name]
[/code:1]

Macro for follower account for every spell

My script supports all of the standard keybinds, but the trick is on your second follower account is the do this with every spell, if you are making the same of 2x classes like i consistently do, place the macros with the spell in the same place as your main character.
[code:1]
/assist [Main character]
/cast [whatever spell][/code:1]

The autohotkey script i have below supports the following hotkey clones to 2x wow clients.
Shift & 1:
Shift & 2:
Shift & 3:
Shift & 4:
Space
1
2
3
4
5
6
7
8
9
0
-
`




Autohotkey wow script i use
[code:1]WinGet, wowid, List, World of Warcraft

; *** Begin Action Bar sequence ***

~Shift & 1::
IfWinActive, World of Warcraft
{
ControlSend,,{shift down}{1 down}{1 up}{shift up}, ahk_id %wowid1%
ControlSend,,{shift down}{1 down}{1 up}{shift up}, ahk_id %wowid2%
return
}

~Shift & 2::
IfWinActive, World of Warcraft
{
ControlSend,,{shift down}{2 down}{2 up}{shift up}, ahk_id %wowid1%
ControlSend,,{shift down}{2 down}{2 up}{shift up}, ahk_id %wowid2%
return
}

~Shift & 3::
IfWinActive, World of Warcraft
{
ControlSend,,{shift down}{3 down}{3 up}{shift up}, ahk_id %wowid1%
ControlSend,,{shift down}{3 down}{3 up}{shift up}, ahk_id %wowid2%
return
}

~Shift & 4::
IfWinActive, World of Warcraft
{
ControlSend,,{shift down}{4 down}{4 up}{shift up}, ahk_id %wowid1%
ControlSend,,{shift down}{4 down}{4 up}{shift up}, ahk_id %wowid2%
return
}

~Space::
IfWinActive, World of Warcraft
{
ControlSend,,{space down}{space up}, ahk_id %wowid2%
return
}

~1::
IfWinActive, World of Warcraft
{
ControlSend,,{1 down}{1 up}, ahk_id %wowid1%
ControlSend,,{1 down}{1 up}, ahk_id %wowid2%
return
}

~2::
IfWinActive, World of Warcraft
{
ControlSend,,{2 down}{2 up}, ahk_id %wowid1%
ControlSend,,{2 down}{2 up}, ahk_id %wowid2%
return
}

~3::
IfWinActive, World of Warcraft
{
ControlSend,,{3 down}{3 up}, ahk_id %wowid1%
ControlSend,,{3 down}{3 up}, ahk_id %wowid2%
return
}

~4::
IfWinActive, World of Warcraft
{
ControlSend,,{4 down}{4 up}, ahk_id %wowid1%
ControlSend,,{4 down}{4 up}, ahk_id %wowid2%
return
}

~5::
IfWinActive, World of Warcraft
{
ControlSend,,{5 down}{5 up}, ahk_id %wowid1%
ControlSend,,{5 down}{5 up}, ahk_id %wowid2%
return
}

~6::
IfWinActive, World of Warcraft
{
ControlSend,,{6 down}{6 up}, ahk_id %wowid1%
ControlSend,,{6 down}{6 up}, ahk_id %wowid2%
return
}

~7::
IfWinActive, World of Warcraft
{
ControlSend,,{7 down}{7 up}, ahk_id %wowid1%
ControlSend,,{7 down}{7 up}, ahk_id %wowid2%
return
}

~8::
IfWinActive, World of Warcraft
{
ControlSend,,{8 down}{8 up}, ahk_id %wowid1%
ControlSend,,{8 down}{8 up}, ahk_id %wowid2%
return
}

~9::
IfWinActive, World of Warcraft
{
ControlSend,,{9 down}{9 up}, ahk_id %wowid1%
ControlSend,,{9 down}{9 up}, ahk_id %wowid2%
return
}

~`::
IfWinActive, World of Warcraft
{
ControlSend,,{` down}{` up}, ahk_id %wowid1%
ControlSend,,{` down}{` up}, ahk_id %wowid2%
return
}

~0::
IfWinActive, World of Warcraft
{
ControlSend,,{0 down}{0 up}, ahk_id %wowid1%
ControlSend,,{0 down}{0 up}, ahk_id %wowid2%
return
}

~-::
IfWinActive, World of Warcraft
{
ControlSend,,{- down}{- up}, ahk_id %wowid1%
ControlSend,,{- down}{- up}, ahk_id %wowid2%
return
} [/code:1]

illumin8
09-10-2007, 04:16 PM
Just curious, wouldn't saying "Press Shift-1" be a lot slower than just say, pressing shift-F1?

I would never use voice command in a game that requires reaction speed because it definitely slows you down.