Link to home
Start Free TrialLog in
Avatar of qkrwngml
qkrwngml

asked on

Hold Shift key down and Mouse Click event

I would like to respond when user hold the shift key down and mouse click.
How can I catch these two events occuring at the same time?
ASKER CERTIFIED SOLUTION
Avatar of mahesh1402
mahesh1402
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial

to do that global, use a key/mouse hook

set a flag when shift is pressed, unset it when shift is released

now in the mouse hook, check if the good button is pressed, and check for the shift flag
Avatar of qkrwngml
qkrwngml

ASKER

Great mahesh1402!
Thanks