Python Forum
how to set focus when running a script using subprocess
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to set focus when running a script using subprocess
#1
Using Django I have designed a web page and I'm running a python script which will use subprocess to start windows application.
I'm facing issue here, when I click on the web page, at the backend execution of the python script is starting, however window focus is still on the web page and it is not moving to the thread which is launched by the subprocess and because of that my script is failing.

Any help on how to set focus for subprocess or any way to change the focus point when running using Django.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Running script from remote to server invisiblemind 4 679 Mar-28-2025, 07:57 AM
Last Post: buran
  Detect if another copy of a script is running from within the script gw1500se 4 1,088 Jan-31-2025, 11:30 PM
Last Post: Skaperen
  Cant get powershell script to run with subprocess robertkwild 2 1,381 Jun-27-2024, 01:23 PM
Last Post: robertkwild
  No Internet connection when running a Python script basil_555 8 3,147 Mar-11-2024, 11:02 AM
Last Post: snippsat
Question Running Python script through Task Scheduler? Winfried 8 6,017 Mar-10-2024, 07:24 PM
Last Post: Winfried
  Help Running Python Script in Mac OS emojistickers 0 923 Nov-20-2023, 01:58 PM
Last Post: emojistickers
  Trying to make a board with turtle, nothing happens when running script Quascia 3 1,710 Nov-01-2023, 03:11 PM
Last Post: deanhystad
  Python script running under windows over nssm.exe JaroslavZ 0 1,656 May-12-2023, 09:22 AM
Last Post: JaroslavZ
  Running script with subprocess in another directory paul18fr 1 11,849 Jan-20-2023, 02:33 PM
Last Post: paul18fr
  Running script on multiple files Afrodizzyjack 1 3,190 May-14-2021, 10:49 PM
Last Post: Yoriz

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020