In another page on AutoHotkey, I created shortcut keys to type out standard emails or messages that I regularly use. Instead of shortcut keys, you can type certain "code" to generate the messages. It is called Text Expander.
In Autohotkey script, it will be:
#Requires AutoHotkey v2.0
::tst.::{ ;This means tst. to trigger the custom message
SetKeyDelay 25, 25 ; 25ms between keys, 25ms between down/up.
SendEvent "
(
Line 1, Hello world,
Line 2, Hello world 2.
)"
}
Note:
To trigger the text expander, you just need to type "tst." and space, this generates the message. Feel free to create your own list of text expanders and messages.
I insert a key delay of 25 miliseconds, without the key delay the message does not appear correctly. If your message is very long, I suggest setting the key delay to longer.
Installation Instruction
- Download Autohotkey.
- Run the exe file and follow on screen instruction.
- Follow this page example on how to run scripts.
To write the Autohotkey code, follow this quick tutorial.