i propose the following:
- #InstallKeybdHook enabled by default if Send command variant is used. Directive replaced with a new one which would instead suppress the installation of the hook, provided thats at all possible. Something like #DeferKeybdHookInstall but thats a bit wordy
- #InstallMouseHook same as above.
- #UseHook enabled by default if a Send command variant is used, unless one of the above alternate directives appears in the script
the primary reason being is i see time and time again people trying to make repeat macros, involving sending the key that triggered them, inadvertently triggering an infinite(well, almost..) loop. Thats rarely the desired behavior, in fact id reckon it never is. I cant think of a situation where youd want that and tbh if youre using Send
to trigger other hotkey labels, thats just bad design and should be actively discouraged. "More than #MaxHotkeysPerInterval
have been sent in the last however long it took
ms." is the cryptic message they then have to go by in their efforts to track down the bug.
+1 MB memory footprint i can live with. those concerned with it can use the alternate directives and acknowledge what using them implies.
Besides memory i personally cant think of any reason why you wouldnt
want to have the hooks enabled by default at all times, but im willing to leave it at them getting enabled only if Send
appears in the script.