Re: response

by (Login MCalkins)
Moderator

 

I don't think that the type of keyboard matters. Windows is providing, through NTVDM, an emulated DOS / IBM BIOS environment to the DOS programs, including QBASIC. It seems that NTVDM will let you read the status byte, but seems to ignore writes to it.

You can correctly read the byte at 0000:0417, you just can't set the locks by writing to it, right?

I wrote a QB64 program here:

http://www.qb64.net/forum/index.php?topic=5878.msg60700#msg60700

that uses the Windows API function SendInput() to simulate pressing the lock keys.

http://msdn.microsoft.com/en-us/library/ms646310%28v=vs.85%29

Let me know if you need a C++ program to SHELL to from QBASIC 1.1. However, you might prefer switching to QB64.

Regards,
Michael



    
This message has been edited by MCalkins on Jul 3, 2012 7:05 AM

Posted on Jul 3, 2012, 7:03 AM

Respond to this message   

Return to Index

 Copyright © 1999-2014 Network54. All rights reserved.   Terms of Use   Privacy Statement