Contents

Introducing Comfort Typing
Version Comparison
How to buy Comfort Typing
How to use Comfort Typing
Working with Template Manager
Editing templates
Template macros
Controlling the input language
Options
Main properties
Themes
Keyboard Shortcuts
Template Manager
Word Autocomplete
Language Switcher
Exceptions
Advanced
Other issues
FAQ - Frequently asked questions
License Agreement
Contact information

 
Home
Comfort Typing Web Online Help
Prev Page Next Page
 
 
Template macros
return to introduction  previous page  next page
These types of macros are used when you configure plain text templates.

Macro types:
· Insert the current date and/or time (the <DATETIME format> tag) – inserts date and time in the specified format (see the format list).  
· Press keys (the <KEY shortcut> tag) – keystrokes will be emulated inside the text (see the key identifier list). Use the '+' character to specify a keyboard combination. It is possible to use the code of a key in the hexadecimal format. To do it, use the '$' character (for instance, $20 – Space, $1B – Escape). Sample keyboard combinations:  
· <KEY WIN+R>regedit<KEY Enter> – start the registry editor.  
· Login<KEY TAB>password<KEY ENTER> - enter the login and password.  
· Select random text from a list (the <SOMEOF>...</SOMEOF> tag) – select random text from lists enclosed by the <CS> and </CS> tags. It is possible to embed these macros. Simple examples:  
· <SOMEOF><CS>1</CS><CS>2</CS></SOMEOF> – insert 1 or 2.  
· <SOMEOF><CS>hi<SOMEOF><CS>1</CS><CS>2</CS></SOMEOF></CS><CS>bye<SOMEOF><CS>1</CS><CS>2</CS></SOMEOF></CS></SOMEOF> – insert hi1, hi2, bye1 or bye2.  
· Insert text from a file (the <FILE filename> tag) – add text from filename into the specified position if filename exists.  
· Insert the selected text (the <SELECTION> tag) – insert the text that is currently selected in the active application. 
· Insert the clipboard content (the <CLIPBOARD> tag) – add the current text content of the clipboard. 

You can specify the position of the text cursor after the text is pasted. Just type the '|' character (vertical slash) there.


Visit Comfort Typing web-site
Converted from CHM to HTML with chm2web Pro 2.75 (unicode)