I have a simple script that copies the current mask selection, then
creates a new document, then pastes into the new document.
Unfortunately it seems that during recording, it uses the command
EditPasteObject, and specifies a particular temporary file to paste
in, no doubt the one that it used during recording.
How do I get it to paste in the most recently copied object? I am
using Corel Photo-Paint 8.
Thanks
Michael
Ah! I think I figured it out. Just don't specify the file name, and it
takes the top item from the clipboard.
New question.
The script I have is:
WITHOBJECT "CorelPhotoPaint.Automation.8"
.EditCopy
.FileNew 59, 58, 1, 72, 72, FALSE, FALSE, 1, 0, 0, 0, 0, 255, 255,
255, 0, FALSE
.EditPasteObject 0, 57, ""
.ImageResample 30, 30, 72, 72, TRUE
END WITHOBJECT
I am repeatedly, manually, placing a mask over square regions of an
image, then running the script, then selecting a new region, etc.
Problem is, every time I run the script from the script docker, it
brings the original image to the top left corner, and I have to find
my place again to get the next region. If I run it from the script
editor it doesn't do this, so I can't tell which statement is causing
this behavior. Much of the advantage of the automation is lost if I
have to go searching for where I left off after each iteration.
Any suggestions?
Thanks
Michael