Named Loops
Named Loops
How do you make a named loop?
- JoeWinograd
- Posts: 2213
- Joined: 10 Feb 2014, 20:00
- Location: U.S. Central Time Zone
Re: Named Loops
There's no such thing as a "named loop". What are you trying to achieve?
Re: Named Loops
Perhaps you are looking for something like a timer? Then, see SetTimer...
Re: Named Loops
The documentation says they exist here: https://autohotkey.com/docs/misc/Labels.htm#named-loops
Re: Named Loops
Read the continue and break pages and the examples.
- JoeWinograd
- Posts: 2213
- Joined: 10 Feb 2014, 20:00
- Location: U.S. Central Time Zone
Re: Named Loops
Thanks for that link...learn something new every day here! I never heard of a named loop and never had a need for one in thousands of lines of AHK code with a ton of loops. But I can see its value with Break and Continue in nested loops. The doc on it is very good...says that a loop's label name (or an integer with its numeric nesting level) can be used to identify which loop (in the nested loops) that the Break or Continue applies to. Nice way to break out of an inner loop to the outermost loop...or any outer loop. Good stuff! That said, I haven't had a need for it...yet. Regards, Joedocumentation says they exist here
Who is online
Users browsing this forum: mikeyww and 193 guests