Hardware manual

Impact Reference Guide Scriptor
4-115 Datalogic Automation Inc.
Scriptor
NOTE: Teaching you how to create a Java program is beyond the scope of this manual. This section
describes the commands, properties, methods, and events available in the Scriptor control, but not how to
implement them in Java code. For more information on Java programming, refer to Java programming
guides.
The scriptor only supports string types. You will need to cast them to use them as a different type, for exam-
ple
int myvar = new Integer(Scriptor.getProperty("Full Tool Path")).intValue();
The Scriptor control provides a way to write Java (not JavaScript) Control Panel commands and apply them
to a running Control Panel Application. Control panel application designers can create scripts that connect to
an Impact device, wait for the connection to complete, set and get other control properties, and call methods.
The script can also run when CPM Runtime is started. See “Run a script with CPM Runtime” on page 4-121
for details.
Warn On Over-
write
If True, a confirmation dialog is displayed when you try to save a file that
already exists.
Warn on Save As If True, a confirmation dialog is displayed when a file is saved with a dif-
ferent name.
File Format XML: The file is saved in uncompressed format as XML.
Compressed: The file is saved in compressed binary format (resulting in
a much smaller file size).
Method Name What it does
Save Program Saves the vision program.
Event Name When it happens
Save Started When the vision program files begin saving.
Save Completed When all the vision program files have finished saving.
Property Name What it is