Advertisement
Guest User

Untitled

a guest
Dec 7th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. import mouse, keyboard
  2. from random import randint
  3. def painHook(ev):
  4. if (type(ev) == mouse.MoveEvent):
  5. if randint(0,50) == 0:
  6. mouse.move(randint(-250, 250), randint(-250, 250), absolute=False, duration=0.1)
  7. elif (type(ev) == mouse.ButtonEvent):
  8. if randint(0,2) == 0:
  9. mouse.move(randint(-150, 150), randint(-150, 150), absolute=False)
  10. elif (type(ev) == mouse.WheelEvent):
  11. if randint(0,50) == 0:
  12. mouse.wheel(delta=50)
  13. def ohNo():
  14. for i in range(97,123):
  15. dst = i + randint(-1,1)
  16. keyboard.remap_key(chr(i),chr(dst))
  17. mouse.hook(painHook)
  18. ohNo()
  19. input()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement