Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Right mouse down and release problem
#2
I would use a filter function.

Function FFT_Mouse_ClickCenter
Trigger #SR //FFT_Mouse_ClickCenter     Help - how to add the trigger to the macro
Code:
Copy      Help
;/
function# iid FILTER&f

spe 10
POINT p; xm p
rig+ ScreenWidth/2 ScreenHeight/2
mou p.x p.y
rig-

ret -1

;ret iid    ;; run the macro.
;ret macro    ;; run other macro. Here 'macro' is its id or name.
;ret 0        ;; don't run any macros.
;ret -1        ;; don't run any macros but eat the key. Eg if the filter function started a macro using mac.
;ret -2        ;; don't run this macro. Other macros with the same trigger can run.

Here trigger is Shift+right click, eat, when released.
The function is called on button down. It right-drags from screen center to current position.
In function properties check that it is a filter function.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)