Microsoft KB Archive/82153

= Microsoft Knowledge Base =

Test for Windows Cannot Record Key Events for MS-DOS Session
Last reviewed: October 19, 1994

Article ID: Q82153

The information in this article applies to:

- Microsoft Test for Windows, version 1.0

SUMMARY
You cannot record keyboard events for an MS-DOS session under Microsoft Windows when recording events using the Test Driver Record Events command (Tools menu). This is a limitation of Microsoft Windows.

This information applies to Microsoft Test version 1.0 for Windows. The record tool in Microsoft Test for Windows, version 2.0 is capable of recording events in an MS-DOS session.

MORE INFORMATION
The recorder features of Test Driver cannot record keyboard events generated by an MS-DOS box, because an MS-DOS box does not generate the same system level messages that other Windows applications do. If you use this method to create a Test script, you can modify the script by inserting calls to the DoKeys or QueKeys routine (from TESTEVNT.DLL) to send keystrokes to a windowed MS-DOS box. However, this will not send keys to a full screen MS-DOS session invoked under Windows.