The iMacros Script Code Creator converts your iMacros macros into some scripting/programming language's code and vice versa.
For more information on the iMacros Scripting Code Creator (created by an iMacros user!) please see this forum post. The forum post is updated regularily.
We (the iMacros team) use this tool often and love it!
You can also use the macro conversion functionality built into the iMacros Editor included with the business iMacros editions (from the editor's File menu).