954,515 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Select Window

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:

Pony Cursed
Newbie Poster
2 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
 

resolved

Pony Cursed
Newbie Poster
2 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You