Advertisement
Guest User

Untitled

a guest
Nov 17th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. import pyautogui
  2. import random
  3. import string
  4. import pyperclip
  5. import time
  6. import pynput
  7.  
  8. class Cordinates():
  9. closeButton = (950, 619)
  10. textbox = (956, 340)
  11. enterBtn = (956, 425)
  12.  
  13.  
  14.  
  15. x = 0
  16.  
  17. while x < 10000000000:
  18.  
  19. def randomString(stringLength=10):
  20. letters = string.ascii_uppercase + string.digits
  21. return ''.join(random.choice(letters) for i in range(stringLength)) + "-" + ''.join(
  22. random.choice(letters) for i in range(stringLength))
  23.  
  24.  
  25. pyperclip.copy(randomString(6))
  26.  
  27. def textButton():
  28. time.sleep(0.1)
  29. pyautogui.moveTo(956, 340)
  30. time.sleep(0.1)
  31. pyautogui.click(Cordinates.textbox)
  32. time.sleep(0.1)
  33. pyautogui.hotkey('ctrl', 'a')
  34. time.sleep(0.1)
  35. pyautogui.hotkey('ctrl', 'v')
  36. time.sleep(0.1)
  37.  
  38. textButton()
  39.  
  40. def enterBtn():
  41. pyautogui.click(Cordinates.enterBtn)
  42. time.sleep(3.64)
  43.  
  44. enterBtn()
  45.  
  46. def closeButton():
  47. pyautogui.click(Cordinates.closeButton)
  48. time.sleep(0.1)
  49. pyautogui.click(Cordinates.closeButton)
  50. time.sleep(0.7)
  51.  
  52. closeButton()
  53. x += 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement