Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

key bindings

60 views
Skip to first unread message

Luca Politti

unread,
Jul 14, 2007, 5:02:24 AM7/14/07
to
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

Neelesh Bodas

unread,
Jul 14, 2007, 6:17:28 AM7/14/07
to


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

>
> Thanks a lot
>
> Luca


Erik Wikström

unread,
Jul 14, 2007, 8:04:10 AM7/14/07
to

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

--
Erik Wikström

Luca Politti

unread,
Jul 14, 2007, 8:07:55 AM7/14/07
to
Ok, thanks guys.. :)

Luca

0 new messages