Hi Robert,
Have you considered calling the "action" in your own code (popup menu), Rather than hide the buttons and then programatically click them?
Certain internal NT actions are relatively simple (some are not), so it might depend upon what actions you are trying to perform.
Add,Change,Delete and View either as whole pages or popups are "fairly" straight forward. Not sure about print or export etc (since I haven't tried).
Also, I understand this isn't perfect as Bruce could change the way some internal functions work and this could break your code (but can can abstract this, sometimes you can even piggyback onto Bruces' own functions).
Regards
Bill