background image
<< Setting GUI Recording Options | Controlling How Robot Responds to Unknown Objects >>
<< Setting GUI Recording Options | Controlling How Robot Responds to Unknown Objects >>
Naming Scripts Automatically
Recording GUI Scripts
2-6
2. Set the options on each tab.
3. Click OK.
Naming Scripts Automatically
Robot can assist you in assigning names to scripts with its script autonaming feature.
Autonaming inserts your specified characters into the Name box of a new script and
appends a consecutive number to the prefix.
This is a useful feature if you are recording a series of related scripts and want to
identify their relationship through the prefix in their names. For example, if you are
testing the menus in a Visual Basic application, you might want to have every script
name start with VBMenu.
To turn on script autonaming:
1. Open the GUI Record Options dialog box. (See Setting GUI Recording Options
on page 2-5.)
2. In the General tab, type a prefix in the Prefix box.
Clear the box if you do not want a prefix. If the box is cleared, you will need to
type a name each time you record a new script.
3. Click OK or change other options.
The next time you record a new script, the prefix and a number appear in the Name
box of the Record GUI dialog box.
In the following figure, the autonaming prefix is Test. When you record a new script,
Test7 appears in the Name box because there are six other scripts that begin with Test.