Writing Zeus Macros Using Object REXX

Find Tips and tricks on how to better use the Zeus IDE. Feel free to post your own tips but please do not post bug reports, feature requests or questions here.
Post Reply
jussij
Site Admin
Posts: 2458
Joined: Fri Aug 13, 2004 5:10 pm

Writing Zeus Macros Using Object REXX

Post by jussij » Sun Mar 18, 2012 7:33 am

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

Post Reply
kuchnie warszawa opinie

Who is online

Users browsing this forum: No registered users and 3 guests