Hello,
I had some free time on my hands today, and decided to start coding a new action plugin. Here is the first release, very simple at this point (it may get some enhancements in the future - or not), but I think that it can help in a few cases.
With this free action plugin, you will be able to import any Unicode or UTF-8 encoded text files into a string, which allows you to then process the information further using the Lua scripting engine. At the same time, the plugin allows you to save a string as a new Unicode or UTF-8 encoded text file.
There are currently just two functions:
Unicode.ReadToString(string Filename, string Encoding) and
Unicode.WriteFromString(string Filename, string Text, string Encoding)
Using the plugin, you may be able to read a Unicode text file directly, without having to convert it first with an external program, saving the converted file to disk and finally reading it into AutoPlay Media Studio (or Setup Factory, TrueUpdate or Visual Patch). The Unicode or UTF-8 encoded file will be converted into a ANSI (Latin-1) encoded string. Depending on the feedback, I might be going to add Unicode.ReadToTable(string Filename, string Encoding) and Unicode.WriteFromTable(string Filename, string Text, string Encoding) actions later, so the plugin would work similar to the standard TextFile actions.
Here is the screen from the example project:

The plugin and example project can be downloaded from my AMS page.
Ulrich
I had some free time on my hands today, and decided to start coding a new action plugin. Here is the first release, very simple at this point (it may get some enhancements in the future - or not), but I think that it can help in a few cases.
With this free action plugin, you will be able to import any Unicode or UTF-8 encoded text files into a string, which allows you to then process the information further using the Lua scripting engine. At the same time, the plugin allows you to save a string as a new Unicode or UTF-8 encoded text file.
There are currently just two functions:
Unicode.ReadToString(string Filename, string Encoding) and
Unicode.WriteFromString(string Filename, string Text, string Encoding)
Using the plugin, you may be able to read a Unicode text file directly, without having to convert it first with an external program, saving the converted file to disk and finally reading it into AutoPlay Media Studio (or Setup Factory, TrueUpdate or Visual Patch). The Unicode or UTF-8 encoded file will be converted into a ANSI (Latin-1) encoded string. Depending on the feedback, I might be going to add Unicode.ReadToTable(string Filename, string Encoding) and Unicode.WriteFromTable(string Filename, string Text, string Encoding) actions later, so the plugin would work similar to the standard TextFile actions.
Here is the screen from the example project:

The plugin and example project can be downloaded from my AMS page.
Ulrich
Comment