Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > Detecting DOS program keyboard activity?


Reply
 
Thread Tools Display Modes
  #1  
Old 05-15-2003, 06:18 PM
XY-Man XY-Man is offline
Guest
 
Join Date: May 2003
Location: Manchester UK !
Posts: 3
Question Detecting DOS program keyboard activity?


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 !
Reply With Quote
  #2  
Old 05-15-2003, 06:39 PM
ALEX_0077's Avatar
ALEX_0077 ALEX_0077 is offline
Contributor
 
Join Date: Nov 2002
Location: American Canyon, CA
Posts: 622
Default

I think you can detect keypresses anywhere if your form is borderless, and you use the GetAsyncKeyState API call.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Detecting a closed program. CornMaster General 1 07-20-2002 01:39 PM
detecting mouse click anywhere in program dmlx90 General 4 03-01-2002 11:43 AM
Detecting a program running in system tray mads68 General 1 02-21-2002 07:56 AM
KeyBoard recognition in an inactive program. NeverDie General 1 02-14-2002 07:23 PM
detecting a program status to see if it is loaded/ unloaded Cyber_Boy General 4 01-31-2002 02:50 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->