XMetaL Tips and Tricks
XMetaL Community Forum › XMetaL Tips and Tricks › script example: launching XMetaL Author from a browser (Internet Explorer)
-
murray December 8, 2009 at 11:54 pm
script example: launching XMetaL Author from a browser (Internet Explorer)
December 8, 2009 at 11:54 pmParticipants 1Replies 0Last Activity 13 years, 3 months agoThe attached file contains sample code for launching XMetaL Author from Internet Explorer. The attached zip file contains the following:
– TestXMetaLLaunchFromBrowser.html
– testRemoteMacroInvocation.mcrTestXMetaLLaunchFromBrowser.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 AuthorAfter XMetaL Author launches you should see an alert dialog pop up with the message “This string was passed from the web app.”.
Thanks
Murray -
AuthorPosts
- You must be logged in to reply to this topic.