Automate Java Applications (jEdit)

Using Automa it is possible to automate Java applications (for instance using Swing, AWT or SWT). Below is an example script of Automa being used to automate the Java-based text editor jEdit. To run the example for yourself, you need the Java Runtime Environment version 7u6 or higher and jEdit. Please also configure your Java Runtime Environment as outlined in our documentation.

start("jEdit")
if Window("Tip of the Day").exists():
    switch_to(Window("Tip of the Day"))
    click("Close")
 
click("File", "New")
write("Hello World!")
press(CTRL + 's')
write("C:\\", into="Path")
press(ENTER)
write("HelloWorld.txt", into="File name")
click("Save")
click("File", "Exit")
jEdit.at