Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

DWED first alpha (Announce)

posted by bretjohn Homepage E-mail, Rio Rancho, NM, 28.11.2020, 20:24

> PPS: But for me, seems like impossible receive Ctrl+Shift+Up/Down. 'old'
> and 'Ext' returns 0000 (for gray arrows and for numpad).

That is correct -- you will never be able to (at least accurately) know whether multiple modifier keys (Shift, Control, Alt, or the newer Windows key) are pressed using single, standard INT calls. You need to go much deeper than that. The conversion from scancodes to ASCII codes is very complicated and there are many more possibilities for scancode combinations than there are ASCII codes.

Just as an example, there is no single test that can detect the Ctrl-Alt-Del combination. The way this is usually tested for is to wait for a Del keypress and then look in the BIOS Data Area (BDA) at 0040:0017, 0040:0018, 0040:0096, and/or 0040:0097 for the status of the modifier keys. There are other ways to do it also, but that method is probably the most appropriate for you and the easiest to implement.

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 215 users online (0 registered, 215 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum