我希望我的python脚本能够在按下鼠标时执行某些任务。这就是我想做的:
if(isset($_POST['show']) && $_POST['show']) {
echo $_POST['show'];
}
谢谢
答案 0 :(得分:0)
from pynput.mouse import Listener
def on_click(x, y, button, pressed):
if pressed:
print("pressed")
with Listener(on_click = on_click) as listener:
listener.join()