SHARE
TWEET

Untitled

a guest Oct 23rd, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from pyautogui import typewrite, press
  2. from os import system
  3. from time import sleep
  4. from fortunate import Fortunate
  5. def count(start, repeat):
  6.  sleep(start)
  7.  i = 0
  8.  while i < repeat:
  9.   typewrite(str(i+1))
  10.   press("enter")
  11.   sleep(0.1)
  12.   i = i + 1
  13.  
  14. def random(start, repeat):
  15.  sleep(start)
  16.  i = 0
  17.  generator = Fortunate()
  18.  while i < repeat:
  19.   try:
  20.    typewrite(generator().replace("\n","").replace("\r",""))
  21.   except Exception as e:
  22.    print("An Error occurred: "+str(e))
  23.   press("enter")
  24.   sleep(0.1)
  25.   i = i + 1
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top