Console window and DxWnd don't exit when using a shortcut that includes /R:n
Window hooker to run fullscreen programs in window and much more...
Status: Beta
Brought to you by:
ghotik
I've created a bat file to run an installation of Close Combat 1 located in D:\Games\Close Combat 1. DxWnd is located in a folder within the root of Close Combat 1, that folder is named "v2_05_78_fx2_build" ... the name of the latest download version. The bat file itself is also located in the same root.
Running the batch does indeed bring up the game, which works quite well. But when I exit the game neither the console window nor DxWnd close down. The console window is on my desktop and DxWnd is minmized, but fully running, in the system tray. According to the help file under Command Line Arguments "/R:n Automatically starts DxWnd iconized to the system tray, runs the nth program in the configuration file, and exits DxWnd."
What parameters do I need to add to have the console window disappear upon game termination and DxWnd shut down?
I should have added that I have an "exit" at the end of the batch file and have "Terminate on window close" checked on the main tab of the DxWnd configuration file.
This is odd ... I tested a similar experiment by running the DxWnd /R:n command from a command prompt session an it worked as intended.
I also tried to wrap the launch of DxWnd within a .bat command script and it worked all the same with this:
Probably there's something different in the handling of the .bat file in your computer. Sadly, in Windows there are so many different ways to run a script that sometimes surprises happen.
You could help me telling me your platform (Windows 10, 11, ...?) and possibly a copy of the script and the dxwnd.ini configuration file, this should make sure that I will replicate your case as closely as possible.
update
I could also need to know what distribution of the game you have. I see that the original CD version could be kind of troublesome (I'm trying to make a valid export right now) but maybe you are using a GOG distribution or something else?
Last edit: gho 2021-11-28
Hello gho,
Before I say anything else I want to thank you for your fantastic program and your attentiveness to users' needs. Both are exceptional.
The distro I'm using is indeed the GOG version; I only ever had one CD of any of the CC series, and that was CC2. So I purchased a copy of CC3 from GOG because they include a free copy of CC1 with the purchase of any of the others in the series. And their sale this weekend makes the purchase of any of them trivial.
Attached is a zip file with the batch file, the shortcut to execute the batch, and the dxwnd.ini file. Again, thank you!!
David
Ok, I somehow replicated a similar situation using the same CC1 bonus content of other CC chapters of the serie. The game is now installed, but I got some strange results.
First of all, CC1 is a windowed game that stretches the window to the size of the desktop. Looking at the DxWnd configuration it seems that you're using DxWnd to get the same result you could get without (running the game at 0,0 with 1680x1050 size), am I right?
In any case, the configuration seems to work better if you clear the "Launcher" and "Folder" fields in the Main configuration tab.
Apart from this, so far I couldn't replicate the odd behavior of DxWnd staying alive.
I'll do more researches ...
Last edit: gho 2021-11-28
Hi gho,
Yes, you are correct in both of your assumptions. You also asked for my sytem OS specs and I forgot to tell you that I'm running Windows 10 Pro 64-bit (10.0.19043), though I don't think that has much to do with this problem.
At any rate I'll try your config suggestions and report back if it solves anything.
Success! Your suggestions of getting rid of the 0,0+1680x1050 as well as emptying the Launcher and Folder fields did the trick. It now leaves no console window open, and upon application termination DxWnd terminates too.
Many, many thanks!
David
Wow, a unexpected happy ending, I love that!