Python Forum

Full Version: PyAutoGUI run in background
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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.
(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