Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import mouse, keyboard
- from random import randint
- def painHook(ev):
- if (type(ev) == mouse.MoveEvent):
- if randint(0,50) == 0:
- mouse.move(randint(-250, 250), randint(-250, 250), absolute=False, duration=0.1)
- elif (type(ev) == mouse.ButtonEvent):
- if randint(0,2) == 0:
- mouse.move(randint(-150, 150), randint(-150, 150), absolute=False)
- elif (type(ev) == mouse.WheelEvent):
- if randint(0,50) == 0:
- mouse.wheel(delta=50)
- def ohNo():
- for i in range(97,123):
- dst = i + randint(-1,1)
- keyboard.remap_key(chr(i),chr(dst))
- mouse.hook(painHook)
- ohNo()
- input()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement