Macro to Script Converter

During the design of macro recording in HippoEDIT, it was rather hard to select a format for storing of the macro steps between sessions. It was very tempting to merge the macro serialization language and scripting, but after some thoughts and checks, I have ended up in XML serialization.

Why I did so:

  • when selecting of the scripting language for serialization which to take? HippoEDIT supports several languages: JavaScript, VBScript (by default), PHP, Perl, ActionScript (with additional engines for Active Scripting). Shell, I did a special setting to select a language for storing or ask every time? If I can serialize to known languages, but what to do if would be installed not known scripting language: syntax for every language different?
  • where to serialize between session, should be stored in a workspace, ideally, but then the script should be escaped to be stored as XML CDATA etc.
  • if the script would be modified, how to handle special macro play features (till document end, stop if a search fails). It is rather complex to handle for an ordinary script.

So, because of mentioned problems, I have decided to use XML format for storing of macros. XML serialization is “native” for HippoEDIT, fit good for workspace saving, and XML serialization format does not allow so big flexibility, which can be achieved with scripting, so HE can control macro execution better.

But still I want to have the way to get a script from a macro And this was solved by special Macro Converting script. It can be written in any scripting language, supported by HippoEDIT (Active Scripting) and does translating of stored macro steps into desired scripting language. So, this makes it possible to extend HE with converters in any scripting language, the code is open and can be modified, and the feature can be added only if you need it, by installing script-plugin.


Macro converted to a script, could not be converted back. There are some limitations during conversion from macro to a script.

Macro Conversion to JavaScriptThe plugin adds new command in Macro menu, named Convert to JavaScript… which converts current macro to a script, replacing serialized macro commands by calls of corresponding commands in JavaScript.

You can install plugin directly from HippoEDIT Plugins options page (Tools→Options→Plugins), if you have Online Repository activated or by download plugin bundle directly from this page and open it with HippoEDIT.

Download and Install Macro to Script Converter for HippoEDIT

For details about integration, you can ask on forum.