Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to stop a macro
#4
If it is a function, the 'End macro' hotkey does not work. And there is no 'End function' hotkey. If need, create another function that ends the first function, and assign it a keyboard trigger. Example:
Function end_Function299
Trigger CSe     Help - how to add the trigger to the macro
Code:
Copy      Help
;Ends thread of Function299 when you press Ctrl+Shift+E.

EndThread "Function299"

Quote:or with a code within the own script
Use ret. Or break, if in a loop.
Example:
Function Function300
Code:
Copy      Help
;Displays 0, 1, 2...
;Ends when Ctrl pressed.

int i
for i 0 1000000000
,0.1
,ifk(C) ret
,out i


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)