Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

37 lines (33 sloc) 1.319 kb
#SingleInstance,Force
#NoEnv
SetWorkingDir, "%A_ScriptDir%"
FileRead, EnterKeys, %A_WorkingDir%\bank\enter.csv
FileRead, TabKeys, %A_WorkingDir%\bank\tab.csv
FileRead, SpaceKeys, %A_WorkingDir%\bank\space.csv
Gosub,PrintableList
return
PrintableList:
FileDelete,%A_WorkingDir%\resources\Texter Replacement Guide.html
MsgBox,Delete %A_WorkingDir%\resources\Texter Replacement Guide.html
List = <html><head><title>Texter Hotstrings and Replacement Text Cheatsheet</title></head></body><h2>Texter Hostrings and Replacement Text Cheatsheet</h2><table border="1"><th>Hotstring</th><th>Replacement Text</th><th>Trigger(s)</th>
Loop, %A_WorkingDir%\replacements\*.txt
{
trig =
hs = %A_LoopFileName%
StringReplace, hs, hs, .txt
FileRead, rp, %A_WorkingDir%\replacements\%hs%.txt
If hs in %EnterKeys%
trig = Enter
If hs in %TabKeys%
trig = %trig% Tab
If hs in %SpaceKeys%
trig = %trig% Space
StringReplace, rp, rp, <,&lt;,All
StringReplace, rp, rp, >,&gt;,All
List = %List%<tr><td>%hs%</td><td>%rp%</td><td>%trig%</td></tr>
}
List = %List%</table></body></html>
FileAppend,%List%, %A_WorkingDir%\resources\Texter Replacement Guide.html
MsgBox,Append %A_WorkingDir%\resources\Texter Replacement Guide.html
Run,%A_WorkingDir%\resources\Texter Replacement Guide.html
return
Jump to Line
Something went wrong with that request. Please try again.