News   Articles   Sources   Code libraries    RSS

Language:

English   Russia  

Current filter:

All   C#   C++   C  



Log in:

Name
Pass

Register

System Hooks 1.0

System Hooks

Language:C#
Category:Desktop
Subcategory: System
Date: 2008-08-27
Downloads:0
Size:350 kb
Author:Herbert N Swearengen III
Requirements:
Limitations:

This program hooks the keyboard and mouse at a low-level so that the keys or mouse movements and/or keys are trapped regardless of whether your application is in focus or not. Most of this code is not mine. The System Hooks code was written by Michael Kennedy and the adxSuperPanel code was written by Avi Dubnikov of Skyhawk Software.

Their code is copyrighted, but they have stated that it is free and maybe used for any purpose. They have also stated that their code is “AS-IS.” Please do not try to contact them for support. Please read the EULA.

The demonstration program and the setup are my work. There is a bug in the System Hooks code. It is supposed to detect down and up press of the “system keys” Alt, Ctrl, and Shift. However, only the Alt down key is detected. I don’t have enough knowledge of C# or C++ to troubleshoot this problem.

Because this solution uses three .NET languages, Visual Basic, C#, and C++, you must compile it with Visual Studio 2005 Professional or better. It might be possible to compile the separate projects with the Express editions and then put them together. However there is no setup project type in any of the Express Editions. I built this solution to learn about the low-level hooks that I intend to use in an on-screen clock/alarm/scheduling program.

Download System Hooks 1.0


Send your comment

Your name:
Vote:
Title:
Comment:
Protection code:





Submit an article   Submit a file

Copyright © HackishCode.com 2008. All rights reserved
WEB Design and WEB Development by WEB consulting company ProfWebDev.com
www.hackishcode.com