Macro-commands - Macros

Far Manager

Macro-commands

Macro-commands that can be used in the macro:

Macro-command Description
$Date ["format"] Insert the current date/time.
See "$Date" for details.
$Text "string" Insert arbitrary text.
See "$Text" for details.
$IClip Working with the clipboard.
See "$IClip" for details.
$MMode 1 Changes the screen refresh mode during the macro command execution.
See "$MMode" for details.
$Exit Stops macro command execution.
See "$Exit" for details.
$XLat Invokes the text transliteration function.
See "$XLat" for details.
$KbdSwitch Cyclic switching of the keyboard layouts.
See "$KbdSwitch" for details.
$If (Expr) TruePart [$Else FalsePart] $End Implements a conditional execution operator.
See "$If" for details.
$While (Expr) Sequence $End Implements an iterative process - "Execute the Sequence while condition Expr is true".
See "$While" for details.
$Rep (Expr) Sequence $End Implements the iterative process - "Execute the Sequence Expr number of times".
See "$Rep" for details.
$AKey The hotkey that was used to call the macro.
See "$AKey" for details.
$SelWord Select the word under the cursor.
See "$SelWord" for details.
%var=value;
%%var=value;
Using variables.
See "variables" for details.

Notes

  1. 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.