Line 1: | Line 1: | ||
− | [[Category:Advanced tab]] | + | [[Category:Advanced tab]]The following table includes an exhaustive list of all supported macro commands in UltraEdit / UEStudio, including any parameters for the command. |
− | The following table includes an | ||
'''Parameters:''' Parameters should be set immediately after the macro command, separated by a space. A <code>#</code> in the parameter column a represents a numeric value to be entered for that parameter. Likewise, a <code>""</code> in the parameter column a string represents a string value to be entered between quotes. The text only describes the meaning of the parameter. All string parameters must be the last parameter. | '''Parameters:''' Parameters should be set immediately after the macro command, separated by a space. A <code>#</code> in the parameter column a represents a numeric value to be entered for that parameter. Likewise, a <code>""</code> in the parameter column a string represents a string value to be entered between quotes. The text only describes the meaning of the parameter. All string parameters must be the last parameter. |
The following table includes an exhaustive list of all supported macro commands in UltraEdit / UEStudio, including any parameters for the command.
Parameters: Parameters should be set immediately after the macro command, separated by a space. A #
in the parameter column a represents a numeric value to be entered for that parameter. Likewise, a ""
in the parameter column a string represents a string value to be entered between quotes. The text only describes the meaning of the parameter. All string parameters must be the last parameter.
Command | Parameters | Description |
---|---|---|
""
|
Insert text between the quotes (""). The closing quote must be the last non-space character on the line. The characters to be inserted may cross multiple lines. To insert a quote ("), place it as needed in the text being inserted and ensure the last character is also a quote. To insert just one quote character (") the line should look like this: """ To insert a new line, add a line between the open quote and close quote. To insert two lines with 1 and 2 at the beginning of the lines the command should be as follows: "1 2"
| |
AnsiToOem
|
Convert file from ANSI to OEM | |
ASCIIToUnicode
|
Convert file from ASCII to Unicode | |
ASCIIToUTF8
|
Convert file from ASCII to UTF-8 | |
Bottom
|
Move caret to very last position in file | |
CancelSelect
|
Clears any selection in active file | |
ClearClipboard
|
Clear the contents of the active clipboard within UltraEdit | |
Clipboard
|
# (Clipboard number 0-9)
|
Select the specified clipboard (0 = Windows clipboard and 1-9 specifies user clipboards) |
CloseFile
|
|
Close the active file |
ColumnCenterJustify
|
Center justify selected columns | |
ColumnCut
|
#
|
Cut in column mode the selected columns or the specified number of columns from current caret position to bottom of the file. Value "0" must be used to cut the selected columns. |
ColumnDelete
|
#
|
Delete in column mode the selected columns or the specified number of columns from current caret position to bottom of the file. Value "0" must be used to delete the selected columns. |
ColumnInsert
|
""
|
Insert string between quotes into selected columns |
ColumnInsertNum
|
# (start number)
|
Insert number in selected columns. For example to insert a number starting with number 20 with an increment of -1 (i.e., decrement by 1) with leading zeros in hexadecimal notation at the current column on every selected line or from current line to last line following command must be used:
|
ColumnLeftJustify
|
Left justify selected columns | |
ColumnModeOff
|
Turn column mode off | |
ColumnModeOn
|
Turn column mode on | |
ColumnRightJustify
|
Right justify selected columns | |
CommentAdd
|
Insert the line comment string as defined in the syntax highlighting language used to highlight the current file at start of every selected line or the current line if there is no selection. This command has no affect on a file not highlighted with a syntax highlighting language or when the language has no line comment definition. The caret position does not change and the selection remains. | |
CommentRemove
|
Remove the line comment string as defined in the syntax highlighting language used to highlight the current file at start of every selected line or the current line if there is no selection. This command has no affect on a file not highlighted with a syntax highlighting language or when the language has no line comment definition. The line comment string must be at start of the line (column 1) without preceding whitespace. A line comment string after one or more spaces or tabs is ignored and not removed. The caret position does not change and the selection remains. | |
CommentSelectionAdd
|
Insert the "block comment on" string at start and the "block comment off" string at end of a selection as defined in the syntax highlighting language used to highlight the current file. If nothing is selected on execution of the command, both strings are inserted at current caret position. This command has no affect on a file not highlighted with a syntax highlighting language or when the language has no block comment definition. If the selected block contains already a block comment and the language does not support nested blocks comments, command CommentAdd is automatically executed instead of this command for inserting the line comment string at start of every selected line if the language supports a line comment. The caret moves to start of the inserted "block comment on" string and the selection is removed after execution when the block comment strings are inserted.
| |
CommentSelectionRemove
|
Remove the "block comment on" string at start and the "block comment off" string at end of a selection as defined in the syntax highlighting language used to highlight the current file. The command has no affect if nothing is selected on execution of the command. And the command works only if the current selection starts with the "block comment on" string and ends with the "block comment off" string. Whitespace inside the selection before "block comment on" string or after "block comment off" string are not ignored and result in not removing the block comment strings. The caret moves to start of the selection and the selection is removed after execution when the block comment strings are removed. | |
Copy
|
Copy selected text to the clipboard | |
CopyAllBookmarkLines
|
Copy all bookmarked lines in active file to clipboard | |
CopyAppend
|
Copy selected text and append it to the clipboard | |
CopyFilePath
|
Copy the active file path/name to the clipboard | |
Cut
|
Cut the selected text from the file to the clipboard | |
CutAllBookmarkLines
|
Cut all bookmarked lines in active file to clipboard | |
CutAppend
|
Cut the selected text from the file and append it to the clipboard | |
DecodeBase64
|
Converts the selected text from Base64 | |
DecryptFilePrompt
|
Opens the decrypt file dialog prompting for the full path of the file to decrypt and the passphrase to be used as the decryption key | |
DelAllBookmarkLines
|
Delete currently bookmarked lines in active file | |
DelAllHiddenLines
|
Delete lines currently hidden/folded in active file. | |
Delete
|
Delete current character or selected text | |
DeleteLine
|
Delete the current line | |
DeleteToEndofLine
|
Delete from the current caret position to the end of the line | |
DeleteToStartofLine
|
Delete from the current caret position to the start of the line | |
DOSToMac
|
Convert all line terminators in file to Mac (legacy) format | |
DOSToUnix
|
Convert all line terminators in file to Unix format | |
DupeLine
|
Inserts duplicate of active line below caret | |
Else
|
Else function for an If ... command. Example:
| |
EncodeBase64
|
Converts the selected text to Base64 | |
EncryptFilePrompt
|
Opens the encrypt file dialog prompting for the full path of the file to encrypt and the passphrase to be used for encryption | |
EndIf
|
Ends the block of instructions controlled by the If... statements | |
EndLoop
|
End of loop - go back to beginning of the loop - see the Loop command | |
EndSelect
|
Stop selecting text (see StartSelect for details) | |
EnvTemplate
|
"" (layout template name in quotes)
|
Insert the specified layout (formerly environment) template into the file |
ExitLoop
|
Exit loop and go to first command after the loop (after the EndLoop command) - see the Loop command | |
ExitMacro
|
Exit macro immediately without processing any additional commands or returning an error | |
Find
|
"" (find string in quotes)
|
Find the string in quotes "" based on the parameters specified. Some examples:
|
FindInFiles
|
"" (search directory string in quotes)
|
Searches through specified files to find the string in quotes "" based on the parameters specified. The format must be as follows:
|
FromEBCDIC
|
Convert file to ANSI from EBCDIC format | |
GetString
|
"" string used as text in the prompt dialog
|
Prompts for a string that is inserted in the file at the current location. The "prompt" is the prompt or question that is displayed to the user when the macro is run. Example:
|
GetValue
|
"" string used as text in the prompt dialog
|
Prompts the user for a value that is inserted in the file at the current location. The "prompt" is the prompt or question that is displayed to the user when the macro is run.
|
GotoBookMark
|
# (index of bookmark to jump to, or -1 to go to next bookmark)
|
Jump to the next/specified bookmark. The indexes start with 0. If you specify an index that is greater than the actual number of bookmarks then caret is automatically set to the next bookmark like when using -1 as bookmark number. |
GotoBookMarkSelect
|
# (index of bookmark to select to, or -1 to select to next bookmark)
|
Select all text from the current caret position to the next/specified bookmark. The indexes start with 0. If you specify an index that is greater than the actual number of bookmarks then caret is automatically set to the next bookmark like when using -1 as bookmark number. |
GotoEndOfNextWord
|
Jump to end of next word | |
GotoEndOfNextWordSelect
|
Select all text from current caret position to end of next (immediate right) word | |
GotoEndOfPrevWord
|
Jump to end of previous word | |
GotoEndOfPrevWordSelect
|
Select all text from current caret position to end of previous (immediate left) word | |
GotoLine
|
# # (numeric value of line and column number to jump to
|
Jump to the specified line and column number. Use line number 0 to jump to a specific column in the current line. |
GotoLineSelect
|
# (numeric value of line and column number to select to)
|
Select from current caret position to specified line / column number. Use line number 0 to jump to a specific column in the current line while selecting text. |
GotoPage
|
# (numeric value of page to jump to)
|
Jump to specified page number |
GotoPageSelect
|
# (numeric value of page to select to)
|
Select from current caret position to specified page number |
HexDelete
|
# (numeric value specifying number of bytes to delete)
|
Delete the specified number of bytes from the file |
HexInsert
|
# (numeric value specifying number of bytes to insert)
|
Insert the specified number of bytes (spaces/hex 20) into the file |
HexOff
|
Turn Hex mode off - switch to regular text editing mode | |
HexOn
|
Turn Hex mode on | |
HideShowCollapseAll
|
Collapse all foldable code sections in active file | |
HideShowExpandAll
|
Expand all folded/collapsed lines in active file | |
HideShowSelection
|
Hide selected lines, or if active line is folded, expand it | |
IfCharGt
|
"character" or #
|
This checks if the current character at the caret position is greater than the specified character or number specified. The check against a number is not to check the value of a string but the value of the underlying character. Example:
|
IfCharIs
|
"string" or #
|
This checks if the current character at the caret position is in the specified string, or matches the decimal number. Example:
|
IfColNum
|
#
|
This checks if the current caret position is the specific column number. Example:
|
IfColNumGt
|
#
|
This checks if the current caret position is greater than the specific column number. Example:
|
IfEof
|
This checks if the current caret position is at the end of file. Example:
| |
IfExtIs
|
""
|
Checks if the file extension of the active file matches the specified string. If the extension matches, the condition is satisfied and the macro will execute the steps following the IfextIs statement. Example:
|
IfFound
|
This checks the results from the last find command in the macro and will execute the next set of instructions up to an "EndIf" if the last search was successful. Example:
| |
IfFTP
|
This checks if the current file is a file loaded via FTP/SFTP and not a local/network file. Example:
| |
IfNameIs
|
""
|
This checks if the active filename (not path or extension) matches the specified string. If the name matches, the condition is satisfied and the macro will execute the steps following the IfNameIs statement. Example:
|
IfNotFound
|
This checks the results from the last find command in the macro and will execute the next set of instructions up to an "EndIf" if the last search was NOT successful. Example:
| |
IfSel
|
This checks if there is currently any selected text within the active file. Example:
| |
InsertLine
|
Inserts blank line below current caret position | |
InsertMode
|
Change text editing mode to insert mode for characters typed | |
InsertPageBreak
|
Insert a form feed/page break character at the current caret position in the file | |
InvertCase
|
Invert the case of selected text | |
Key
|
|
Insert a keyboard command into the macro. Generally used for navigation in the file and for backspace or delete. The "Ctrl+" modifier may be used as with normal editing to modify the command.
|
LngTemplate
|
"" (language template name in quotes)
|
Insert the specified language template into the file |
Loop
|
#
|
Loop # times where # is a number. A value of 0 indicates Loop forever. Example:
|
MatchBrace
|
Find matching brace and select the text between them | |
MoveLineDown
|
Moves active line down one line from current position | |
MoveLineUp
|
Moves active line up one line from current position | |
NewFile
|
Open a new blank file | |
Nextfile
|
Switch to next file tab file | |
NextWindow
|
Switch to next window | |
OEMtoANSI
|
Convert file from OEM to ANSI | |
Open
|
"" (file name in quotes)
|
Open the specified file. The filename must be in quotes. Either ^s or ^c can be used in the file name parameter, and UltraEdit / UEStudio will replace this with the currently selected text or clipboard contents, respectively.
|
OverstrikeMode
|
Change text editing mode to overstrike mode for characters typed | |
Paste
|
Paste the contents of the clipboard into the file | |
PerlReOn
|
Switch regular expressions to Perl compatible style regular expressions | |
PlayMacro
|
# (numeric value specifying number of times to play macro)
|
Play another macro. Specify the number of times to play the macro first, then the macro name. The macro name must be in quotes and is case sensitive and the macro must already exist and be loaded in UltraEdit / UEStudio. Example:
|
PreviousBookmark
|
Jump to the previous bookmark | |
PreviousBookmarkSelect
|
Select from current caret position to the previous bookmark | |
PreviousDocument
|
Activate file tab immediately to left of the active tab | |
PreviousWindow
|
Cycles forward through the most-recently clicked file tab history. | |
PrjTemplate
|
"" (project template name in quotes)
|
Insert the specified project template into the file |
ReIndentSelection
|
Re-indents currently selected text in active file | |
Replace
|
"" (replace string in quotes)
|
The Replace command replaces the previously found string with the string specified. This command must follow a Find command in macros.
|
ReplInFiles
|
"" (search directory string in quotes)
|
Searches through specified files to find the string in quotes "" based on the parameters specified and replace this as specified. The format must be as follows:
|
ReturnToWrap
|
Convert hard returns to word wrap | |
RunTool
|
"" (case sensitive name of tool to run)
|
Runs a tool. The tool must have been previously configured in UltraEdit / UEStudio. |
Save
|
Save active file | |
SaveAll
|
Save all open files | |
SaveAs
|
"" (file name)
|
Save the active file as the name specified. The file name must be in quotes. Either ^s or ^c can be used in the file name parameter, and UltraEdit / UEStudio will replace this with the currently selected text or clipboard contents, respectively.
|
SelectAll
|
Select all text in the file | |
SelectLine
|
Select all text on active line including line terminator (if it exists). The caret is positioned at the beginning of the next line | |
SelectToBottom
|
Select all text from the current caret position to the end of file | |
SelectToTop
|
Select all text from the current caret position to the top of file | |
SelectWord
|
Select the word under caret (same as double clicking a word) | |
SortAsc
|
IgnoreCase Ignore case of characters in the sort.
|
Sort the file, or selected text, in ascending order. Example:
|
SortDes
|
IgnoreCase Ignore case of characters in the sort.
|
Sort the file, or selected text, in descending order. Example:
|
SpacesToTabs
|
Convert (leading) spaces within the file to tabs | |
SpacesToTabsAll
|
Convert (all) spaces within the file to tabs | |
StartSelect
|
Start selection. This turns the selection mode on. Any caret movement or positioning will be with selection on and the text is selected. EndSelect will stop the selection mode. The selected text will remain selected until another command causes it not to be selected as with normal editing. | |
TabsToSpaces
|
Convert all tabs within the file to spaces | |
Template
|
|
Insert the specified global template into the file |
TimeDate
|
Insert the time and date into the file at the current location | |
ToCaps
|
Capitalize each word in the selected text | |
ToEBCDIC
|
Convert file to EBCDIC format | |
ToggleBookmark
|
Set or remove a bookmark at the current line | |
ToLower
|
Convert the selected text to lower case | |
Top
|
Move caret to very first position in file | |
ToUpper
|
Convert the selected text to upper case | |
TrimLeadingSpaces
|
Trim leading spaces from each line of current file | |
TrimTrailingSpaces
|
Trim trailing spaces from each line of current file | |
UltraEditReOn
|
Switch regular expressions to UltraEdit style regular expressions (not Unix) | |
UnicodeToASCII
|
Convert file from Unicode to ASCII | |
UnixMactoDos
|
Convert all Unix and Mac line terminators in the active file to DOS format | |
UnixReOn
|
Switch regular expressions to Unix style regular expressions | |
UTF8ToASCII
|
Convert file from UTF-8 to ASCII | |
WrapToReturn
|
# column number at which wrap is performed. Enter 0 to insert returns at the window boundary
|
Convert the file from word wrap to hard returns |
XMLConvertToCRLF
|
Converts single-line XML text to indented XML format |