Help with 180* turn script
I've been trying to make a 180 turn script for a long time but they all didn't work very well... Either it starts moving up or down and is slow, or it makes random moves.
I want to make it so when pause is held it looks behind and when key released it looks at the previous position
Any help?
Code:
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#MaxThreadsPerHotkey 2
F9::pause, toggle
CoordMode Mouse, Screen
MouseGetPos, xpos, ypos
Pause::
DllCall("SetCursorPos", int, I DONT KNOW :(, int, ypos)
Pause Up::
DllCall("SetCursorPos", int, xpos, int, ypos)