treer Posted October 27, 2004 Report Share Posted October 27, 2004 i have a macro called "juice", i need for "juice" to run from a javascript, is this attainable? Quote Link to comment Share on other sites More sharing options...
joe Posted October 27, 2004 Report Share Posted October 27, 2004 Welcome to the forum! Take a look at this thread Hyperlink to a Macro. It may point you in the right direction. Quote Link to comment Share on other sites More sharing options...
treer Posted October 27, 2004 Author Report Share Posted October 27, 2004 thanks for the interest joe, the link was a little help, has I now have the macro in the same folder as my javascript, but still cannot figure how to make the script run the macro Quote Link to comment Share on other sites More sharing options...
kevin Posted October 28, 2004 Report Share Posted October 28, 2004 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.