...when this button is a clicked a script runs...
It sound like you already intercept this Button clicks. Why don't you set a flag to true at this point and then check itlater in the event handler of one of the "onSave..." Events?
i just wanted to make sure if by any chance there is a way which we can learn if any button is been clicked just as we do from Save, Finish buttons etc