Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PyAutoGUI run in background
#1
Hello,

I'm currently running a pyautogui script on 5 virtual machines (vmware). Now I want to top that up. I want to run +-15 scripts on just one computer. I don't think it's very healthy for my computer to run that many virtual machines. So I'm looking for an alternative of a virtual machine. Something like a window that you can open, run the script in it, minimize the window and let it run in the background.

I've already found a program called "DexPot" which is a virtual desktop program but unfortunately every window/desktop uses the same mouse. So when I have one desktop open and minimize it, the script will run on the next desktop.

Help much appreciated, been looking for so long now Dodgy Dodgy Dodgy
Reply
#2
look at concurrent.futures: https://docs.python.org/3/library/concur...tures.html
It will still heat up your CPU, but is so fast that it probably won't be for long.

I don't know if you can get around the resource sharing problem without using separate boxes as mouse and keyboard have a physical driver they must share (even if in hardware). The time needed by each is normally minuscule, so not a problem. Video is another case, and not easily shared.
Reply
#3
(Feb-22-2019, 11:35 PM)Larz60+ Wrote: look at concurrent.futures: https://docs.python.org/3/library/concur...tures.html
It will still heat up your CPU, but is so fast that it probably won't be for long.

I don't know if you can get around the resource sharing problem without using separate boxes as mouse and keyboard have a physical driver they must share (even if in hardware). The time needed by each is normally minuscule, so not a problem. Video is another case, and not easily shared.

Thanks for the answer I'll look into that asap
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Pyautogui, İmagesearch, Moving target Beyazx 0 590 Jun-27-2023, 08:47 PM
Last Post: Beyazx
  PyautoGUI- How to use If - Else with pyautogui.locateCenterOnScreen Tiel 3 8,363 Jun-27-2022, 02:00 PM
Last Post: DeaD_EyE
  pyautogui.locateOnScreen producing error dude8074 6 3,832 Apr-17-2022, 05:05 PM
Last Post: bowlofred
  how to take a screnshot by Pyautogui automatically and randomly rachidel07 0 3,548 Feb-03-2021, 01:16 PM
Last Post: rachidel07
Sad problem with Pyautogui rachidel07 1 2,468 Jan-27-2021, 05:43 PM
Last Post: nilamo
  pyautogui with a display emulator? gumby4231 0 2,603 Jul-30-2020, 02:46 PM
Last Post: gumby4231
  pyautogui.screenshot region is not working alexlu 6 6,507 Jun-04-2020, 10:46 AM
Last Post: alexlu
  loop in pyautogui (python automation GUI application) pyprogrammer 0 4,797 Feb-12-2020, 02:52 PM
Last Post: pyprogrammer
  Doesn't work function pyautogui.typewrite() aliyevmiras 1 4,808 Dec-22-2019, 11:35 AM
Last Post: aliyevmiras
  pyautogui while loop Bmart6969 0 6,569 Oct-03-2019, 03:32 PM
Last Post: Bmart6969

Forum Jump:

User Panel Messages

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