can always change the wait time to whatever
Function StartMacroIf
Trigger 4
for right click use this
Function StartMacroIf
Trigger 4
can use left click right click or middle click
wait 1 MM; err int Mclick=1;;middle click
wait 1 ML; err int Lclick=1;; leftclick
wait 1 MR; err int Rclick=1;; right click
here i changed the int variable name for explanation purposes
Function StartMacroIf
Trigger 4
wait(1 ML); err int leftClick=1
if(leftClick =1)
,out "function will now end because no left click within 1 seconds"
,ret;;no left click end function
else
,out "starting code because left click was within 1 second"
,;mac "Macro9";example add code to do whatever you want since condition is true
;or less
wait(0.5 ML); err int leftClick=1
if(leftClick =1)
,out "function will now end because no left click within .5 seconds"
,ret;;no left click end function
else
,out "starting code because left click was within .5 seconds"
,;mac "Macro9";example add code to do whatever you want since condition is true
for right click use this
Function StartMacroIf
Trigger 4
wait(1 MR); err int RighClick=1
if(RightClick =1)
,out "function will now end because no Right click within 1 second"
,ret;;no left click end function
else
,out "starting code because Right click was within 1 second"
,;mac "Macro9";example add code to do whatever you want since condition is true
wait 1 MM; err int Mclick=1;;middle click
wait 1 ML; err int Lclick=1;; leftclick
wait 1 MR; err int Rclick=1;; right click
here i changed the int variable name for explanation purposes