03-16-2013, 04:08 PM
I would use a filter function.
Function FFT_Mouse_ClickCenter
Trigger #SR //FFT_Mouse_ClickCenter
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.
Function FFT_Mouse_ClickCenter
Trigger #SR //FFT_Mouse_ClickCenter

;/
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.
