PyAutoGUI run in background - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: PyAutoGUI run in background (/thread-16310.html) |
PyAutoGUI run in background - dikzak - Feb-22-2019 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 RE: PyAutoGUI run in background - Larz60+ - Feb-22-2019 look at concurrent.futures: https://docs.python.org/3/library/concurrent.futures.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. RE: PyAutoGUI run in background - dikzak - Feb-23-2019 (Feb-22-2019, 11:35 PM)Larz60+ Wrote: look at concurrent.futures: https://docs.python.org/3/library/concurrent.futures.html Thanks for the answer I'll look into that asap |