Quick links to procedures on this page:

 
 


Recording and saving scripts

You can record a sequence of most keyboard, toolbar, toolbox, menu, and mouse operations. For example, if you have a series of images that are underexposed, you can record the corrective adjustments as you apply them to the first photograph. You can then play the recording on all the remaining photographs to correct them simultaneously. As you record, the operations are translated into command statements that appear chronologically in a command list. Each command statement is one word that is based on the name of a menu plus the name of a command found in that menu.

Some operations are converted to parameters that are embedded within a command. Parameters are recorded, but they are not displayed in the command list. For example, if you choose a paint color and apply a brushstroke to the image, the color selection is not displayed in the recorder’s command list; instead, it is recorded as a parameter of the paint tool command.

The following operations and commands cannot be recorded in Corel PHOTO-PAINT:

 
toolbar, keyboard, and menu customization
 
grid, ruler, and guideline customization
 
Window and Help menu commands
 
image calculations and image stitching
 
viewing operations, such as zooming


Saving a recording as a script

To make a recording accessible in a future Corel PHOTO-PAINT session, you must save it as a script. The scripts that you create can be loaded and played at any time.


Saving an Undo list as a script

You can also save a list of Undo actions as a script. For example, if you did not record the actions for an effect that you want to reproduce, you can save those operations as a script by using the Undo list. A script created from an Undo list includes all the operations you perform on an image; therefore, you may need to edit the script to isolate the commands you want. For information about editing scripts, see “Editing recordings and scripts.”


To create a recording or a script

Photo Paint btnbacktotop Recording and saving scripts
1.
 
Click Window Photo Paint onestep Recording and saving scripts Dockers Photo Paint onestep Recording and saving scripts Recorder.
2.
 
Click the New button Photo Paint pgx new script Recording and saving scripts in the Recorder docker.
3.
 
Click the Record button Photo Paint pgx record script button Recording and saving scripts .
4.
 
Perform the actions that you want to record.
5.
 
Click the Stop button Photo Paint pgx stop button Recording and saving scripts .
The recording is now complete and can be played in the current session.
To save the recording as a script for future use, click the Save button Photo Paint pgx save button Recording and saving scripts , choose the drive and folder where you want to save the script, and type a filename in the File name box.

Photo Paint tip Recording and saving scripts

 
If a document-saving command is the first action in a recording, you can restore the original image by returning to the first command in the recording.

To save the Undo list as a script

Photo Paint btnbacktotop Recording and saving scripts
1.
 
Click Windows Photo Paint onestep Recording and saving scripts Dockers Photo Paint onestep Recording and saving scripts Undo.
2.
 
Click the Save script file as button. in the Undo docker.
3.
 
In the Save recording dialog box, choose the drive and folder where you want to save the script.
4.
 
Type a filename in the File name box.

Recording and saving scripts