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
|