PDA

View Full Version : Having trouble with autohot key



Kallisa
07-09-2007, 01:47 AM
Been following this dual Boxing idea and reading posts about it for a while now and I decided to finally give it a go. I am quite new when it comes to this sort of thing so If I am making a obvious mistake please remember that :P

My current problem is I am stuck when it comes to keying multiple tasks.

here is my code as it is atm.



~e::
KeyWait e
IfWinActive, World of Warcraft
{
ControlSend,, e, ahk_id %wowid1%
ControlSend,, e, ahk_id %wowid2%
Return
}
~n::
KeyWait n
IfWinActive, World of Warcraft
{
ControlSend,, n, ahk_id %wowid1%
ControlSend,, n, ahk_id %wowid2%
Return
}
~h::
KeyWait h
IfWinActive, World of Warcraft
{
ControlSend,, h, ahk_id %wowid1%
ControlSend,, h, ahk_id %wowid2%
Return
}
~t::
KeyWait t
IfWinActive, World of Warcraft
{
ControlSend,, t, ahk_id %wowid1%
ControlSend,, t, ahk_id %wowid2%
Return
}
~x::
KeyWait x
IfWinActive, World of Warcraft
{
ControlSend,, x, ahk_id %wowid1%
ControlSend,, x, ahk_id %wowid2%
Return
}

~4::
KeyWait 4
IfWinActive, World of Warcraft
{
ControlSend,, 4, ahk_id %wowid1%
ControlSend,, 4, ahk_id %wowid2%
Return
}

~6::
KeyWait 6
IfWinActive, World of Warcraft
{
ControlSend,, 6, ahk_id %wowid1%
ControlSend,, 6, ahk_id %wowid2%
Return
}
~r::
KeyWait r
IfWinActive, World of Warcraft
{
ControlSend,, r, ahk_id %wowid1%
ControlSend,, r, ahk_id %wowid2%
Return
}
~d::
KeyWait d
IfWinActive, World of Warcraft
{
ControlSend,, d, ahk_id %wowid1%
ControlSend,, d, ahk_id %wowid2%
Return
}
~g::
KeyWait g
IfWinActive, World of Warcraft
{
ControlSend,, g, ahk_id %wowid1%
ControlSend,, g, ahk_id %wowid2%
Return
}
~f::
KeyWait f
IfWinActive, World of Warcraft
{
ControlSend,, f, ahk_id %wowid1%
ControlSend,, f, ahk_id %wowid2%
Return
}
~5::
KeyWait 5
IfWinActive, World of Warcraft
{
ControlSend,, 5, ahk_id %wowid1%
ControlSend,, 5, ahk_id %wowid2%
Return
}

with R,D,G,F macroed to both my chars as moving forward back and left and right strafe.

Now E which is an attack shadowbolt for my lock and mindflay for my priest both are which running on no cast sequence macros works fine, however none of the other commands work, I for the life of me cannot figure out why :cry:


also I use the numpad key as a secondary way of moving one of my chars because it seems sometimes I cant keep them together, wether it be lag or pc lag I am not sure is there a better way I can get around this?

I'll also add I am running both wow's off the one PC in window'ed mode




Thanks in advance for any advice! :D


**EDIT**

So after some more fiddling around I managed to have everythign working except for the movement keys,


They are defiently getting sent through however If I open /chat and hit say r I get double r popping up, Should that be the case?

Boss
07-09-2007, 09:32 AM
I have tried this also with no luck for some reason you do get a double tap every so often. Like if you have the shoot button on you hot bar and press it the main window double taps and the second one presses once which causes the first to shot once then stop. And it you try to send movement keys the same thing kind of happens. Im not very good at learning scripts and programing so I just gave up and went hardware way.

Kallisa
07-09-2007, 10:03 AM
Hrm

This is really starting to annoy me.


I have aboslutly everything working fine bar the movement,

and now for some reason I cant get the numpad keys to work for moving my second char @ the same time as moving with r,f,d,g
>.<


anyone else have any other ideas?

overkil2
07-09-2007, 02:04 PM
I didn't like moving the characters together so I just /follow the main character and am ok with it so far.

I just make sure that I am not broadcasting my movement keys.

This also helps since the 2nd character is tagetting the first, they attack the same mobs, so it's all good so far.

chase
07-10-2007, 04:00 AM
i just started using AHK last night as my other computer is down stairs so makes it awkward using other software, and i also can not get the movement keys to send to wow, its really annoying I think it is double pressing the keys for some reason,

it is quite annoying bubt for now i have just made a macro that sets the party member to auto follow and assist the main at all times

which is working fine at the moment but i wouldnt mind seeing examples of codes that some of you guys use maybe if you pm'd me your codes so i could review them and possibly alter for my needs?

Kallisa
07-10-2007, 04:45 AM
Ok so with some help from a friend I now have the movement keys broadcasting to both windows.


here is the code I use for movement


[code:1]~r::ControlSend, , {r Down}, ahk_id %wowid2%
~r Up::ControlSend, , {r Up}, ahk_id %wowid2%[/code:1]


It works excatly how I wanted it to it only broadcasts when your tabbed into your mains window, so in a boss fight(prince for example I am able to quickly tab across and fix up the location of the char If I ahve to)

of course you can just sub in any key for movement but "r" is what I use to move forward

Looking forward to trying this out on more movement intensive fights such as Lurker or VR will be interesting.


Was wondering if you could post the macros you use, might be something in there I like atm I am only using a /assist macro.


The only thing I dont like is I have to tab into the other window tos croll my camera around, anyone know off a way I could possibly fix that?