Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
461
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. import time
  2. import sys
  3. import pyautogui
  4.  
  5. __author__ = "Tem Tamre"
  6. __contact__ = "ttamre@ualberta.ca"
  7.  
  8.  
  9. def autohotkey():
  10. print("Autohotkey for Injustice 2 AI")
  11. seconds = int(input("Delay(s): "))
  12. while True:
  13. try:
  14. time.sleep(seconds)
  15. pyautogui.typewrite('\n')
  16. except:
  17. sys.exit(0)
  18.  
  19.  
  20. if __name__ == '__main__':
  21. autohotkey()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement