473,395 Members | 1,987 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Hooking the keyboard

Please,

is there a way i can hook the keyboard? I would like to hook everykey.
CTRL+ALT+DEL, CTRL+ESC, and all others. The user just press some keys, and
none control keys, not only at my app but all windows.
A friend told me that there's a non-documented API that let me do this, but
he didn't remember the name.

Danke.

Fabiano
Nov 16 '05 #1
2 1483
The API is documented, look at SetWindowsHookEx and
UnhookWindowsHookEx in the Win32 API.

--
Scott
http://www.OdeToCode.com

On Fri, 27 Aug 2004 16:12:25 -0300, "Fabiano" <a@a.com.br> wrote:
Please,

is there a way i can hook the keyboard? I would like to hook everykey.
CTRL+ALT+DEL, CTRL+ESC, and all others. The user just press some keys, and
none control keys, not only at my app but all windows.
A friend told me that there's a non-documented API that let me do this, but
he didn't remember the name.

Danke.

Fabiano


Nov 16 '05 #2
On Fri, 27 Aug 2004 16:12:25 -0300, "Fabiano" <a@a.com.br> wrote:
Please,

is there a way i can hook the keyboard? I would like to hook everykey.
CTRL+ALT+DEL, CTRL+ESC, and all others. The user just press some keys, and
none control keys, not only at my app but all windows.
A friend told me that there's a non-documented API that let me do this, but
he didn't remember the name.

Danke.

Fabiano


I'm working on hooks too. You can take a look at CodeProject. There
are a couple of articles that may help you.
http://codeproject.com/csharp/globalhook.asp
http://www.codeproject.com/csharp/GlobalSystemHook.asp

Hope this helps.
Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Tony Pirkle | last post by:
In a former query: Modeless Form Ignores Keystrokes ONLY when called from VB.Net, I explain that I have a VB6 form that's not getting it's keystrokes. The events are firing, but the controls...
1
by: Matthew Kelly | last post by:
I have pulled together a VB.net project that hooks the keyboard (Ref. Paul Kimmel's hooking program) and allow the user to send "mouse right clicks" via the SendInpuut function (mouse emulation...
1
by: Greg Merideth | last post by:
Is there a way via c# to hook a system tray application into the windows keyboard que globally so that when the application is running and you press, say, control-alt-shift-f11 the system tray app...
3
by: Rick Strahl [MVP] | last post by:
I'm working on an app that's using the WebBrowser control. I got the control working fine, hooking to the document object. But I've run into a major issue with hooking the Document events....
0
by: William Hughes | last post by:
Hi, After doing a bit of googling, it seems everyone refers to the article "Managing Low-Level Keyboard Hooks in VB .NET" Written by Paul Kimmel -...
0
by: Hema | last post by:
Hi all, I have developed a BHO that installs low level keybaord hooks and CBT hooks globally whenever IE is opened.The keys that are pressed when IE is active are to be captured.I am trying to...
8
by: pigeonrandle | last post by:
Hi, Has anyone had any experience with hooking messages in other application windows (like SPY++). I want to listen for WM_MOVE messages, but can only seem to find examples of Keyboard and Mouse...
1
by: zanthor | last post by:
Ok... so call me crazy, but I have an idea and I'm looking for where to start... I want to write an application that catches keystrokes and then either redirects them to the in focus window or...
1
by: adam2009 | last post by:
Hey all, I try to find some code that will log to some txt file all the keystrokes in a smartphone. I have read many blogs about it, but I'm still confused. There are two blogs that i tried...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.