Recording and editing PerfectScript macros

You can use PerfectScript macros not only with Quattro Pro, but also with other WordPerfect applications such as Presentations and WordPerfect.

PerfectScript is a command-based language that records the results of keystrokes or mouse selections rather than the keystrokes themselves. PerfectScript includes commands that direct the function of the macros. These commands let you create macros that can prompt for user input, make decisions based on conditions in a notebook, access system variables, and so on.

You can record PerfectScript macros. A recorded macro includes only product commands.

You can also type a macro in WordPerfect and play it in Quattro Pro. A typed macro can include non-recordable statements that specify how a macro performs a task. When writing this kind of macro, you specify the conditions for playing assignments, loops, and programming commands.

Once you have created a PerfectScript macro script you can create a .wcl file. The .wcl file is necessary for debugging PerfectScript macros.

In Quattro Pro you can edit a PerfectScript macro in two ways: in WordPerfect or in the PerfectScript Macro Facility.


To record a PerfectScript macro

Wordperfect Quattro Pro btnbacktotopproc Recording and editing PerfectScript macros
1.
 
Click Tools Wordperfect Quattro Pro onestep Recording and editing PerfectScript macros Macro Wordperfect Quattro Pro onestep Recording and editing PerfectScript macros Record.
2.
 
Enable the PerfectScript macro option.
3.
 
Type a filename in the Filename box.
4.
 
Click OK.
5.
 
Perform the actions in a task.
Each action is recorded and written as one or more macro commands in the macro file.
6.
 
Click Tools Wordperfect Quattro Pro onestep Recording and editing PerfectScript macros Macro Wordperfect Quattro Pro onestep Recording and editing PerfectScript macros Record.

Wordperfect Quattro Pro note Recording and editing PerfectScript macros

 
The recording of a macro is noted by Wordperfect Quattro Pro record Recording and editing PerfectScript macros on the application bar.
 
You cannot record a PerfectScript macro that pauses for user input. If you want the macro to pause, edit it after recording it.

To pause or resume the recording of a PerfectScript macro

Wordperfect Quattro Pro btnbacktotopproc Recording and editing PerfectScript macros
 
Click Tools Wordperfect Quattro Pro onestep Recording and editing PerfectScript macros Macro Wordperfect Quattro Pro onestep Recording and editing PerfectScript macros Pause.

To type a PerfectScript macro

Wordperfect Quattro Pro btnbacktotopproc Recording and editing PerfectScript macros
1.
 
Start WordPerfect.
2.
 
Click Tools Wordperfect Quattro Pro onestep Recording and editing PerfectScript macros Macro Wordperfect Quattro Pro onestep Recording and editing PerfectScript macros Macro toolbar.
3.
 
Click the
Commands button on the Macro toolbar.
4.
 
Choose a command type from the Command type list box.
If the command requires a parameter, choose a parameter from the Parameters list box.
If the command requires an enumeration, choose an enumeration from the Enumerations list box.
5.
 
Type any additional parameters or values in the Command edit box.
6.
 
Click Insert.
7.
 
Click Save & compile on the macro toolbar.

Wordperfect Quattro Pro note Recording and editing PerfectScript macros

 
Enumerations are used to set parameter values when parameter values are limited to a specific set of values. For example, the FileClose command lets you close a file. It has a parameter named DoSave? with two enumerations, Yes! and No!.

Wordperfect Quattro Pro tip Recording and editing PerfectScript macros

 
You can also type a PerfectScript macro by click Start Wordperfect Quattro Pro onestep Recording and editing PerfectScript macros All programs Wordperfect Quattro Pro onestep Recording and editing PerfectScript macros WordPerfect Office X5 Wordperfect Quattro Pro onestep Recording and editing PerfectScript macros Utilities Wordperfect Quattro Pro onestep Recording and editing PerfectScript macros PerfectScript and clicking Help Wordperfect Quattro Pro onestep Recording and editing PerfectScript macros Macro command browser.

To create a WCL file

Wordperfect Quattro Pro btnbacktotopproc Recording and editing PerfectScript macros
1.
 
Click Tools Wordperfect Quattro Pro onestep Recording and editing PerfectScript macros Macro Wordperfect Quattro Pro onestep Recording and editing PerfectScript macros Edit.
2.
 
Choose the drive and folder where the macro is stored.
3.
 
Double-click the filename.
WordPerfect opens.
4.
 
Click Options Wordperfect Quattro Pro onestep Recording and editing PerfectScript macros Compile with debug on the macro tools toolbar.
5.
 
Click Save & compile on the macro toolbar.
6.
 
In the PerfectScript compiler listing box, click OK.

Wordperfect Quattro Pro note Recording and editing PerfectScript macros

 
The .wcl file defaults to the same location and name as the .wcm file.

Wordperfect Quattro Pro tip Recording and editing PerfectScript macros

 
You can open the macro tools toolbar in WordPerfect by clicking View Wordperfect Quattro Pro onestep Recording and editing PerfectScript macros Toolbars, and enabling the Macro tools check box in the Toolbar list.

To edit a PerfectScript in the PerfectScript Macro Facilit
y

Wordperfect Quattro Pro btnbacktotopproc Recording and editing PerfectScript macros
1.
 
Click Tools Wordperfect Quattro Pro onestep Recording and editing PerfectScript macros Macro Wordperfect Quattro Pro onestep Recording and editing PerfectScript macros Edit.
2.
 
Choose the drive and folder where the macro is stored.
3.
 
Double-click the filename.

To edit a PerfectScript macro in WordPerfect

Wordperfect Quattro Pro btnbacktotopproc Recording and editing PerfectScript macros
1.
 
On the Windows taskbar, click Start Wordperfect Quattro Pro onestep Recording and editing PerfectScript macros All Programs Wordperfect Quattro Pro onestep Recording and editing PerfectScript macros WordPerfect Office X5 Wordperfect Quattro Pro onestep Recording and editing PerfectScript macros Utilities Wordperfect Quattro Pro onestep Recording and editing PerfectScript macros PerfectScript.
2.
 
Click File Wordperfect Quattro Pro onestep Recording and editing PerfectScript macros Edit.
3.
 
Choose a drive and folder where the file is stored.
4.
 
Double-click a filename.
This starts WordPerfect and displays the macro commands.
5.
 
Edit the macro.

Recording and editing PerfectScript macros