I made this script, it works fine:
Code: Select all
; CONFIGS
Delay := 50 ;delay to dash
Coordinates_SQM_North := [956, 254]
Coordinates_SQM_South := [958, 502]
Coordinates_SQM_West := [831, 378]
Coordinates_SQM_East := [1080, 378]
; Global ================================================================================
#KeyHistory 0
SetMouseDelay, -1
SetKeyDelay, -1
CoordMode, Mouse, Screen
SendMode, Input ; Recommended for new scripts due to its superior speed and reliability
#SingleInstance, Force ; Allow only one running instance of script
#Persistent ; Keep script permanently running until terminated
#If, GetKeyState("CapsLock", "P")
~w::
Click, % Coordinates_SQM_North[1] " " Coordinates_SQM_North[2] " Right"
Sleep % Delay
RETURN
~s::
Click, % Coordinates_SQM_South[1] " " Coordinates_SQM_South[2] " Right"
Sleep % Delay
RETURN
~a::
Click, % Coordinates_SQM_West[1] " " Coordinates_SQM_West[2] " Right"
Sleep % Delay
RETURN
~d::
Click, % Coordinates_SQM_East[1] " " Coordinates_SQM_East[2] " Right"
Sleep % Delay
RETURN