Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """ Python 3.7.7 """
- import pynput
- mouse = pynput.mouse.Controller()
- def pressed(key):
- if key == pynput.keyboard.Key.alt_l:
- mouse.click(pynput.mouse.Button.left)
- with pynput.keyboard.Listener(on_press=pressed) as listener:
- listener.join()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement