Posts: 34
Threads: 14
Joined: Feb 2017
Hi guys.
Please tell me how to make it so that in a certain area of the screen when pressed with one click, 2 clicks occur.
Thank you.
Posts: 34
Threads: 14
Joined: Feb 2017
need two clicks instead of one in a certain area of the screen
Posts: 1,338
Threads: 61
Joined: Jul 2006
Need Two Functions. One Regular with a Trigger and one FilterFunction
Function
DoubleClickWhenInRectangle
Trigger
#L //FFT_Mouse_Is_In_Rectangle3
POINT p; xm(p) ;;get mouse position into p.x and p.y
dou p.x p.y
Function
FFT_Mouse_Is_In_Rectangle3
;/
;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
Posts: 34
Threads: 14
Joined: Feb 2017
05-09-2021, 05:39 PM
(This post was last modified: 05-09-2021, 06:02 PM by ilya1111.)
man you are a genius