Advertisement
Guest User

Untitled

a guest
Jul 12th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. import keyboard,mouse,os
  2. from time import *
  3.  
  4. t=0.16
  5. isOn = False
  6. cycle = 0
  7.  
  8. def switch():
  9. global isOn
  10. isOn = not isOn
  11.  
  12. keyboard.add_hotkey('+', switch, args=())
  13.  
  14. while True:
  15. os.system("cls")
  16. print("script obsiauto v1.1 pour la faction Echec")
  17. print("key : \"+\"")
  18. sleep(0.5)
  19. if isOn:
  20. mouse.press()
  21. while isOn:
  22. sleep(1)
  23. mouse.move(50,0,absolute=False)
  24. sleep(1)
  25. mouse.move(-50,0,absolute=False)
  26.  
  27. mouse.release()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement