Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Global Hot Keys
Message
 
 
To
10/07/2000 18:23:37
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00390531
Message ID:
00390625
Views:
11
>I am working on an application where I'd like to use Global Hot Keys. The problem is the ON KEY LABEL on works if VFP has focus. I need the hot keys to work even if VFP is minimized and another app has focus.
>
>Any thoughts would help..
>Thank you
>Rich Imbruglio

Rich,
What exactly are you trying to accomplish? Perhaps there is something else someone can suggest.

Hotkeys are scoped to the thread that creates (registers) them. So even if you use the WinAPI to register some type of key combination, it won't transcend different applications.

You might be able to write a hook procedure and use SetWindowsHookEx to hook into the keyboard message queue and read it for your hotkey combination, but you aren't going to be able to do this with VFP (probably C++) and this goes far beyond my expertise.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform