EDMarketConnector icon indicating copy to clipboard operation
EDMarketConnector copied to clipboard

EDMC main window does not start minimized if launched with START /MIN

Open parduz opened this issue 3 years ago • 1 comments

I have a BATCH file to launch all the app i use aside of Elite Dangerous with just one click. The relevant line is START /MIN "" "!ExeFileName!" and should launch the programs minimized.

EDMC is (so far) the only program that does not start minimized but shows his main form.

parduz avatar Dec 19 '21 16:12 parduz

I have the same problem. Neither start /min "" "<EDMC>" inside CMD nor Start-Process "<EDMC>" -WindowStyle Minimized in PowerShell seem to work.

Loapu avatar Feb 23 '22 21:02 Loapu

So because of how EDMC is built off of Tkinter'd python, our options are sort of limited. Realistically, EDMC's EXE launches a console window which then launches the actual window, and it doesn't pass inheritance. So the program is respecting your wishes, it's just tkinter being tkinter and its children being rebellious and not following instructions.

I have found a way to imitate the functionality you're looking for. In a future release, if this code is included it would be achieved by running EDMarketConnector.exe --start_min.

Would that be of interest to either of you? @Loapu @parduz

Rixxan avatar Aug 24 '23 20:08 Rixxan

Hi, in my opinion this workaround seems sufficient enough.

Loapu avatar Aug 24 '23 20:08 Loapu

I agree, the workaround seems sufficient enough.

So the program is respecting your wishes

Given that the "console launcher" is able to get the /min parameter, I wonder if it could then handle the workaround by himself, adding the new "--start_min" parameter to the final window.

parduz avatar Aug 28 '23 21:08 parduz

I agree, the workaround seems sufficient enough.

So the program is respecting your wishes

Given that the "console launcher" is able to get the /min parameter, I wonder if it could then handle the workaround by himself, adding the new "--start_min" parameter to the final window.

Ideally? ... maybe? But I'm not sure about that nor do I really know how do do that.

Rixxan avatar Sep 01 '23 21:09 Rixxan