XMetaL Tips and Tricks

XMetaL Community Forum XMetaL Tips and Tricks script example: launching XMetaL Author from a browser (Internet Explorer)

  • murray

    script example: launching XMetaL Author from a browser (Internet Explorer)

    Participants 1
    Replies 0
    Last Activity 12 years, 12 months ago

    The attached file contains sample code for launching XMetaL Author from Internet Explorer. The attached zip file contains the following:

    – TestXMetaLLaunchFromBrowser.html
    – testRemoteMacroInvocation.mcr

    TestXMetaLLaunchFromBrowser.html
    ——————————————
    This is an html page that contains a button that launches XMetaL Author, waits until it is initialized, passes some data to XMetaL Author, then launches a macro in XMetaL Author that uses the data.

    testRemoteMacroInvocation.mcr
    ————————————-
    This is an XMetaL macro file containing the macro that is launched from the browser. The macro reads the data passed from the browser and displays it in an alert dialog.

    Installation
    ————-
    1) Unzip the attached zip file.
    2) Copy testRemoteMacroInvocation.mcr to the startup folder in the XMetaL Author installation folder.
    3) Copy TestXMetaLLaunchFromBrowser.html to your file system (or to a web server)

    Operation
    ———–
    1) Open TestXMetaLLaunchFromBrowser.html in Internet Explorer.
    2) Click on the button to Launch XMetaL Author

    After XMetaL Author launches you should see an alert dialog pop up with the message “This string was passed from the web app.”.

    Thanks
    Murray

    Reply

  • You must be logged in to reply to this topic.

Lost Your Password?

Products
Downloads
Support