Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] mouse trigger with right-edge + right click
#1
Hello,

I want to activate a macro when my mouse is on the right-dge of the screen + right click

Under trigger settings, I used mouse > click > right click + hit test = right

#Rh11

eat and when released are checked on. I tried changing these settings but it still fails.

Thanks for reading.
#2
The hittest option is for window areas, not screen.
Use a filter-function.

Macro Macro2436
Trigger #R //FF_MouseScreenRightEdge     Help - how to add the trigger to the macro
Code:
Copy      Help
out 1

Function FF_MouseScreenRightEdge
Code:
Copy      Help
;/
;Allows starting macro when mouse pointer is by the right edge of the screen, primary monitor.
;For mouse-click and mouse-wheel triggers.

function# iid FILTER&f

int x=ScreenWidth-1
if(f.x=x) ret iid
;if(f.x=x or f.x=x-1) ret iid
ret -2

In FF_MouseScreenRightEdge Properties check 'filter function'.
#3
You are too smooth 8)

It works like magic.


Forum Jump:


Users browsing this thread: 1 Guest(s)