News for hackers. Stuff that matters.
Re:Learn AutoHotKey by stealing my scripts by inafewwords on Tuesday August 22, 2023 @09:56AM (#37222782)
Every AHK I've made has gone rogue because I want it to do things and it does it well but without guard rails i overwhelm my target every time. Thankfully the target is usually my local and I just mostly reboot

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

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