I would like to drag my mouse cursor from Right of Left when I press a key and keep holding it until I let go the key.
This is what I tried but failed.
Code: Select all
\::
x1 := 1560, x2 := 1660, y := 656
Click, %x1%, %y%, down
Sleep, 1
MouseMove, x1, x2, 10
KeyWait, %A_ThisHotkey%
Click, up
MouseMove, x1, y
Return
Please help me on this.
Thanks in advance!
Code: Select all
/::
x := 1664, y1 := 673, y2 := 723
Click, %x%, %y1%, down
Sleep, 1
MouseMove, x, y2, 10
KeyWait, %A_ThisHotkey%
Click, up
MouseMove, x, y1
Return