Solved

Hotkey without hooks

Posted on 2001-06-04
2
268 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Show shut-down message as Windows 8 shuts down. 9 74
deburging in oracle form 12 76
iSeries DB2 Query 2 84
wordcount challenge 11 76
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

762 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now