VOGONS


Hide DosBox Windows

Topic actions

First post, by the_boss

User metadata
Rank Newbie
Rank
Newbie

Hi!

I execute DosBox from my Visual Basic Application because I wanna run an old fortran program. How can I hide the DosBox windows while this fortran program is running?

Thanks

Reply 1 of 9, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

you tried the -noconsole option

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

Reply 2 of 9, by the_boss

User metadata
Rank Newbie
Rank
Newbie

Hi Qbix.

With the -noconsole option, one window appears, the window where the fortran program runs. Only the status window is hidden.

Reply 3 of 9, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Right, that's what you wanted, not?

Reply 4 of 9, by the_boss

User metadata
Rank Newbie
Rank
Newbie

No wd,
DosBox must run in background, minimized or hidden.

Thanks

Reply 5 of 9, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

try making a shortcut with the minimized thing on, and run that shortcut.
This is really a general operating system question and doesn't haven much to do with dosbox.

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

Reply 6 of 9, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Well for a game emulator, displaying the output is quite relevant.
There's no builtin button to minimize the main dosbox window besides
the minimize buttons of the menu bar.
Maybe there are some programs that can start other programs minimized,
shortcuts don't seem to work (anybody got success with that?).

Reply 7 of 9, by the_boss

User metadata
Rank Newbie
Rank
Newbie

Well, I'll find any solution.

Thank you very much

Reply 8 of 9, by `Moe`

User metadata
Rank Oldbie
Rank
Oldbie

SDL_VIDEODRIVER=none might work

Reply 9 of 9, by ErikGG

User metadata
Rank Member
Rank
Member

As you're already starting DOSBox from within another program, you could search for DOSBox's SDL Window (The one still left open using -noconsole) using the FindWindow (or cycle through all Windows) API and then call SetWindowPos to set the windows position to -1000 or something.

But this requires you to recompile your program and build in the search and set routine.

Erik.

Read the new FAQ.doc