The '0' come from the sendmassage commands, you can suppress these like this:
$ret = sendmessage(....)
Also the MessageBox function return a '0' so to suppress these the command looks like this:
$ret = messagebox(...)

------------------
Lon Geefshuysen,
www.xs4all.nl/~longeef/NT/KiXtart
lon_geefshuysen@essentium.com