On 9 Oct 2005, at 10:30, William Chops Westfield wrote: > I for one was wondering whether how you thought "working" was defined > when the window running that program didn't have the focus (wasn't > the active window.) > > IMO, if this is for a class, you probably ought to figure out the > proper > windows APIs to do what you had in mind (unless it's not a windows > programming class at all.) Windows programming uses a rather > different > methodology than DOS programming, even if many DOS programs will > run OK > in a windows environment. (OTOH, this makes the program MUCH more > complicated...) I think he said he's writing a command line tool in which case it appears from KB article I posted a link to that the approved function name is _kbhit() - but apart from that (and the warnings of course) he's doing the right thing. -- Andy Armstrong, hexten.net -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist