Re:Learn AutoHotKey by stealing my scripts
by PennRobotics on Tuesday August 22, 2023 @10:22AM
(#37223126)
from the V1 docs,
To avoid [infinite loops] add the $ prefix to the hotkey definition (e.g. $^c::) so that the hotkey cannot be triggered by the Send command.
or a very restrictive #MaxHotkeysPerInterval
You'd think I'd learn but my scripts usually start small for with one specific use and i enlarge it Unsafely once I think of another use for it
Loops are my danger zone. After a few crashes the first guardrail I end up adding to a script is a stop key combo interrupt. Then figure out what bounds to put only after every mistake. I don't have the foresight to prevent "rogue" behavior