Python Instal Pynput
pip install pynput
Condemned Cow
pip install pynput
from pynput import mouse
// this is python not java
// make sure to have pynput installed
def on_click(x, y, button, pressed):
if pressed :
//Code here of what u want to happen when u click
with mouse.Listener(
on_click=on_click
) as Listener:
Listener.join()