Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from pyKey import pressKey
- import time
- import pyautogui
- import keyboard
- def cit():
- pyautogui.moveTo(1300, 400)
- pyautogui.click()
- pyautogui.moveTo(600, 400)
- pyautogui.click()
- while True:
- pressKey('z')
- time.sleep(0.3)
- try:
- if keyboard.is_pressed('q'): # it will stop working by clicking q you can change to to any key
- break
- else:
- pass
- finally:
- pass
- print('Benvenuto nel bot, premi INVIO per cominciare')
- input()
- print('Avvio...')
- cit()
- print('Esco dal bot...')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement