Inserting special characters in text file.

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
rullbandspelare
Pro Scripter
Posts: 149
Joined: Tue Mar 23, 2004 9:11 pm

Inserting special characters in text file.

Post by rullbandspelare » Mon Jan 26, 2015 4:03 pm

Hi!

How can I insert theese two "characters" in a text file?

Dec Col/Row Oct Hex Name and Description
11 00/11 13 0B VT (Ctrl-K) VERTICAL TAB
28 01/12 34 1C FS (Ctrl-\) FILE SEPARATOR

Thanks!

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Inserting special characters in text file.

Post by Marcus Tettmar » Mon Jan 26, 2015 7:10 pm

Hi,

Do this to get those characters into variables:

VBEval>Chr(11),strCtrlK
VBEval>Chr(28),strCtrlSlash

Then you can write them out:

WriteLn>filename,result,bla bla %strCtrlK% bla bla %strCtrlSlash% etc etc
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts