View Full Version : Formation AHK
Been working with AHK almost non-stop since I got it. It is a good alternative to Keyclone, soon here I will get it;however, does anyone know how to create a formation script for it?
One would think that it is something like:
~End::
ControlSend,,{a down},Sleep 300,{a up} , ahk_id %idMain%
ControlSend,,{q down}, Sleep 300,{q up} , ahk_id %idClone%
ControlSend,,{e down}, Sleep 300,{e up} , ahk_id %idClone2%
return
(yes I know Sleep xx is not legal... but It was an idea, I know that it should work without it as well... but neither work)
Ideas?
Any ideas? Im out of them...
Tasty
07-19-2008, 11:58 AM
~PgDn::ClonesPush("{PgDn down}")
~PgDn Up::ClonesPush("{PgDn up}")
~PgUp::ClonesPush("{PgUp down}")
~PgUp Up::ClonesPush("{PgUp Up}")
Bind forward and back keys to page down so that two characters will move forward and two backwards, then bind strafe left and strafe right to page down so that two chararcters move left and two move right. (Or use any keys you want really)
The result is:
x........x
....X.....
x........x
and yes sleep is bad :)
So how does this work? What is 'ClonesPush' in ahk? You do see how I have my other commands? Does it matter?
~PgDn::ClonesPush("{PgDn down}")
~PgDn Up::ClonesPush("{PgDn up}")
~PgUp::ClonesPush("{PgUp down}")
~PgUp Up::ClonesPush("{PgUp Up}")
This creates an error "Call to nonexistent function". =\ Any more ideas?
Tasty
07-19-2008, 12:46 PM
My AHK is probably set up differently then yours.
WinGet, WowWinId, List, World of Warcraft
ClonesPush(strKeys)
{
global WowWinId1
global WowWinId2
global WowWinId3
global WowWinId4
global WowWinId5
IfWinNotActive, ahk_id %WowWinId1%
ControlSend, , %strKeys%, ahk_id %WowWinId1%
IfWinNotActive, ahk_id %WowWinId2%
ControlSend, , %strKeys%, ahk_id %WowWinId2%
IfWinNotActive, ahk_id %WowWinId3%
ControlSend, , %strKeys%, ahk_id %WowWinId3%
IfWinNotActive, ahk_id %WowWinId4%
ControlSend, , %strKeys%, ahk_id %WowWinId4%
IfWinNotActive, ahk_id %WowWinId5%
ControlSend, , %strKeys%, ahk_id %WowWinId5%
}
thats at the top of my script.
Ok, I will give it a shot.
Still no good... when I hold it down the characters act as if i was pressing my keys really fast.. looks funky... and it doesnt work at all with the sleep command, so thats out (despite that it is not legal =O)
bump for help?
(heading off to bed... but still need that help!! =))
Metalocalypse
07-22-2008, 10:01 AM
#IfWinActive, World of Warcraft
Numpadadd::
ControlSend,,{s down}, ahk_id %wowid1%
ControlSend,,{e down}, ahk_id %wowid2%
ControlSend,,{q down}, ahk_id %wowid3%
KeyWait Numpadadd
ControlSend,,{s up}, ahk_id %wowid1%
ControlSend,,{e up}, ahk_id %wowid2%
ControlSend,,{q up}, ahk_id %wowid3%
return
Of course, this is only for tripleboxing, switch the numpadadd with w/e button you want it to be.
-silencer-
07-22-2008, 10:33 AM
I use commands similar to Metal's above.. I'll post it when I get home from work. Basically, I press F1 to get into 'diamond' formation. Alt 1 moves forward, alt 2 moves backward, alt 3 strafes left, and alt 4 strafes right. This breaks /follow and I retain standard control over my main. The longer I hold F1, the farther apart they spread.. there's no 'sleep/wait' command - it's all based on sensing a 'keypress up' after 'keypress down' events.
-silencer-
07-22-2008, 09:34 PM
Here's my AHK 'formation' when I press F1. F1 is unbound on my main, and bound to Move Forward on alt 1, Strafe Left on alt 2, Strafe Right on alt 3, and Move Backward on alt 4.
~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
vBulletin® v4.2.2, Copyright ©2000-2025, Jelsoft Enterprises Ltd.