Solved

Hotkey without hooks

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to calculate times for developing software? 8 67
EvenOdd challenge 10 106
Is there a simple front-end menu system. 9 88
x-bar in Google Sheets 2 52
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

785 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