Jython Macros

Since version 0.5, Venice supports the use of the Jython (http://www.jython.org) scripts to automate the operation of the program. More information and example scripts will be available soon. For the moment, suffice to say that any Java object that can be accessed by Venice source code is fair game for macrofication.

Here's a trivial example of a simple script that displays a progress dialog:

import nz.org.venice.ui.ProgressDialogManager as PM import java.lang.Thread as T p = PM.getProgressDialog() p.setMaximum(10) p.setProgress(0) p.show("performing task"); p.setProgress(6) T.sleep(500); p.setProgress(4) T.sleep(500); p.setProgress(3) T.sleep(500); p.setProgress(9)