Python Forum
Python Help, New User, Computer Automation - 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: Python Help, New User, Computer Automation (/thread-34074.html)



Python Help, New User, Computer Automation - hexagonalyeti - Jun-24-2021

Hey so I am new to python and I am trying to code a specific thing. I am trying to in python run an infinite for loop and within that loop call cmd to open and run a program then to run a timer for x time and then once it is over close it and open a new one, then repeat. I really don't care if the program opens in cmd or python I am just trying to run a program on my computer for a certain amount of time then close it and run another. I am trying to automate some programs I have on my computer. I know how to do a for loop and a timer, I think I have not gotten them to work with anything, only by themselves.


RE: Python Help, New User, Computer Automation - Larz60+ - Jun-24-2021

look at sched


RE: Python Help, New User, Computer Automation - hexagonalyeti - Jun-25-2021

(Jun-24-2021, 10:13 AM)Larz60+ Wrote: look at sched

thanks