thanks for the tips Cookie, I will definatly be making the script shorter, and fixing a few small errors before i even atempt to add custom commands.
On that point, at the moment im using the registry to store a couple of things but I was thinking the best way to store the custom commands would be in either a text or xml file, but how would I go about reading/writing to an external text file from a config window. Any help would be great