I run Python 3.x on a Windows 10 laptop and I have a daily routine that involves opening three Python scripts in succession, and running them all concurrently, each one in its own, separate instance of Idle. I have been wondering whether I could automate the entire process.
I imagine this might need to involve some sort of Windows batch file initially to open each Idle instance and, within each instance, to open and run a Python script. I don't even know whether such a sequence of actions, stepping between Windows batch file programming and Idle application programming, is possible; still less how to do it. In detail, I would like to carry out the following:
- Click on Idle.bat file to open Idle shell window1;
- In Idle shell window1, click on File/Open… to open Python script1;
- In script1 window, click on Run/F5;
- Wait for file to execute, with its output displayed in the Idle edit window;
- Move and resize the windows (currently done using the mouse);
- Repeat 1 -5 for script2;
- Repeat 1 - 5 for script3;
If anyone can tell me whether this is possible and, if so, how to do it, I would be grateful.
Many thanks
Peter