VOGONS


Print Screen

Topic actions

First post, by polytopal

User metadata
Rank Newbie
Rank
Newbie

Hello and thank you in advance. My question relates to the key scan code in DOSBox when I hit the "Print Screen" key, I need to make sure that it is not trapped, furthermore, in the event that it is not trapped, I need to know of a utility to discover its scan code, similar to an event watcher in Linux that I can't remember the name of at the moment (any input device events scan codes are trapped and displayed).

Reply 1 of 4, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

The scancode for the print key is not forwarded to the dos application.
What exactly are you trying to do?

Reply 2 of 4, by polytopal

User metadata
Rank Newbie
Rank
Newbie

civmap21, is a program that modifies the current world map in civilization 1. The package provides instructions to modify the civ.exe executable such that after one loads civmap21.exe, then starts civ.exe normally, the user hits "Print Screen" and it invokes the civmap21 code in memory allowing one to change the map s/he is playing on. I got it to work years and years ago on an old machine, but dos on VMWare or many of the others fail to run civ.exe properly so even though "Print Screen" is active, it is of no use. If I knew what the modifications to the civ.exe file in hex were doing I could perhaps map the action to a different key, but I don't have the knowledge (yet, I am starting my junior year as a computer engineer and we will be doing a lot of hardware stuff this year). Attached is the instruction text file.

Reply 3 of 4, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

If I knew what the modifications to the civ.exe file in hex were doing

Well it just calls two interrupts (cd f1 and cd f2 are intf1 and intf2) which might
be grabbed by the map editor.
So you can't just change those hex edits to use a different key.

Reply 4 of 4, by polytopal

User metadata
Rank Newbie
Rank
Newbie

Thanks for your help, I'll keep looking. Impressive work with DOSBox by the way, the compatibility list is just astounding.