Jump to content
Macro Express Forums

Call Macro From Javascript


treer

Recommended Posts

The example referred to is an example of how to run an executable file from javascript. The Macro Express help gives examples of how to run a macro via a call to the Macro Express player.

 

Try putting one of these in the javascript example for the application:

    macexp.exe /ANameOfMacroToRun
or
   meproc.exe /ANameOfMacroToRun

Calling meproc.exe is a little faster if Macro Express is already loaded. You may need to include the path to the executable program:

     "c:\Program Files\Macro Express3\meproc.exe /ANameOfMacroToRun"

Another option is to create a playable macro and have the javascript 'run' it. If, for example, your playable macro is named MacroToRun.mxe, then put 'MacroToRun.mxe' where the sample javascript expects the application executable.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...