PrintableList:
alt := 0
List =
Texter Hotstrings and Replacement Text CheatsheetTexter Hostrings and Replacement Text Cheatsheet
Default
Hotstring
Replacement Text
Trigger(s)
Loop, replacements\*.txt
{
alt := 1 - alt
trig =
hs = %A_LoopFileName%
StringReplace, hs, hs, .txt
FileRead, rp, replacements\%hs%.txt
FileRead, entertrig, bank\enter.csv
FileRead, tabtrig, bank\tab.csv
FileRead, spacetrig, bank\space.csv
FileRead, notrig, bank\notrig.csv
If hs in %entertrig%
trig = Enter
If hs in %tabtrig%
trig = %trig% Tab
If hs in %spacetrig%
trig = %trig% Space
If hs in %notrig%
trig = %trig% Instant
StringReplace, rp, rp, <,<,All
StringReplace, rp, rp, >,>,All
hs := DeHexify(hs)
List = %List%%hs%%rp%%trig%
}
Loop,bundles\*,2
{
thisBundle = %A_LoopFileName%
List = %List%
%thisBundle%
Hotstring
Replacement Text
Trigger(s)
Loop,bundles\%A_LoopFileName%\replacements\*.txt
{
trig =
hs = %A_LoopFileName%
StringReplace, hs, hs, .txt
FileRead, rp, bundles\%thisBundle%\replacements\%hs%.txt
FileRead, entertrig, bundles\%thisBundle%\bank\enter.csv
FileRead, tabtrig, bundles\%thisBundle%\bank\tab.csv
FileRead, spacetrig, bundles\%thisBundle%\bank\space.csv
FileRead, notrig, bundles\%thisBundle%\bank\notrig.csv
If hs in %entertrig%
trig = Enter
If hs in %tabtrig%
trig = %trig% Tab
If hs in %spacetrig%
trig = %trig% Space
If hs in %notrig%
trig = %trig% Instant
StringReplace, rp, rp, <,<,All
StringReplace, rp, rp, >,>,All
hs := DeHexify(hs)
List = %List%%hs%%rp%%trig%
}
StringReplace, thisBundle, thisBundle, .txt,,All
StringReplace, thisBundle, thisBundle, %A_LoopFileName%,,
%A_LoopFileName% = %thisBundle%
}
List = %List%
IfExist resources\Texter Replacement Guide.html
FileDelete,resources\Texter Replacement Guide.html
FileAppend,%List%, resources\Texter Replacement Guide.html
Run,resources\Texter Replacement Guide.html
return