>>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only