Disable close window

General information and assistance with DOSBox.

Disable close window

Postby mathew.olufemi » 2011-3-01 @ 10:21

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
mathew.olufemi
Newbie
 
Posts: 2
Joined: 2011-3-01 @ 09:36

Re: Disable close window

Postby Qbix » 2011-3-01 @ 10:29

by changing a certain sourceline in dosbox and recompiling. Otherwise, no
Water flows down the stream
How to ask questions the smart way!
User avatar
Qbix
DOSBox Author
 
Posts: 10648
Joined: 2002-11-27 @ 14:50
Location: Fryslan

Re: Disable close window

Postby mathew.olufemi » 2011-3-01 @ 10:48

Sorry to hear. Would you have some idea of what we could do?
In any case, thank you for the answer.
mathew.olufemi
Newbie
 
Posts: 2
Joined: 2011-3-01 @ 09:36

Re: Disable close window

Postby Qbix » 2011-3-01 @ 10:59

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
Code: Select all
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!
User avatar
Qbix
DOSBox Author
 
Posts: 10648
Joined: 2002-11-27 @ 14:50
Location: Fryslan

Re: Disable close window

Postby ripsaw8080 » 2011-3-01 @ 11:37

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.
User avatar
ripsaw8080
DOSBox Author
 
Posts: 4228
Joined: 2006-4-25 @ 23:24

Re: Disable close window

Postby Dominus » 2011-3-01 @ 11:42

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.
User avatar
Dominus
DOSBox Moderator
 
Posts: 7641
Joined: 2002-10-03 @ 09:54
Location: Ludwigsburg


Return to DOSBox General

Who is online

Users browsing this forum: No registered users and 0 guests