Visual Basic Scripting in BarTender

The topics contained within this section refer to using Visual Basic scripts within BarTender's user interface. To automate BarTender from an external application, you will need to use BarTender's ActiveX Automation interface, or install the BarTender .NET SDKs. For more information, see Automating BarTender.

Purposes of Scripting

There are basically two types of purposes for which you can use BarTender's internal scripting feature:

How Visual Basic Script is used in BarTender

Visual Basic Script is a subset of Microsoft's Visual Basic programming language. It is specifically designed to add functionality to existing programs, rather than to write programs themselves. When used as a data source in BarTender, a Visual Basic Script can be as simple as a single command or "function." For example, a single line of Visual Basic Script can be used to add or remove one or more characters from an imported data field. Scripts can also be so advanced that they are almost programs themselves (even though they are still used within other programs). Such scripts may test for a number of conditions and then, depending on the results, perform one or perhaps many tasks.

Types of Visual Basic Scripting

To make Visual Basic Scripting accessible to more than just programmers, BarTender provides three levels of complexity for Visual Basic Script users. Each of these levels is summarized below:

Who Should Use Visual Basic Scripts

Although Visual Basic Scripts can be complex enough to be considered "programs," there are times when just a single line of Visual Basic Script may prove quite useful. Simple scripts such as these can be formed using your mouse and BarTender's Script Assistant all without "programming" in the conventional sense. Still, scripting is typically a technique for "power users" and not ideal for computer novices. Whatever your computer skills, you should always be sure that BarTender doesn’t already offer a solution to your challenge before embarking upon a script-based solution.

Related Topics