07-29-2022 02:58 PM
I have an application that uses command buttons to do different tasks. I have programmed them to use the EVENT_LEFT_CLICK and EVENT_RIGHT_CLICK. Is there a way to read a key that is held while clicking the command button to do another task? I would like to hold the Shift key, Ctrl key, or Alt key while clicking the button to do different tasks.
08-01-2022 12:56 AM
Hi,
have a look at the examples samples\userint\multikey.cws and samples\userint\moustate.cws
08-02-2022 07:27 AM
Wolgang,
Thank you for the direction. I am now using the GetGlobalMouseState function and that seems to do what I need. Only thing I see is that the ALT key does not work with this function, but I am currently only interested in the Shift key pressed when I right click the mouse.