I am new to AutoHotKey.
Last couple of days, I have been looking for one script that suits my need but couldn't find anywhere.
My problem is, I want to Drag and Hold Left Mouse button and keep holding it as long as a Key is being pressed.
And when that Key is released mouse pointer would go back to its previous position.
It would be much appreciated if someone could help me on this.
Thanks in advance.
Have a nice day!
I tried to do with the following codes but no success.
Code: Select all
Numpad1::
Send {LButton down}
MouseClickDrag, Left, 1476, 931, 1467, 631, 40
Send {LButton up}
return