As of version 1.1 all four programs comprising the HTML-Heaven suite now offer an ARexx Host. The name of the host is found in the requester shown when the 'info' menu item is selected. On their first invocation the programs use the following Rexx Hosts:
HTML-Genie GENIE1 - Subsequent hosts: GENIEx (where x is a number) HTML-Helper HELPER1 - Subsequent hosts: HELPERx (where x is a number) HTML-Wizard WIZARD1 - Subsequent hosts: WIZARDx (where x is a number) HTML-Genie TOOLKIT1 - Subsequent hosts: TOOLKITx (where x is a number)
So one can operate multiple invocations of one program. Each will have its own unique ARexx Host.
Supported Commands:
HELP ON - Switch on-line help mode on. HELP OFF - Switch on-line help mode off. EDIT ON - Switch Tag Edit mode on. EDIT OFF - Switch Tag Edit mode off. HTMLCASE UPPER - Output all HTML tags in uppercase. Eg. <BR> HTMLCASE LOWER - Output all HTML tags in lowercase. Eg. <br> WINDOW ACTIVATE - Activate the window. WINDOW MOVE xval yval - Move the window. Always specify both the x and y values. Eg. WINDOW MOVE 0 10. WINDOW BACK - Push the window back. WINDOW FRONT - Bring the window back to the front. WINDOW POSITION - Returns the window x and y position as well as it's width and height. Eg. '10 200 566 89' QUIT - End the program.
Here are a few examples on how to send commands from eg the cli.
To set help mode to on for HTML-Genie:
rx 'ADDRESS GENIE1 HELP ON'
To move HTML-Wizard's window to front:
rx 'ADDRESS WIZARD1 WINDOW FRONT'
To move ToolKit's window 50 pixels to the right and 10 down:
rx 'ADDRESS TOOLKIT1 WINDOW MOVE 50 10'
And to end HTML-Helper:
rx 'ADDRESS HELPER1 QUIT'
Finally a small script to get HTML-Wizard's window position:
The programs do send return codes that can be evaluated by your rexx script to determine if the command was succesful.
/* Get Window position */ options results ADDRESS WIZARD1 WINDOW POSITION say 'HTML-Wizard's position is '||result exit
Back to the index.