Macro Toolworks and Perfect Keyboard Forums • How to add new lines in text and then save it in file
Page 1 of 1

How to add new lines in text and then save it in file

Posted: Fri May 26, 2017 2:52 pm
by Petr
This is an example how to create a text with new lines and how to save it in a file. The example text is:
Hello,

I'm writing you concerning...
The macro that creates such text and save it to file:

Code: Select all

<varset>("text=Hello,%_vKeyReturn%","")<#>
<varset>("text=%text%%_vKeyReturn%","")<#>
<varset>("text=%text%I'm writing you concerning...","")<#>
<data_save>("%text%","c:\temp\multiline.txt","O","")
Petr