Home Forums General XMetaL Discussion I wann to know whether xmetal support javascript for macro. Reply To: I wann to know whether xmetal support javascript for macro.

Derek Read

Reply to: I wann to know whether xmetal support javascript for macro.

JScript is supported. Many people consider JScript, JavaScript and ECMAScript so similar they are virtually interchangeable (and for most purposes they practically are). So in that sense the answer you are looking for is probably 'yes'. However, it is not really the scripting language that is important for XMetaL Author, it is whether a scripting engine is available. A scripting engine is what actually executes the scripts you write.

Both a JScript and VBScript engine are installed and available on Windows by default and both can be used with XMetaL Author. The advantage here is that no further software need be installed. Microsoft calls the software that manages engines (including JScript and VBScript but also including others) the “[url=http://msdn.microsoft.com/en-us/library/shzd7dy4(v=VS.85).aspx]Windows Script Host[/url]”. Other engines are available for other languages, but these must be installed separately as they do not come from Microsoft (Perl and Python are examples) and are provided by 3rd parties.

For JScript and VBScript examples, you may wish to see XMetaL Developer. You will also need to know which APIs are available to call (about 1000+ APIs are provided to allow your scripts to control many aspects of XMetaL Author) and these are documented in the Programmers Guide that comes with XMetaL Developer. XMetaL Author itself includes many script examples, which are organized into files with a *.mcr file extension. You can also [url=http://forums.XMetaL.com/index.php?action=search]search this forum[/url] for examples as there are quite a few here. However, you won't find them searching for “javascript”, search for “jscript”.

Reply

Products
Downloads
Support