Autohotkey has been an awesome tool where I use it to create custom keyboard shortcuts. I use the keyboard shortcuts (Ctrl-1) to type out standard emails or messages that I regularly use. I paste these messages into WhatsApp and outlook.
I have about fives messages that I regularly use, therefore I have assigned shortcut keys from Ctrl-1 to Ctrl 5.
In Autohotkey script, it will be:
^1::
^2::
^3::
^4::
^5::
Here is the sample code.
#Requires AutoHotkey v2.0
^1::{ ;This means (Ctrl-1) 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:
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.