I also did one but think the above is better..
Code:
SetTimer, watchMouseClick, 1
watchMouseClick:
MouseGetPos, mPosX,mPosY
count++
GetKeyState, mState, LButton, D
if mState = D
{
; ToolTip, %count%
if count > 100 ; Increase to 500 for .5 sec hold.
{
SetTimer, watchMouseClick, Off
Gosub, moveMouseDown
}
}
Else
count =
Return
moveMouseDown:
Loop,
{
mPosY++
MouseMove, %mPosX%, %mPosY%, 5,
GetKeyState, mState, LButton, D
if mState = U
Break
}
SetTimer, watchMouseClick, 1 ; To exit after 1st click and move delete this line!
Return
esc::Exitapp
Press escape to exit or delete to bottom SetTimer.
I could not figure out how not to select everything while the mouse is moving. Probably something simple.
anyway hth