Detecting DOS program keyboard activity?

XY-Man
05-15-2003, 06:18 PM
Hi,

Does anyone know how to detect ANY keyboard activity in a DOS full screen application which has focus? I want to be able to close down (terminate) the DOS program after a period of time of no keyboard presses and return focus to my VB6 program.

Thanks in advance !

ALEX_0077
05-15-2003, 06:39 PM
I think you can detect keypresses anywhere if your form is borderless, and you use the GetAsyncKeyState API call.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum