VOGONS


Title Bar text

Topic actions

First post, by gabell27

User metadata
Rank Newbie
Rank
Newbie

Is there a way to change the text on the title bar of the window.

Background - I use dosbox to run several instances of the same dos program ( plc programming software rather than a game). I use the serial port mapping function in the config file for each instance so that each version of the program thinks it is talking to com1 but is in fact redirected to the specified com port in the dosbox config file.

The problem - when having several instances running, I can't tell which window is which when I come back to the machine several hours later. The Plc programmer doesn't display this on all screen so the only way to tell is to escape back to the original menu and see what program is loaded.
Is there a way to write text to the title bar of the window ( say from the config file that is opened ), e.g. machine 1, machine 2 etc.
The title bar actually says Dosbox v7.4 3000 cycles etc......, so obviously dosbox has the capability to write to it, just wondering if this can be written to by a config setting..

Thanks in advance....

Reply 1 of 3, by ripsaw8080

User metadata
Rank DOSBox Author
Rank
DOSBox Author
gabell27 wrote:

Is there a way to change the text on the title bar of the window.

Not in official builds. However, you can use a source code patch if you compile DOSBox yourself.

There are ways of externally manipulating a window caption, such as with AutoIt, but DOSBox updates its window caption with changes in the emulation environment, so a one-time external change will probably not "stick".

Reply 2 of 3, by Jorpho

User metadata
Rank l33t++
Rank
l33t++

You might be able to brute-force a permanent change to the binary with Resource Hacker, but that's hardly elegant.
https://en.wikipedia.org/wiki/Resource_Hacker

EDIT: Come to think of it, DOSBox does display the name of the currently-running .exe in its title bar, so you could always just make separate copies of the .exe you're trying to run, each with a different name.

Reply 3 of 3, by mrau

User metadata
Rank Oldbie
Rank
Oldbie

if under linux the window manager should be able to do it for You