key bindings

L

Luca Politti

Hi guys...I'm not an expert in C/C++ programming and I have a question
for you, that sure talks C/C++ better than me.
I want to catch the keyboard events. I mean, I want to build an app
that for every key typed on the keybard, it tells me that a key has
been typed in the system. Now, if I use some graphical libraries it's
easy...I build a frame and I catch all the key events made when the
focus is on the frame. But I want my app will be focus-indipendent. I
want to know if a key has been pressed in every moment in the system,
indipendent of where the focus is, and without using frames, windows
or other graphical components. Is it possible? How can I do this?

P.S.: I want to do this under Windows XP

Thanks a lot

Luca
 
N

Neelesh Bodas

Hi guys...I'm not an expert in C/C++ programming and I have a question
for you, that sure talks C/C++ better than me.
I want to catch the keyboard events. I mean, I want to build an app
that for every key typed on the keybard, it tells me that a key has
been typed in the system. Now, if I use some graphical libraries it's
easy...I build a frame and I catch all the key events made when the
focus is on the frame. But I want my app will be focus-indipendent. I
want to know if a key has been pressed in every moment in the system,
indipendent of where the focus is, and without using frames, windows
or other graphical components. Is it possible? How can I do this?

P.S.: I want to do this under Windows XP


standard C++ doesnot deal with key bindings and keyboard events. This
depends on the OS version and the platform you are on. You will need
to consult your OS-specific documentation on how to do this. It might
provide some functions/ APIs in C++ for this.

Neelesh
 
?

=?ISO-8859-1?Q?Erik_Wikstr=F6m?=

standard C++ doesnot deal with key bindings and keyboard events. This
depends on the OS version and the platform you are on. You will need
to consult your OS-specific documentation on how to do this. It might
provide some functions/ APIs in C++ for this.

Or google for a keylogger with source, there ought to be a few out there.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,070
Latest member
BiogenixGummies

Latest Threads

Top