Is there any possibility to use the middle mouse button event for programming? Or can I use keyboard and mouse key combinations like Ctrl+right mouse button to start a script? I found getKeyState(), but this only works on windows and not for control or shift key or something. Is there a way to do this in windows and Linux?
Thanks for any answer!
Best regards.
Middle mouse button pressed?
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: Middle mouse button pressed?
Hello,
there is no possibility to start a script only by clicking "Ctrl"+mouse button.
A script can be started by clicking on an object (starting a script defined at an object) or using the keypressed.ctl-functionality.
Best Regards
Leopold Knipp
Senior Support Specialist
there is no possibility to start a script only by clicking "Ctrl"+mouse button.
A script can be started by clicking on an object (starting a script defined at an object) or using the keypressed.ctl-functionality.
Best Regards
Leopold Knipp
Senior Support Specialist
- funkey
- Posts:85
- Joined: Mon Dec 27, 2010 1:11 pm
Re: Middle mouse button pressed?
Thanks for your answer!
Too bad. I hoped that there was a solution to do this on Linux, because the control key and the middle mouse button are used in the trend widget. I can do a lot using the getKeyState() function. So I can right click on a rect, and then look if a key has been pressed, but only on Windows and no modifier keys at all. But we have Windows and Linux clients.
keypressed.ctl is only for global things and not for clicking on instances I think, tell me if I'm wrong.
Too bad. I hoped that there was a solution to do this on Linux, because the control key and the middle mouse button are used in the trend widget. I can do a lot using the getKeyState() function. So I can right click on a rect, and then look if a key has been pressed, but only on Windows and no modifier keys at all. But we have Windows and Linux clients.
keypressed.ctl is only for global things and not for clicking on instances I think, tell me if I'm wrong.