XRNS Script Frontend 1.06

Developed by Alexander Stoica 2007 - 2008

License: Public Domain

Use info@beatslaughter.de for feedback or bug reports.


What is it?

XRNS Script Frontend can be used, to provide a graphical user interface for command line scripts written in PHP on the windows operating system.

How does it work?

The frontend includes a stripped down version of the PHP scripting language, which is known for easy XML programming and is widely used. It's also possible to use external command line tools without requiring the user to copy them somewhere into a known path. Each script has a small config file, which defines how the GUI should be build and also holds some other infos. A more in depth look at this file will follow shortly.

The folder "php" holds the PHP commandline interpreter and a windows batch file, which allows one to generate a phpinfo.txt, which might be of help when developing own scripts. Any additional scripts go into the "scripts" folder with their corresponding config file. If a script relies on any extra command line tools, one should put them into the "utils" folder.

Since version 1.02 there are no scripts included anymore. Instead you can download these from the SourceForge download page.

Alternatively you can download work in progress versions of the scripts. Simply start the file "get_cvs_dev_version_scripts.cmd" and it will download these from the SourceForge page.

Warning! These are work in progress and probably unstable, use at your own risk.

Script configuration file format reference

The script configuration files are just normal *.ini files widely used by other software too. You should name the configuration file using the same basename as your script. For example, if the script is named "yourscript.php", the configuration file should be named "yourscript.cfg".

The first line should always be the name of the section.


The following keys are used to provide general information about the script and are self explaining.

caption=Name of the script
author=Coded by John Doe.
description=Short description, what your script does.

The "gui" key specifies, how the interface will be created. It accepts simple keywords, which are translated by the frontend. The order of the keywords is important, since all the information the user selects gets passed in that order as commandline parameters to the PHP script. Mutliple keywords need to be separated by a semicolon ";".

Following the tradition of the first example in other programming languages, here is a simple label showing "Hello world". The "label" keyword is used to place additional descriptions on the interface for the user. The text needs to be enclosed by round brackets "()".

gui=label(Hello world)

The "text" keyword can be used to request any type of text to be passed to the script. If you specify the keyword with optional round brackets "()", one can set a default text show in the textfield.

gui=text(default text)

The "clipboard" keyword will pass the clipboard contents to the script through a temporary file. The script is responsible for writing back the modified data to this file. When the script has finished executing, the contents of that temporary file will be shown in the textbox on the interface.


The "folder" keyword allows the user to browse for a folder. The chosen path will then be passed to the script.


The "file" keyword allows the user to browse for a file to open. The chosen file will then be passed to the script. This keyword is usually used to select a source file.


It's also possible to specify extensions, including a default one, which will be used when the user leaves the extension blank when entering or selecting a filename in the file chooser dialog. All extensions are enclosed in round brackets "()" and each extension will be separated by a comma ",". Prepend a "def:" to the extension, which one wants to define as default.

gui=file(def:xrns, xrni, zip)

The keyword "output" behaves nearly like the "file" keyword with some exceptions. The current directory will be set to the path of this file, similar like the user has called the PHP interpreter from this location. This keyword is usually used to select a destination file.

gui=output(def:xrns, xrni, zip)

The last keywords are "options" and "dropindex". They are used to display a combobox, where one can choose one of multiple options. It's also possible to define a default selected entry. Since version 1.06:

gui=options(1, 2, def:3, 4, 5, 6, 7, 8, 9, 10); dropindex(low, def:med, hi, super)

As a summary, here is an example of how a complete configuration file looks like.

caption=Name of the script
author=Coded by John Doe.
description=Short description, what your script does.
gui=label(Select an option:); options(1, 2, def:3, 4, 5, 6, 7, 8, 9, 10)

Thanks and Credits

This product includes PHP software, freely available from:

Xiph.Org Foundation for the flac and ogg encoder/decoder utilities.

Info-ZIP Workgroup for the zip and unzip utilities.

gnu.org for the CVS command line utility.

Pelle Orinius for his excellent C programming IDE and compiler.

Dac Chartrand for his original idea.

Marvin Tjon for some extra features added in Version 1.06


Version 1.06 (03/16/2008)
Version 1.05 (11/07/2007)
Version 1.04 (09/08/2007)
Version 1.03 (08/31/2007)
Version 1.02 (08/29/2007)
Version 1.01 (08/19/2007)
Version 1.0 (08/13/2007)