I've been programming with Python and have made an EXE file. I've added a shortcut to it in the startup folder in order to make it autostart with Windows.
The problem is that it takes some time between when the blank black console appears and the actual run of the program (i.e. it takes time until the program actually starts working).
How do I get rid of the blank black console window? I think it happens because Windows takes time to load the file's folders and libraries.
I want that the black window to be hidden at startup using win32gui.ShowWindow(win, 0)
, but it takes too long for this to happen. It works fine when launched normally but not when run from the startup directory while Windows is starting.