Jump to content
Macro Express Forums

Entering Data Via Direct Editor


ohbej

Recommended Posts

Due to complexity I've created a vbScript that creates a text file containing all the scripting needed to complete a process. I then manually copy the data from the text file and paste it into the Direct Editor screen, and then execute the macro in Macro Express 3.7d. The macro works great, just looking for a solution to eliminate the manual process of having to copy and paste the script from the text file to Direct Editor screen of Marco Express.

 

My goal is to create a scheduled process of executing the vbScript and then the Marco Express macro.

 

Thanks for any suggestions.

Link to comment
Share on other sites

For which part of this process do you need suggestions? None of this looks particularly difficult - as a last resort you could record the keystrokes you use when you do this manually. My advice is always to use menus if possible, e.g. to invoke the direct editor you could locate the icon and click on it, or (in Macro Express Pro) you can use the menu option View.

 

I have written many macros that manipulate Macro Express itself, and most of these have been relatively straight-forward.

Link to comment
Share on other sites

Paul -

 

Thanks for the reply. Sorry, should have been more clear in what I was hoping to accomplish.

 

Looking for a way to have Macro Express read a text file for the script portion of the Marco (i.e. what is entered into the Direct Editor).

 

Current Steps in My Process:

1. Execute vbScript, that creates Macro Express scripting language in a text file

2. Manually open text file, select all, copy, and close text file

3. Switch to Macro Express, open the Direct Editor window, and paste contents of text file

4. Ctrl-B (hot keys) to start Macro Express macro

 

New Process I'd Like:

1. Execute vbScript, that creates Macro Express scripting language in a text file

2. Execute schedule Macro Express macro which reads script from text file and executes macro

 

Thanks Again!

Link to comment
Share on other sites

Have you thought about loading the ME macro into a variable and using the Run Macro In Variable command? In ME3, this command works exceedingly well, whereas be warned that it's almost completely useless in ME4 (ME Pro) because Insight never thought about the design of this feature and forgor to implement user variables correctly in this feature!

 

I have loaded variables and run macros from them of considerable length and complexity in ME3 with great success.

Link to comment
Share on other sites

I would try the Load Macro Text File command. Have your vbscript write to a text file. Create a macro that does not change and contains the Load Macro Text File command. Set it to run the macro in the text file created by your vbscript. The macro can be activated either via a hotkey or by calling meproc.exe with a /aTextMacro parameter.

 

This would be much faster and more reliable than using the Direct Editor user interface.

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...