Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
trigger for left hold
#1
please tell me how to make a trigger for starting something when left mouse button has been hold down longer than 2 seconds and stop watching after 4 seconds hold.
pi
#2
Function mouse_left_down
Trigger #L 0x9     Help - how to add the trigger to the macro
Code:
Copy      Help
if(getopt(nthreads)>1) shutdown -6 0 "mouse_left_down"; ret

POINT p0 p
xm p0
rep 20
,0.1
,ifk- (1)
,,out "up" ;;debug
,,ret
,xm p
,if(_hypot(p.x-p0.x p.y-p0.y)>2)
,,out "drag" ;;debug
,,ret

out "start something"

without "stop watching after 4 seconds hold"


Forum Jump:


Users browsing this thread: 1 Guest(s)