AutoHotKey (AHK) New Line In Macro Output

There are multiple ways to send a New Line to AutoHotKey output.
I will show one technique that has worked well for me

This example is triggered when you type in MyMacroText1 (not case sensitive) and it then sends the text including new lines to the current program

:*:MyMacroText1::
       send Hello There{ENTER}
       send How Are You{ENTER}
       send That Is All
       return

You can do it all on one line if you want to

:*:MyMacroText2::
       send Hello There{ENTER}How Are You{ENTER}That Is All
       return

Published by

Leave a comment