Click to See Complete Forum and Search --> : System-Wide Hotkeys
ShadowCrawler
Nov 6th, 1999, 12:31 PM
Hey, I'm trying to create a few system-wide hotkeys (20, actually), and am aware I need to use the following API Calls:
GlobalAddAtom
RegisterHotKey
UnregisterHotKey
GlobalDeleteAtom
I just don't know how to use them. Dan Appleman's API book gives no help. Anyone know how to do this?
------------------
(¯`·.¸¸.·´¯`·->ShadowCrawler<-·´¯`·.¸¸.·´¯)
welcome.to/X12Tech (http://welcome.to/X12Tech)
craigkovatch@csi.com
Phobic
Nov 6th, 1999, 12:58 PM
There are already some hotkey examples in the Topic Areas of VB-World, but just to note to you there is another simpler way to create a hotkey, only that it may not be unique to your application (it may activate another application, that's why the hotkey method is somewhat better). Just use the GetAsyncKeyState API call to retrieve what keys are being pressed, and if that keypress(es) corresponds to your application, then have it activate.
ShadowCrawler
Nov 6th, 1999, 01:09 PM
Actually, that's exactly what I need. I don't mind if it activates another app, I just need my application to be able to proces it. I'm adding keyboard support to a program with none, and needed to be able to process key events while the focus was on the other program. Thanx!
------------------
(¯`·.¸¸.·´¯`·->ShadowCrawler<-·´¯`·.¸¸.·´¯)
Teenage Programmer
Visual Basic, HTML, C++, JavaScript
http://welcome.to/X12Tech
Email: craigkovatch@compuserve.com
ICQ#: 9872708 (http://wwp.mirabilis.com/9872708)
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.