Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help creating a macro!
#4
can always change the wait time to whatever 

Function StartMacroIf
Trigger 4     Help - how to add the trigger to the macro
Code:
Copy      Help
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     Help - how to add the trigger to the macro
Code:
Copy      Help
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
 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


Messages In This Thread
Need help creating a macro! - by Leeroll - 08-06-2018, 05:02 PM
RE: Need help creating a macro! - by Kevin - 08-06-2018, 05:55 PM
RE: Need help creating a macro! - by Leeroll - 08-06-2018, 06:11 PM
RE: Need help creating a macro! - by Kevin - 08-06-2018, 06:24 PM
RE: Need help creating a macro! - by Leeroll - 08-07-2018, 06:34 AM
RE: Need help creating a macro! - by Kevin - 08-07-2018, 08:33 AM
RE: Need help creating a macro! - by Leeroll - 08-07-2018, 10:38 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)