I'm working on the AveScripter port of most useful thingy from Apple Dashboard. It's a Unit Converter widget, you all know it. There was already one for AveDesk, but it was huge, and to speak true, sometimes it behaves strangely ON MY PC, and also there are invalid constants in the release THAT I HAVE HERE (try to convert 24 hours into days).
This desklet has Plus in its name because I tried to make it very easy to customize the units. You can have as much units and groups as you wish (you'll see some extra units in the Length group), you can have them in your own native language, you can reorder them as you like, you can set up your own conversion constants - they all are stored in XML file (scheme is attached). And the desklet itself is made to show the power of XML data storages and technologies. This work was my very first experiment with the XPaths - and it was successful.
Here's an archive with the latest pre-release I have here. The conversion routine works properly and without any known problems for this moment. Desklet misses the following things yet: currency conversion (I dunno what and into what to convert - haven't seen it in action); time display in Time group; settings and precision(tho the backside and flip are there already); saving the params like current group and units; installer. In all other respects it's a full working desklet. As this is WIP (Work In Progress) thread, not a release, I offer you non-official download of pre-release in RAR package. Of course, you use it on your own risk now ![]()
Download Unit Converter Plus (pre-release) for AveScripter (~155 KB)
Aqua-Soft Forums