Does anyone know a function equivalent to GetAsynKeyState() ? to test if a key is pressed? i am trying to use it for a keylogger...and except windwos hooks,thanks

Recommended Answers

All 3 Replies

Look at the function kbhit() in conio.h, which is non-standard and not supported by all compilers.

which is non-standard and not supported by all compilers.

Good thing you added that, or else Dave Sinkula would come by and accuse you of all kinds of bad coding practices :D

commented: LOL +27
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.