Untitled
unknown
plain_text
18 days ago
447 B
4
Indexable
Never
import pyautogui import keyboard import time def interrupt_script(): print("Interrupção detectada. Finalizando o script...") exit() try: while True: if keyboard.is_pressed('esc'): interrupt_script() # Simula ações com pyautogui pyautogui.moveTo(100, 100, duration=1) pyautogui.click() time.sleep(1) except KeyboardInterrupt: print("Script interrompido.")
Leave a Comment