Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pyautogui
- import random
- import string
- import pyperclip
- import time
- import pynput
- class Cordinates():
- closeButton = (950, 619)
- textbox = (956, 340)
- enterBtn = (956, 425)
- x = 0
- while x < 10000000000:
- def randomString(stringLength=10):
- letters = string.ascii_uppercase + string.digits
- return ''.join(random.choice(letters) for i in range(stringLength)) + "-" + ''.join(
- random.choice(letters) for i in range(stringLength))
- pyperclip.copy(randomString(6))
- def textButton():
- time.sleep(0.1)
- pyautogui.moveTo(956, 340)
- time.sleep(0.1)
- pyautogui.click(Cordinates.textbox)
- time.sleep(0.1)
- pyautogui.hotkey('ctrl', 'a')
- time.sleep(0.1)
- pyautogui.hotkey('ctrl', 'v')
- time.sleep(0.1)
- textButton()
- def enterBtn():
- pyautogui.click(Cordinates.enterBtn)
- time.sleep(3.64)
- enterBtn()
- def closeButton():
- pyautogui.click(Cordinates.closeButton)
- time.sleep(0.1)
- pyautogui.click(Cordinates.closeButton)
- time.sleep(0.7)
- closeButton()
- x += 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement