Put simply, I'm trying to figure out how to run some code when the PyAutoGUI failsafe executes. I've tried searching this problem many times and can't figure out a way to do it.
This is what I want:
- Move mouse to corner and provoke failsafe.
- Right before program ends from fail safe, runs line of code.
- Program completely closes.