|
-
October 30th, 2009, 12:07 AM
#1
show() via keybinds
Hey, I'm making a small program that shows a small frame just under the mouse. What I want it to do is show the frame when I press a specific key combination, like Shift + tab or something. However, the program won't have any focus.
Any ideas on how to implement this?
-
October 30th, 2009, 12:14 AM
#2
Re: show() via keybinds
try to handle for the key press events and show up your frame in the event handler delegates...
-
October 30th, 2009, 01:24 AM
#3
Re: show() via keybinds
 Originally Posted by vcdebugger
try to handle for the key press events and show up your frame in the event handler delegates...
Keyboard events will not fire when the form does not have focus.
You can do this a couple of ways. You can register a hot key with the OS (some example code here, or you can use a system hook. A system level keyboard hook can be a little tricky, but if you want to go that route search for documentation on the SetWindowsHookEx API.
-
October 30th, 2009, 09:21 AM
#4
Re: show() via keybinds
Thanks BigEd781, I'll take a look into those.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|