How do I stop the loop at anytime with a keypress

import pyautogui

import time

time.sleep(3)

while True:

pyautogui.click()

pyautogui.PAUSE = 0.01


Read more here: https://stackoverflow.com/questions/67924118/how-do-i-stop-the-loop-at-anytime-with-a-keypress

Content Attribution

This content was originally published by IAmNotAIndianTechScammer at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: