Registers a hotstring trigger. When the user types the trigger text, it is automatically erased and replaced with the replacement text, or the callback function is invoked.
The text sequence that activates the hotstring (e.g. "btw").
Either a replacement string (e.g. "by the way") or a callback function that runs custom logic when the trigger is typed.
AHK equivalent: ::btw::by the way. The trigger is erased by sending backspace keystrokes equal to its length, then the replacement is typed. Use the callback form for replacements that require scripted logic (e.g. inserting the current date).