Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to stop when the left mouse button is released?
#1
In the following case, the left mouse button down and 'rep' stops.
what if I want to stop when the left mouse button up?

Function Function10
Code:
Copy      Help
rep() wait 1; if RealGetKeyState(VK_LBUTTON); break

;OR

rep() wait 1; out "T" ;if RealGetKeyState(WM_LBUTTONDOWN); break

;OR

rep() wait 1; ifk((1)); break


I tried the following but it did not work.

Function Function10
Code:
Copy      Help
rep() wait 1; out "T" ;if RealGetKeyState(WM_LBUTTONUP); break

Is there any way?
#2
Macro Macro2865
Code:
Copy      Help
rep() wait 0.1; if RealGetKeyState(VK_LBUTTON); break
out "pressed"
;rep() wait 0.1; if !RealGetKeyState(VK_LBUTTON); break
;or
wait 0 ML
out "released"


Forum Jump:


Users browsing this thread: 4 Guest(s)