OS: DOS Your OS isn't DOS. If it's Vista or Win7, you need to move to another version of VB, as VB6's SendKeys() does not work under the newer OS'es. If it's XP or 2K, then you're not waiting long enough, as StuartS suggests.
now I'm working on it with XP's cmd but in fact I need it on real dos. I dont want to use any keyboard . dos machine is embeded & withaou keyboard or monitor . I'd installes NC(Norton Commander) on it & I want it automatically run NC & does the linking oparation like : First it should press F9 Then "L" to select left menu & "K" to link & "alt + L" to start linking
A VB2 compiled programme should run on DOS but I very much doubt it will have a sendkeys function.
Sendkeys relies on the multitasking abilities of Winodws. There is no multitasking in DOS. If you want one application to pass values to another in DOS then you are going to have do do some pretty low level programming. In DOS only one application can be running at a time.
I seem to recall having a actual MS-DOS 6.22 utility that would store into the DOS keyboard buffer a key sequence, then the program executing afterward would received that input. I might be able to search my old ZIP disks and see what it was. I used it in batch files to pre-load keyboard commands for dos apps.
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this
site. Computing.Net and Purch hereby disclaim all responsibility
and liability for the content of Computing.Net and its accuracy.