Solved

Hotkey without hooks

Posted on 2001-06-04
2
273 Views
Last Modified: 2013-11-20
I wrote an application which I want to activate by pressing a hotkey (F12). Currently, the only solution I found is to use keyboard hooks so I need to use external DLL file for it and I also need to set and remove them. Is there any way to set a hotkey for an application without hooks ? I need it to be "memory resident" and to become active upon pressing the hotkey.

Regards,
     Gilad
0
Comment
Question by:gilad_no
2 Comments
 
LVL 32

Accepted Solution

by:
jhance earned 50 total points
ID: 6153595
Why don't you use the RegisterHotKey() Windows API function?  As long as your application is running it can call RegisterHotKey() and from then on receive notification that the key was pressed.
0
 

Author Comment

by:gilad_no
ID: 6155523
Thanks, it works :)
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

838 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question