Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
2 clicks instead of one
#3
Need Two Functions. One Regular with a Trigger and one FilterFunction

Function DoubleClickWhenInRectangle
Trigger #L //FFT_Mouse_Is_In_Rectangle3     Help - how to add the trigger to the macro
Code:
Copy      Help
POINT p; xm(p) ;;get mouse position into p.x and p.y
dou p.x p.y

Function FFT_Mouse_Is_In_Rectangle3
Code:
Copy      Help
;/
;Allows starting macro when mouse pointer is in certain rectangle area in the screen.
;For mouse-click and mouse-wheel triggers.

function# iid FILTER&f

RECT r; SetRect &r 0 0 100 100 ;;change these values (left, top, right, bottom)

if(PtInRect(&r f.x f.y)) ret iid
ret -2


Messages In This Thread
2 clicks instead of one - by ilya1111 - 04-20-2021, 04:40 PM
RE: 2 clicks instead of one - by ilya1111 - 04-21-2021, 11:54 AM
RE: 2 clicks instead of one - by Kevin - 04-24-2021, 07:06 PM
RE: 2 clicks instead of one - by ilya1111 - 05-09-2021, 05:39 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)