You should probably describe your problem/question better.
If you meant calling a function when someone triggers a button, then use the hook "trigger" or better, use the "usebutton" hook.
@topic No idea what the hell are you talking about, but if I'm right and you want to know how to execute some script on button press, then Yasday answered the question.