Skip to content
griefsong edited this page Dec 25, 2015 · 5 revisions

Script Examples

The ScriptConsole supports any language that conforms to JSR 223.

This page shows some simple example of creating a popup window in a selection of the supported languages.

You can cut-and-paste these directly into the console:

ECMAScript / JavaScript (built in, Rhino engine)

importPackage(org.parosproxy.paros.view);
View.getSingleton().showMessageDialog("Hello world!");

ECMAScript / JavaScript (build in, Oracle Nashorn engine)

Java.type('org.parosproxy.paros.view.View').getSingleton().showMessageDialog('Hello world!');
org.parosproxy.paros.view.View.getSingleton().showMessageDialog("Hello world!");
from org.parosproxy.paros.view import View
View.getSingleton().showMessageDialog("Hello world!")
require 'java'
org.parosproxy.paros.view.View.getSingleton().showMessageDialog("Hello world!");

Links:

Clone this wiki locally