Author: Titan Last Modified: nonexistent
Dynamically adds regular expression hotstrings.
hotstrings(k, a = "")
For more details of the functions's parameters and return value, please see it's source code.
It is not strictly stdlib conform, because it uses a global variable.
For update's details and remarks related to the functions, please see the AutoHotkey Forum: http://www.autohotkey.com/forum/topic16367.html
The functions is an open source item under the Simplified BSD license. For details, please see titan-license.txt
; #Include Hotstrings.ahk #NoEnv SendMode Input SetWorkingDir %A_ScriptDir% ; hotstrings("(B|b)tw\s", "%$1%y the way") ; type 'btw' followed by space, tab or return ; hotstrings("i)omg", "oh my god{!}") ; type 'OMG' in any case, upper, lower or mixed ; hotstrings("\bcolou?r", "rgb(128, 255, 0);") ; '\b' prevents matching with anything before the word, e.g. 'multicololoured' hotstrings("now#", "%A_Now%") hotstrings("(B|b)tw", "%$1%y the way") hotstrings("(\d+)\/(\d+)%", "percent") ; try 4/50% Return percent: p := Round($1 / $2 * 100) Send, %p%`% Return