I am running a Python script on Windows 7 that opens a subprocess every few seconds. This subprocess opens a window and captures focus, disrupting any attempt by the user to perform normal work while the script is running. I have no way to modify the subprocess code itself. Is there a way to designate all subprocesses opened by a python script as unfocused?
CONFIRMATION: I need to open a window and be visible / selectable, just donβt immediately jump over everything else that happens. In other words, it should be open in the background, and not force itself in the foreground.
source share