I would like the Script to Move the mouse down when pressing the J key
Code: Select all
#NoEnv ;
; #Warn ;
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
j::
Loop 10 {
DllCall("mouse_event", "UInt", 0x01, "UInt", 2600, "UInt", 0) ; move 1 unit right
Sleep 5
}
return