Amerio.Stephane Posted February 27, 2020 Posted February 27, 2020 Would it also be possible to add the possibility to set the window title of *both* the Console window and the Unigine window at startup? (maybe a command line option?) That would be great to help with other tools that are used to position all windows on the user desktop and are working with their title! Thanks!
silent Posted February 28, 2020 Posted February 28, 2020 Amerio.Stephane As far as I know console window appears only in debug builds. Is that your use case? Could you please send us an example of how this window looks like and when it appears? How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
Amerio.Stephane Posted February 28, 2020 Author Posted February 28, 2020 6 hours ago, silent said: As far as I know console window appears only in debug builds. Is that your use case? Could you please send us an example of how this window looks like and when it appears? When starting a launcher BAT file (for eg. lauch_release.bat), it creates a (normal) CMD.exe windows that starts a new console window titled "<path_to_exe>" and a graphic view titled "UNIGINE Engine". The initial "CMD.exe" closes itself but the "<path_to_exe>" is always here, even for release/debug/development/non-development build. It is only invisible if you use the "Create Build" feature of the 2.10 editor but we don't use this (for a few reasons, irrelevant at this moment). By the way, the "Create Build" does not copy the IG plugins. Our use-case is we launch multiple slaves on the same PC, each with a different setting, and we need to position each window at a specific location. This is easy to do if the window have a unique name. A start-up command line option like -title "graphic_title" -console-title "console-title" would help :-)
silent Posted February 28, 2020 Posted February 28, 2020 Stephane, To change the console title, you can modify your application main function and rebuild it. Here is an MSDN example how to do it properly: https://docs.microsoft.com/en-us/windows/console/setconsoletitle#examples As a result you can get the following console naming: Unfortunately, I could not find a way to change the console title without recompiling the actual application. I guess you should be able to parse arguments your main function and modify console and window title as you want (console - using Windows API and the window title via Unigine API) :) How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
Amerio.Stephane Posted February 28, 2020 Author Posted February 28, 2020 Thanks for the hint! I'll give it a try!
Recommended Posts