Middle mouse button pressed?

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
3 posts • Page 1 of 1
funkey
Posts:85
Joined: Mon Dec 27, 2010 1:11 pm

Middle mouse button pressed?

Post by funkey »

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.

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Middle mouse button pressed?

Post by leoknipp »

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

funkey
Posts:85
Joined: Mon Dec 27, 2010 1:11 pm

Re: Middle mouse button pressed?

Post by funkey »

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.

3 posts • Page 1 of 1