Sample Java wrapper for macro code.
Use JavaScript instead of Macro for AutoRun.