Table of Contents

Macro to Script Converter

Introduction

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:

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.

Disadvantages:

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

What you get

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.

Install

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

More

For details about integration, you can ask on forum.

#plugin