Code: Select all
Left::
Right::
If !go
SendEvent, {LButton down}
go := True
MouseMove, A_ThisHotkey = "Left" ? -2:2, 0,, R
SetTimer, Stop380, -400
Return
Stop380:
SendEvent, {LButton up}
go := False
Return
I'm here again and I need some help setting up a Keywait function.
The Upper script works perfectly. But I want to add a similar function that If I press Down Control, It Sends the LButton down then using \, and Insert will move the mouse 12 pixel to left or right, then if I lift the Control up it lifts the LButton up.
Thank you in advance.
Code: Select all
^Left::
^Right::
SendEvent, {LButton down}
Keywait, ^
{
MouseMove, A_ThisHotkey = "^Left" ? -12:12, 0,, R
}
SendEvent, {LButton up}
Return