Computing.Net > Forums > Programming > keyboard interfacing

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

keyboard interfacing

Reply to Message Icon

Name: paulr1984
Date: January 19, 2004 at 17:48:04 Pacific
OS: windows xp
CPU/Ram: 1.3Ghz P-M/ 380mb
Comment:

hi! I have a c program that listens for keystrokes by the user. Here's my code:
[code]
int main()
{
int x;
while(1) {
x = inportb( 0x60 );
printf( "%d\n", x );
sleep( 100 );
}
return 0;
}
[/code]
the program is able to get every keystroke. But i'm planning to make this a windows service. The problem is, my typing gets interfered when I put the program in the background. Its like the program locks up my keyboard. How do I work around this?



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: keyboard interfacing

C++ keyboard interfacing... www.computing.net/answers/programming/c-keyboard-interfacing/565.html

Reading from a USB Barcode-Reader o www.computing.net/answers/programming/reading-from-a-usb-barcodereader-o/11231.html

16F84 interface to keyboard port www.computing.net/answers/programming/16f84-interface-to-keyboard-port/8033.html