How to start a windows application minimized (or hidden)

K

klausfpga

Hi,

I'd like to start a windows application minimized


As an example I used
calc.exe

what I tried was using the startupinfo field of subprocess.Popen
though I'm not sure, that 'hidden' is really the same as minimized.

st_info = subprocess.STARTUPINFO()
st_info.dwFlags |= subprocess.STARTF_USESHOWWINDOW
st_info.wShowWindow = subprocess.SW_HIDE
proc = Popen( [ "cmd.exe" ], startupinfo = st_info)





I also tried creating a shortut of calc on my desktop and setting it
to
'start minimized'

if I click on the shortcut, then calc.exe shows up as a visible window

What am I doing wrong/

Thanks in advance for any ideas


somehow I do not see, that
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,066
Latest member
VytoKetoReviews

Latest Threads

Top