BUG: Num Lock Turned Off After Sending Keystrokes to DOS App.Last reviewed: June 21, 1995Article ID: Q118818 |
The information in this article applies to:
SYMPTOMSAfter you activate an MS-DOS application in a window and send keystrokes to it, the Num Lock key, which had been turned on, is turned off.
WORKAROUNDYou can use the KeyStat control to work around the problem. The following code fixes the example in the "MORE INFORMATION" section, below:
' Add a KeyStat control (KeyStat1 by default) ' Set the Style property to 1 - Num Lock ' Set the visible property to False Sub Command1_Click () NumLockStatus = KeyStat1.Value Clipboard.SetText "DIR" + Chr(13) AppActivate "MS-DOS Prompt" ' Title of Windowed MS-DOS Session SendKeys "% ep" KeyStat1.Value = NumLockStatus End SubNOTE: The KeyStat control does not fix the problem if you specify True for the Wait parameter in the SendKeys statement.
STATUSMicrosoft has confirmed this to be a bug in the Standard and Professional Editions of Visual Basic versions 2.0 and 3.0 for Windows and in the Visual Basic Programming System version 1.0 for Windows. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Step-by-Step Example to Reproduce the Problem
|
Additional reference words: buglist1.00 buglist2.00 buglist3.00 1.00 2.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |