Page 1 of 1

Writing Zeus Macros Using Object REXX

Posted: Sun Mar 18, 2012 7:33 am
by jussij
Since the Object REXX implements the Windows Scripting Host interface, this means it is also possible to write Zeus macros using the Object REXX language.

To setup Zeus for Object REXX scripting do the following:
  1. Make sure you are running the latest version of Zeus
  2. Download the Object REXX Version 3.20 installer.

    NOTE: Only Object REXX Version 3.20 version supports WSH and later versions no longer support WSH.
  3. Save this test macro to the c:\temp\test.rex location

    Code: Select all

    call key_macro /* run the macro */
    return
    
    key_macro: procedure
        screen_update_disable()
        FileNew()
        write("This is a Object REXX macro script........\n")
        screen_update_enable()
        screen_update()
    return
  4. To run the test macro use Macros, Execute Script menu and type in c:\temp\test.rex
If all goes to plan the macro will create a new document window and the line of text will be added to the document.

Cheers Jussi