To give back some of the knowledge I acquired from this forum I have set up a more or less complete demo of the ScriptUI features.
For my project I needed a modeless message function with sound....
The script is contained in a ZIP file with all the ancillary items required. The script is not complete, but may be considered a starter:
I have used these sources
Hope this is of some use.