Open Source iMacros Scripting Code Creator

Discussions and Tech Support related to automating the iMacros Browser or Internet Explorer from any scripting and programming language, such as VBS (WSH), VBA, VB, Perl, Delphi, C# or C++.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information:CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
der_hannes
Posts: 25
Joined: Sat Aug 01, 2009 11:18 am

Open Source iMacros Scripting Code Creator

Post by der_hannes » Sat Aug 01, 2009 6:02 pm

-----
Update (2011-09-26): This project is discontinued, cf. http://forum.iopus.com/viewtopic.php?f= ... 230#p41230
-----


The iMacros Script Code Creator converts your iMacros macros into some scripting/programming language's code and vice versa.
iMacros Code Creator (v.0.0.16).png
iMacros Code Creator v.0.0.16 on Win7
Supported macro-to-code conversions (both by-click and while-you-type):
- Macro <--> VBS string
- Macro <--> VB function
- Macro <--> JavaScript string (Useful for Firefox scripting)
- Macro <--> C# string
- Macro <--> Java string
- Macro <--> Php string

Additional utilities
- New! Convert macros and Javascript to URL for iMacros' Social Scripting feature
- iMacros string converter (replace blank spaces by <SP> and newlines by <BR>)
- code samples + links to online samples
- online update check: check for new releases by a single click

Feel invited to
- download the iMacros Scripting Code Creator from SourceForge
- view/get the sources from our Git repository
- send your comments / bug reports / patches via the project's Trac system


[Edit:2009/09/17: Completely rewritten, screenshot updated]
[Edit:2009/09/14: Screenshot updated]
[Edit 2009/08/15: Added screenshot]
[Edit 2009/08/02: Changed Subject]
[Edit:2010/01/19: Screenshot updates to 0.0.11]
[Edit:2010/01/23: Description + screenshot updated to 0.0.12]
[Edit:2010/03/24: Description + screenshot updated to 0.0.13]
[Edit:2010/06/16: Descripting + screenshot updated to 0.0.14]
[Edit:2010/09/28: Screenshot now 0.0.16]
[Edit:2011/09/26: Discontinuation notice]
Last edited by der_hannes on Mon Sep 26, 2011 8:43 am, edited 13 times in total.
der_hannes
Posts: 25
Joined: Sat Aug 01, 2009 11:18 am

Version 0.0.4 released

Post by der_hannes » Sun Aug 02, 2009 8:01 am

New release 0.0.4 now supports converting macros to and from:
- VBS string
- VB function
- JavaScript string (NEW! Useful for Firefox scripting under Windows and Linux)

Download here: http://sourceforge.net/projects/imacros-codegen/files/

P.S.: If you are interested in new releases, you may either subscribe to this thread ("SUBSCRIBE TOPIC" below), or add the SourceForge file-release RSS feed to your news reader: http://sourceforge.net/api/file/index/p ... 269370/rss
der_hannes
Posts: 25
Joined: Sat Aug 01, 2009 11:18 am

Version 0.0.5 released

Post by der_hannes » Mon Aug 03, 2009 8:36 pm

New release 0.0.5 now supports converting macros to and from:
- VBS string
- VB function
- JavaScript string (Useful for Firefox scripting)
- C# string (New!)

Download at: http://sourceforge.net/projects/imacros-codegen/files/

[Edit: Added download link]
der_hannes
Posts: 25
Joined: Sat Aug 01, 2009 11:18 am

Version 0.0.6 released (with Java support)

Post by der_hannes » Tue Aug 04, 2009 7:02 am

New release 0.0.6 supports the following code conversions
- Macro <--> VBS string
- Macro <--> VB function
- Macro <--> JavaScript string (Useful for Firefox scripting)
- Macro <--> C# string
- Macro <--> Java string (NEW!)

Download at: http://sourceforge.net/projects/imacros-codegen/files/
der_hannes
Posts: 25
Joined: Sat Aug 01, 2009 11:18 am

Stable version 0.0.7 released (enhanced user interface)

Post by der_hannes » Wed Aug 05, 2009 3:05 pm

Download at http://sourceforge.net/projects/imacros-codegen/files/

New:
- Enhanced UI that allows resizing the window
- VBS code sample

Supported conversions:
- Macro <--> VBS string
- Macro <--> VB function
- Macro <--> JavaScript string (Useful for Firefox scripting)
- Macro <--> C# string
- Macro <--> Java string

Please post your comments / bug reports / feature requests in the project's Trac ticket system at http://sourceforge.net/apps/trac/imacro ... /WikiStart
der_hannes
Posts: 25
Joined: Sat Aug 01, 2009 11:18 am

Stable version 0.0.8 releases (UI changes)

Post by der_hannes » Sat Aug 15, 2009 8:32 am

Download at http://sourceforge.net/projects/imacros-codegen/files/

New:
- Moved conversion buttons to corresponding text fields (misclicking should now be avoided)

Supported conversions:
- Macro <--> VBS string
- Macro <--> VB function
- Macro <--> JavaScript string (Useful for Firefox scripting)
- Macro <--> C# string
- Macro <--> Java string

Please post your comments / bug reports / feature requests in the project's Trac ticket system at http://sourceforge.net/apps/trac/imacro ... /WikiStart

[Edit: 2009.09.17 - Removed screenshot]
Last edited by der_hannes on Thu Sep 17, 2009 7:25 am, edited 1 time in total.
der_hannes
Posts: 25
Joined: Sat Aug 01, 2009 11:18 am

Stable version 0.0.10 released (Php support)

Post by der_hannes » Thu Sep 17, 2009 7:24 am

Download at http://sourceforge.net/projects/imacros-codegen/files/

New:
- Php string support
- UI shows selected codestyle
icc-win.png
iMacros Script Code Creator on Windows System
icc-win.png (15 KiB) Viewed 32563 times
Supported conversions:
- Macro <--> VBS string
- Macro <--> VB function
- Macro <--> JavaScript string (Useful for Firefox scripting)
- Macro <--> C# string
- Macro <--> Java string
- Macro <--> Php string (new!)

Please post your comments / bug reports / feature requests in the project's Trac ticket system at http://sourceforge.net/apps/trac/imacros-codegen
ABooth
Posts: 223
Joined: Mon Aug 10, 2009 4:25 pm

Re: Open Source iMacros Scripting Code Creator

Post by ABooth » Fri Sep 18, 2009 2:17 pm

Not to be critical of your work (I'm sure it's a great time saver), but wouldn't it be more efficient to create a framework component to act like an API, rather than parsing to text?

In other words, something like this: -

Code: Select all

'Declare variables
Dim scriptApi, messageOfTheDay

'Create a COM object instance
Set scriptApi = CreateObject("imacros.ScriptGenerator")

scriptApi.GoToUrl "www.google.com"
scriptApi.Wait  5

If scriptApi.setValue("username", "MyUserAccountId", scriptApi.Entities.TextBox) Then

    scriptApi.Click "submit", scriptApi.Entities.Button
    messageOfTheDay = scriptApi.GetValue("message", scriptApi.Attributes.Value)

    If "" <> messageOfTheDay Then
        MsgBox "The message of the day is: '" + messageOfTheDay
    End If

Else
    MsgBox "Couldn't log in"
End If
This example uses a COM (Interop) object and each method call executes a 1 line macro script. As a user, you wouldn't care what the imacro syntax is and you wouldn't need to generate a static script, parsed into VB strings.

Just a thought.
iMacros for Firefox supports JavaScript Macros (Scripting)
JavaScript supports Java via LiveConnect

Therefore: You can write powerful macros with iMacros for Firefox. Have a look at this one

Post feature requests here. Maybe one day, they'll pin it?
der_hannes
Posts: 25
Joined: Sat Aug 01, 2009 11:18 am

Re: Open Source iMacros Scripting Code Creator

Post by der_hannes » Tue Jan 19, 2010 8:59 am

I'm sorry, but I don't get the point.

The "translation software" would be put into a COM object, and then ... I'm lost.
You directly access that COM object in your scripts? Is that the point?

(Did not get a notification on this topic, so I did not see your post more early, sorry.)
der_hannes
Posts: 25
Joined: Sat Aug 01, 2009 11:18 am

Stable version 0.0.11 released (utilities tabs)

Post by der_hannes » Tue Jan 19, 2010 9:17 am

Download at http://sourceforge.net/projects/imacros-codegen/files/

New: Utilities tabs
- sample code
- links to online samples
- string converter replacing blanks by <SP> and newlines by <BR>
icc-win.png
iMacros Scripting Code Creator v0.0.11 running on Windows 7
icc-win.png (39.4 KiB) Viewed 31754 times
Supported conversions:
- Macro <--> VBS string
- Macro <--> VB function
- Macro <--> JavaScript string (Useful for Firefox scripting)
- Macro <--> C# string
- Macro <--> Java string
- Macro <--> Php string

Please post your comments / bug reports / feature requests in the project's Trac ticket system at http://sourceforge.net/apps/trac/imacros-codegen
der_hannes
Posts: 25
Joined: Sat Aug 01, 2009 11:18 am

Stable version 0.0.12 released (online update check)

Post by der_hannes » Sat Jan 23, 2010 12:57 pm

Download at http://sourceforge.net/projects/imacros-codegen/files/

New feature:
- online update check: check for new releases by a single click

Get more information or post your comments / bug reports / feature requests in the project's trac ticket system at http://sourceforge.net/apps/trac/imacros-codegen
der_hannes
Posts: 25
Joined: Sat Aug 01, 2009 11:18 am

New Stable release 0.0.13 (instant conversion)

Post by der_hannes » Wed Mar 24, 2010 7:50 pm

Download at http://sourceforge.net/projects/imacros-codegen/files/

New feature:
- Instant Conversion: code is converted right while you're typing (if enabled). Both, macro to code and code to macro.

Get more information or post your comments / bug reports / feature requests in the project's trac ticket system at http://sourceforge.net/apps/trac/imacros-codegen
der_hannes
Posts: 25
Joined: Sat Aug 01, 2009 11:18 am

New Stable release 0.0.14 (URL encoding)

Post by der_hannes » Thu Jun 17, 2010 6:48 am

New feature:
- URL encoding: convert your macro or Javascript to a (base64 encoded) URL that others can simply copy and paste (or click) to run your macro. iMacros calls this Social Scripting.

Download at http://sourceforge.net/projects/imacros-codegen/files/

Get more information or post your comments / bug reports / feature requests in the project's trac ticket system at h[url]ttp://sourceforge.net/apps/trac/imacros-codegen[/url]
potatoer
Posts: 20
Joined: Sun Mar 21, 2010 4:28 am

Re: Open Source iMacros Scripting Code Creator

Post by potatoer » Tue Jul 20, 2010 5:07 pm

I find it very useful. Thanks for sharing :D
der_hannes
Posts: 25
Joined: Sat Aug 01, 2009 11:18 am

Re: Open Source iMacros Scripting Code Creator

Post by der_hannes » Wed Jul 21, 2010 5:16 am

Thank you for the feedback!
If you have any feature proposals, bug reports, or anything else related to the code creator, don't hesitate to tell us at http://sourceforge.net/apps/trac/imacro ... /newticket
Post Reply