Вот вывод, который все еще работает, это означает, что он не нажимает:
Выберите, сколько кликов вы хотите, чтобы Autoclicker нажимал сразу> 5
нажмите 's', чтобы начать автокликер и «Q ', чтобы уйти.import keyboard as kb
import pyautogui as pyg
def click(click):
if click == str:
click = int(input("Please enter a valid number: "))
elif click == int:
pyg.click(click) #this should make it click as many times I want //as much as the param is
clicks = int(input("choose how many clicks you want the autoclicker to click at once>"))
def start_autoclicker():
print("PRESS 's' TO START THE AUTOCLICKER AND 'q' TO QUIT.")
while True:
if kb.is_pressed("s"):
print("starting autoclicker...")
while True:
click(clicks)
if kb.is_pressed('q'):
print("QUITING AUTOCLICKER")
break
start_autoclicker()
First I was intending to make it ask how many times you want the autoclicker to click at once
then I defined that clicking part using pyautogui.click(clicks)
then I defined to start the autoclicking in a while loop if that shit makes since
Подробнее здесь: https://stackoverflow.com/questions/795 ... -and-never
Я пытался сделать автоклинкер, используя Python, но он вызвал ошибку и никогда не работал. Как мне это исправить? ⇐ Python
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение