VOGONS


First post, by sky66

User metadata
Rank Newbie
Rank
Newbie

Recently, we are playing an difficult old RPG game( Legend of Zyca, 23 years ago).
It has special cheat: Press Num+, Num1, Num2, Num2, Num3, Num3, Num3, Num5 and "Printscreen" to enable the cheat code.
But the "Printscreen" key under DOSBOX doesn't work...

This problem had discussed before, but seems have no solution.
Printscreen KEY Problem under dosbox xp version

Someone - an advanced-player, modified the DOSBOX source code and make it works!
keyboard.cpp
Was:

	case KBD_printscreen:
/* Not handled yet. But usuable in mapper for special events */
return;

Is:

        case KBD_printscreen:
KEYBOARD_AddBuffer(0xe0);
KEYBOARD_AddBuffer(pressed?0x2a:0xb7);
KEYBOARD_AddBuffer(0xe0);
KEYBOARD_AddBuffer(pressed?0x37:0xaa);
/* Not handled yet. But usuable in mapper for special events */
return;

But this is workaround solution, if can not be implemented in offical DOSBOX version.
Therefore, we hope DOSBOX can consider to add "Printscreen" key suppot in the future.

Reply 1 of 6, by retro1975bc

User metadata
Rank Newbie
Rank
Newbie

Hi 2 all of this fantastic Vogonos Forum!!! this the 1st time i share with this post and i hope it will be useful...

I've managed to compile a custom Dosbox SVN build from this tutorial :
https://www.dosbox.com/wiki/Building_DOSBox_with_MinGW
and i've replaced the modified keyboard.cpp with the one provided in that tutorial,, guess what!! it works!
and all thanks goes to (sky66).

Also i've included a binary dosbox after compiling it so every one can use that PrintScreen function,,, thanks! 😎

Reply 3 of 6, by ripsaw8080

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Support for the PrintScreen key is already in SVN as of r3961, no need to add it.

Reply 5 of 6, by ripsaw8080

User metadata
Rank DOSBox Author
Rank
DOSBox Author

No, r3961 refers to when the source code was changed, not any specific compiled binary.

Reply 6 of 6, by keenmaster486

User metadata
Rank l33t
Rank
l33t
retro1975bc wrote:

Hi 2 all of this fantastic Vogonos Forum!!! this the 1st time i share with this post and i hope it will be useful...

Greetings and welcome to the forums!

Just a tip: Do not resurrect old threads, that's called necroposting and it's considered highly annoying. Start a new thread if you can't find threads to post in that aren't more than six months old.

It's cool that you've created a custom build of DOSBox, though, but I suggest that next time you check to see if an SVN version has it, since a great many new features have been added since 0.74 (notice the thinly veiled hint to the devs there...).

World's foremost 486 enjoyer.