Mouse right click

Hi everyone

I was wondering how to make a button which tooked action with the right button of the mouse.

Thank you for your time :slight_smile:


This is an old post (referencing FactoryPMI, which became the Vision module), but has some really good info: Right Click and Double Click actions

In short, what you want is:

if event.button == event.BUTTON3: #do stuff


And in case it’s not clear, that’s the script on a “mousePressed” event for the button, configured under “Event Handlers” for the component.


thanks a lot!