Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hotkey into VFP app?
Message
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00784648
Message ID:
00785200
Views:
20
>>Still digging... This is how to set it up using the Windows API. Now what I'm pretty clueless about is how to use the VFP API to handle a WM_Hotkey message in the message queue.
>
>Looks in the samples/api directory for event.c. That will show you how to build an FLL to trap Windows messages. It's about the most elegant solution you're likely to find.

Thanks Mike. I took a look. I'm no WinAPI guru, but it looks to me like event.c demonstrates how to trap and report on VFP events. Does ev->what in the EventHandler actually point to the Windows message value? Here's what I need to have happen:
- I would have my VFP application call RegisterHotKey, passing to it the hWnd for _VFP, I suppose
- User switches to a NON-Foxpro windows application
- User hits hotkey sequence while using that application
- Windows sends a WM_HotKey message to _VFP main window
- I need to receive that message and execute a VFP procedure when that event occurs.
What I can't figure out is how to get VFP to receive and convey the WM_Hotkey message that gets zinged to it when the user enters a registered hotkey while interacting with a non-VFP Windows application. For others reading this thread: It's a "system level" hotkey I need, not an "application level" hotkey like you can create with the On Key Label statement.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform