I want my program to pop up when I hit the control key + left click (like babylon does).
I know how to register global hotkeys, but I dont klnow how to combine a mouse click.
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There’s a great article on global keyhooks and global mouse hooks on CodeProject
http://www.codeproject.com/Articles/7294/Processing-Global-Mouse-and-Keyboard-Hooks-in-C
Using that implementation, or the ideas in it, your program can know when a left click happens in any application, and what the state of the Control key is at the time.
Keep in mind that some other apps define behavior for Ctrl-Left-Click. Overriding that behavior could create a confusing experience for the user.