Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from pynput import mouse
- def on_click(x, y, button, pressed):
- if pressed and button == mouse.Button.left:
- print('HelloWorld')
- with mouse.Listener(on_click=on_click) as listener:
- listener.join()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement