MM4 scripts conversion (VBS->JS)

To discuss development of addons / skins / customization of MediaMonkey.

Moderator: jiri

jiri
Posts: 5340
Joined: Tue Aug 14, 2001 7:00 pm
Location: Czech Republic
Contact:

MM4 scripts conversion (VBS->JS)

Post by jiri » Mon Jan 02, 2017 8:42 am

You can find the very first version of VBS->JS conversion Addon at http://www.mediamonkey.com/beta/convertVBS2JS.mmip.

Technically, the tool uses a set of Regular Expressions to convert VBS code to JavaScript. You can find the rules in vbs2js_conversions.js inside the folder of this addon and so you can update it with fixes needed for your scripts.

Known limitations:
- Uses Regular Expressions, not a full VBS parser and so some language constructs (particularly complex, nested) can be misunderstood and thus converted incorrectly.
- There's an attempt to convert even UI code, but it's very rough, incomplete and rather intended for testing.
- More MM4->MM5 API conversions will be added.

Remember, this is the very first version, please leave us feedback, report missing features, submit your updated Regular Expressions, etc.

This topic is locked, so that you can subscribe it in order to receive updates about this script. Please discuss this script in other threads.

Thanks!
Jiri

jiri
Posts: 5340
Joined: Tue Aug 14, 2001 7:00 pm
Location: Czech Republic
Contact:

Re: MM4 scripts conversion (VBS->JS)

Post by jiri » Wed Jan 04, 2017 11:15 am

There was a new version uploaded, again to http://www.mediamonkey.com/beta/convertVBS2JS.mmip.

It supports much more VBS language constructs and also adds some more MM4 API conversions.

Jiri

jiri
Posts: 5340
Joined: Tue Aug 14, 2001 7:00 pm
Location: Czech Republic
Contact:

Re: MM4 scripts conversion (VBS->JS)

Post by jiri » Mon Jan 30, 2017 10:01 am

You can find the latest update at http://www.mediamonkey.com/beta/convertVBS2JS.mmip.

It has many new features added, more complex scripts were already successfully converted by this version.

Jiri

jiri
Posts: 5340
Joined: Tue Aug 14, 2001 7:00 pm
Location: Czech Republic
Contact:

Re: MM4 scripts conversion (VBS->JS)

Post by jiri » Wed Feb 01, 2017 9:21 am

An updated version was uploaded. It has working 'case' support, better 'loops' support and many other improvements.

Jiri

jiri
Posts: 5340
Joined: Tue Aug 14, 2001 7:00 pm
Location: Czech Republic
Contact:

Re: MM4 scripts conversion (VBS->JS)

Post by jiri » Wed Apr 12, 2017 5:55 am

A new version was uploaded to fix a regression.

Jiri

Locked