Main Menu Reference |
The Script Editor main menu bar is the horizontal bar across the top of the editor. It provides options that help you configure your editor settings and create your scripts.
Use the following File menu options to add script libraries and to manage a selected script file:
Add New Library: Opens the New Script Library dialog, where you can name the new script library that you want to create. For more information, refer to Creating Script Libraries.
Add Existing Library: Opens the Open File dialog so that you can browse for an existing script library file (*.btvbs).
Save: Saves the script that is currently in the Editor pane.
Import: Opens the Open File dialog so that you can browse for an existing script library file that you want to import into the Script Editor.
Export: Opens the Save File dialog so that you can save the open script file to another location on your computer or network.
Print: Opens the Print dialog.
Print Preview: Displays a preview of how the selected object is printed.
Remove: Removes the saved script from the Script Editor.
Delete: Deletes the saved script from the Script Editor and any script library.
Rename: Renames the selected script library.
Open Containing Folder: Opens the folder in which the script is saved.
Properties: Shows properties for the selected saved script file.
Close: Closes the Script Editor.
Use the following Edit menu options to modify the scripts in the Editor pane:
Undo: Undoes the previous action.
Redo: Redoes the previously undone action.
Cut: Deletes the selected text and copies it to the Clipboard.
Copy: Copies the selected text to the Clipboard. This action does not delete the selected text.
Paste: Inserts the text from the Clipboard into the Editor pane.
Select All: Selects all of the text in the Editor pane.
Advanced:
Increase Indent: Increases the indentation level of the selected text.
Decrease Indent: Decreases the indentation level of the selected text.
Comment Lines: Converts the line of text into a comment by adding the Visual Basic comment symbol to the beginning of the line of text.
Uncomment Lines: Removes the comment symbol from the beginning of the text so that the line of text is no longer a comment.
Insert Symbol: Opens the Insert Symbols or Special Characters dialog.
Use the following Search menu options to locate and/or replace a specified term or line in your custom script:
Find: Opens the Find and Replace dialog on the Find tab.
Find Next: Finds the next instance of the text that you entered in the Find and Replace dialog.
Find Previous: Finds the previous instance of the text that you entered in the Find and Replace dialog.
Replace: Opens the Find and Replace dialog on the Replace tab.
Go To Line: Opens the Go To Line dialog, where you can specify the line number that you want the cursor to jump to.
Use the following View menu options to customize the appearance of the Script Editor:
Show Line Numbers: Displays line numbers for the lines of text in the Editor pane.
View Options: Opens the View Options dialog, where you can enable indentation guides and word wrap and specify settings such as tab size and font type, size, and style.
Toolbox:
Script: Shows or hides the Script pane.
Script Assistant: Shows or hides the Script Assistant pane.
Show All: Shows both the Script pane and the Script Assistant pane.
Hide All: Hides both the Script pane and the Script Assistant pane.
Use the following options to access help information about how to use Visual Basic script in BarTender:
BarTender Help: Opens the Script Editor help system.
VBScript Language Reference: Opens the VBScript Language Reference help system.