Jump to content
2 hours ago, Enderg312 said:

import pyautogui, time
import keyboard
time.sleep(5)

while True:
	pyautogui.click()
	if keyboard.is_pressed('p'):
		quit()

 

I used this:

import sys
import time

import keyboard
import pyautogui

time.sleep(5)

while True:
	pyautogui.click()
	if keyboard.is_pressed('p'):
		sys.exit()

and the error is gone.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×