Test mouse button

Hi,

Is there a way to test which mouse button is clicked on a button?

I know I can make three buttons in one but if what I ask is possible I prefer use a single button because there is some variables in my code and it's more easy to update the code instead of update each code of each buttons.

Thanks

Commands can check for shift, ctrl and alt but not for mouse buttons.

Without making a three-button with separate command, the command can only be run via the left mouse button anyway, so being able to check the button in the command would not help much.

I'm not sure, but user defined commands might be helpful.

Thanks