0

Hi, My question is about: How select a "Window" that exist ? Because I don't know how select. What I know is create a new window, but don't select a that already exists.

What I have done this is it: (throw how "sub-process" already minimized)

import subprocess
if subprocess.mswindows:
       su = subprocess.STARTUPINFO()
       su.dwFlags |= subprocess.STARTF_USESHOWWINDOW 
       su.wShowWindow = subprocess.SW_HIDE
       kwargs['startupinfo'] = su
       process = subprocess.Popen( (r'C:\name.exe', r'D:\optional_name.exe'), **kwargs )

Thanks all :icon_wink:

Edited by Pony Cursed: n/a

1
Contributor
1
Reply
2
Views
5 Years
Discussion Span
Last Post by Pony Cursed
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.