Single action on right mouse click?

can I use the right mouse button in order to execute a single command on any object like sliders, etc...? The popupMenu command allows different mouse buttons to open up a menu - but I don't need a menu just the ability to execute a command

Cheers
HumHum

use a popupMenu and then put your command in the popupMenu's -postMenuCommand....this makes it act like a right-click command...

It would be nice though if all button types supported left/middle/right click commands...something like:

button -c "print leftmousen" -c2 "print middlemousen" -c3 "print rightmousen";