Macro guidelines


Standard definition


judat supports some basic macro management. Since all the action in the application are performed by an action engine all the actions are callable from users and external files.

The standard extension of the judat macro file is ".jmac"


An action will be written as:

[ACTIONNAME]:([ACTION_VAL1](:[ACTION_VAL2]...))

and they can be called in the "Perform action" menu item.

Supported actions



ActionValuesDescription
connectConnect to the database (same of pressing the "Connect" button)
setDatabase
  • database (STRING)
  • Try to select the requested database
    setPassword
  • password (STRING)
  • Set a new value in the password passwordfield
    setPort
  • port (INT)
  • Set a new value in the port textfield
    setTable
  • table (STRING)
  • Try to select the requested table
    setUsername
  • username (STRING)
  • Set a new value in the username textfield
    wait
  • time (LONG)
  • Wait a defined milliseconds time

    Example file



    <?xml version="1.0" encoding="UTF-8"?>

    <judat version="1.0">
    <macro version="1.0">
    <info>
    </info>
    <content>
    <!-- Set the database connection-->
    <action name="setPort" value="3306"/>
    <action name="setUsername" value="root"/>
    <action name="setPassword" value=""/>
    <!-- A wait time in MilliSeconds -->
    <action name="wait" value="200"/>
    <action name="connect" value=""/>
    <action name="wait" value="200"/>
    <action name="setDatabase" value="mysql" onNotExists="END_ACTION"/>
    <action name="setTable" value="user" onNotExists="END_ACTION"/>
    </content>
    </macro>
    </judat>
    Copyright © 2005  Rasael Bervini. All rights reserved.
    SourceForge.net Logo