Member since Feb 2003 ·
2700 posts · Location: Germany
Group memberships: Administrators, Members
Hi Stuart,
sorry but we have no examples. Ad Hoc commands are desribed very well here in the XEP-0050: Ad-Hoc Commands.
Ad hoc commands are pretty simple to understand. They are used for wizard style interfaces with one ore more steps (Previous, Next, Finish). Each page of the wizard contains a data form. You can use this with a UI and of course also without UI where your code processes the steps.
The Psi client impements the Ad-hoc-commands very well. As a start you could setup a server which implements server configuration (eg. ejabberd, tigase and others) with commands and use the Psi client to execute them.
If you want to implement Commands with UI then you should download the MatriX.Ui.Zip package from here http://www.ag-software.de/download-directory/
This is a set of classes which build the Ui from xdata forms and allows you to submit the values.
When you have specific questions then please post them in detail. I try my best to answer them and post code snippets when requested for a specific use case.
Alex
Alexander Gnauck
AG-Software