Sitemap

Sunday, April 5, 2015

Webcenter Capture: View printIn statements in Java Console

For developing and incorporating scripts, Capture uses the JavaScript script engine included with the Java Runtime Environment. The scripts also writes out a line (printIn) to the java console for each script event, for verification or debugging purposes.

importClass(java.awt.event.KeyEvent);

function ScriptStart() {
   println("ScriptStart");
}

function BatchScanBegin(event) { // BatchScanEvent
   println("BatchScanBegin");
}
...
...
...

To view the printIn statements, go to Control Panel. Click Java --> Advanced tab. Under Java Console, set the property as Show Console. Apply and OK.


No comments:

Post a Comment