This version tries to turn off all the directional keys before changing where I aim to fire, but I think the emulator app is still picking up the directional keys. I'm also using the number pad to do the firing, and I'm leaving the shoot button down when i trigger the directional shooting, and using the 5 key to turn off shooting.
Code:
;send Left, then hold shoot and lock
Delay := 100 ;milliseconds
NumPad4::
Hotkey, Left, On
Hotkey, Up, On
Hotkey, Right, On
Hotkey, Down, On
Send {x up}
Sleep %Delay%
Send {Left down}{x down}
Send {Left up}
Hotkey, Left, Off
Hotkey, Up, Off
Hotkey, Right, Off
Hotkey, Down, Off
return
NumPad8::
Hotkey, Left, On
Hotkey, Up, On
Hotkey, Right, On
Hotkey, Down, On
Send {x up}
Sleep %Delay%
Send {Up down}{x down}
Send {UP up}
Hotkey, Left, Off
Hotkey, Up, Off
Hotkey, Right, Off
Hotkey, Down, Off
return
NumPad6::
Hotkey, Left, On
Hotkey, Up, On
Hotkey, Right, On
Hotkey, Down, On
Send {x up}
Sleep %Delay%
Send {Right down}{x down}
Send {Right up}
Hotkey, Left, Off
Hotkey, Up, Off
Hotkey, Right, Off
Hotkey, Down, Off
return
NumPad2::
Hotkey, Left, On
Hotkey, Up, On
Hotkey, Right, On
Hotkey, Down, On
Send {x up}
Sleep %Delay%
Send {Down down}{x down}
Send {Down up}
Hotkey, Left, Off
Hotkey, Up, Off
Hotkey, Right, Off
Hotkey, Down, Off
return
NumPad5::Send {x up}
Left::
right::
Up::
Down::
what am I doing wrong?