$Text
The $Text macro-command inserts the text into the current object editor.
$Text "string"
Elements
string
The text to be inserted 'string' must be encoded using OEM codepage.
The following escape-sequences can be used in this macro-command:
The following escape-sequences can be used in this macro-command:
| Format | Description |
|---|---|
| \" | The '"' character |
| \' | The ''' character |
| \\ | The '\' character |
| \n | New line `\n' |
| \t | Tab `\t' |
| \a | Bell |
| \b | `\b' |
| \f | `\f' |
| \v | `\v' |
| \N \NN \NNN |
Octal characters code for the OEM code page |
| \xNN | Hexadecimal characters code for the OEM code page |
Notes
- It is impossible to use macro-language elements while recording a macro in a usual way. Macro-language elements can be added to the sequence only by editing the registry manually or by using special applications or FAR plugins.
- This macro command allows to minimize the usage of memory allocated for the macro command sequence and make the sequence more comprehensive.
- Keyword "$Text" can be omitted i.e. FAR will automatically transform any quoted text to $Text "text" except the situation when the " character is followed by the 'space' character.
Example
REGEDIT ;create the new folder named by the current date [HKEY_CURRENT_USER\Software\Far\KeyMacros\Shell\CtrlShiftF7] "Sequence"="%Folder=date(\"%d.%m0.%Y\"); $If (!panel.fexist(0,%Folder)) F7 $Text %Folder Enter $End" "DisableOutput"=dword:00000001 "NoPluginPanels"=dword:00000001
See also: