Navigation:  How to use Comfort Typing >

Template macros

Previous pageReturn to chapter overviewNext 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.

Show popup menu (the <POPUP>...</POPUP> tag) – select text from lists enclosed by the <CS> and </CS> tags. It is possible to embed these macros. Simple example: <POPUP><CS>Hi</CS><CS>Hello</CS></POPUP> – insert Hi or Hello.
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.
Execute JavaScript function (the <SCRIPT> tag) - with this tag you can perform various functions from your Java-scripts. For example:

<SCRIPT>

<FILE>Common.js</FILE>

<FUNCTION>DoublingSlashes</FUNCTION>

<PARAM><SELECTION></PARAM>

</SCRIPT>.

 

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

 



Web-site: Text templates manager