Intended setup:
- Have
.pyscript saved locally - Run required program
- Use program normally until the need for the script arises
- Press hotkey that tells Windows to run the python script
- Close program when the script + my work is done
- Hotkey should not run the script anymore unless the program is opened again
Till now I've always manually run the script and quickly Alt+Tab'ing into the program before the script manages to start executing, but it's kind of a hassle. What's the general approach to do something like this?
OS: Windows
UPDATE: A method has been found. Though I'm keeping this thread active in case there are better options.