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

Author: Scott Hollows

Enterprise software developer based in Perth, Western Australia. Oracle, Delphi, Data Warehouse design and ETL, Data Architect, Business Intelligence, Oracle performance tuning. Oracle ApEx, Discoverer, BI Publisher, OBIEE, Forms, Reports, SQL, PLSQL. Blockchain software development, cryptocurrency exchange integration and trading analysis Australian Delphi User Group (ADUG) - WA branch manager and past national president LinkedIn www.linkedin.com/in/scotthollows

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: