Et voila ... the calculator is ready to be scripted. You may consult the complete source code of the application here.
We can verify that the application can be scripted by typing the following command from the command line once we have started the calculator application:
We can get a list of the targetable widgets of the window named "calc":
We can then simply change the value of the distance ran by doing:

Although the value in the widget has changed, the message that is supposed to be sent by the widget to the window hasn't been cast away. We need to enforce this by scripting the user's action. This is done by the following command:
We can now set a value for the weight and invoke the widget in the same call to yo:

Finally, we are going to invoke the compute button widget, as though the user just clicked on it:

If we want, we can retreive the text displayed by the result widget:
We can put together all these commands in a simple shell script, to compute and retreive the calories burned for a series of different weights for the distance of 42 kms:
The resulting script gives us:
Using the building blocks provided by the Zinzala SDK, we are able to assemble an application with relative ease. The simplicity and power of the API gives developers of all levels the possibility of creating innovative solutions for the QNX platform.
The built-in support for scripting expands the user's experience in ways which are not forseen by the developers. Applications can be bent, within certain limits, to better suit the user's needs and usage.
The SDK should be available to third-party developers in a few months, for x86 and StrongARM architectures.