VOGONS

Common searches


First post, by mathew.olufemi

User metadata
Rank Newbie
Rank
Newbie

Hi,
We are using DOSbox to run certain scientific application on Win7. Our software needs to exit smoothly using its own quit command otherwise several configuration files get corrupted. The issue is that every now and then a student will close the DOSBox clicking on X of the session window, which produces a mess.
The question is if there is a way to disable the close window X?
Thanks

Reply 3 of 5, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

change that sourceline and compile dosbox ?
There are various tutorials on how to compile dosbox using free tools (It only takes time)

You have to replace

throw(0);

with nothing in src/gui/sdlmain.cpp (2 or 3 times it is there)
Good luck

Water flows down the stream
How to ask questions the smart way!

Reply 4 of 5, by ripsaw8080

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Maybe set fullscreen=true in the conf file, so DOSBox starts up in full screen mode and there's no close button to click on. Then you can prevent users from reverting to windowed mode when they press Alt-Enter, and also prevent them from immediately shutting down DOSBox when they press Ctrl-F9. Press Ctrl-F1 to get into the key mapper, select "Fullscreen" then "Del", select "Shutdown" then "Del", press "Save", press "Exit". Can't stop them from using Alt-Tab to change windows, though.

Reply 5 of 5, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

You can use external tools, for example Autohotkey with which you can alter windows and remove the gui elements, most likely you can also prevent easy killing of the dosbox process in the task manager. Look it up it's quite easy and the documentation is very good.

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper