So I\'m trying to make a program that randomly places my mouse in specific areas in python, and I\'m still testing it so it can get a bit crazy. I was wondering if it were poss
What you are looking to do is use a sys.exit() in your Exception.
Try this:
import sys try: # all your code except KeyboardInterrupt: sys.exit()