Writing URScript for Custom GUI button

In case you are still after a sample, or for anyone looking through this thread in the future, there is a sample cap that you should find helpful here