Windows automation of MSPaint for quick saving of screenshots
Windows:
- install Python from https://www.python.org/downloads/
- install pip (see https://pip.pypa.io/en/stable/installation/)
Run the following command to install the dependencies
pip install pywinauto
-
Copy your pywinauto directory path
-
Go to Windows Start menu > type "env" and open "Edit the system environment variables"
-
Click "Environment Variables..."
-
Select 'Path', then click Edit
-
Click New and paste the value from #1
Install pyinstaller via pip
pip install pyinstaller
Compile python file into 1 executable
pyinstaller --onefile capture-window-and-save.py
Copy the executable file onto the existing directory (already reacheable from Windows Path)
copy dist\capture-window-and-save.exe .
Just call
capture-window-and-save
or
capture-window-and-save.exe
from anywhere (if you set it up from Windows Path). Snapshots will be stored in the original directory