【发布时间】:2019-03-05 18:32:19
【问题描述】:
我正在使用 Python 模块 Pynput 来制作一个可以按下我的侧边按钮之一的宏。有谁知道 Pynput 中的侧边按钮叫什么? 例如:
from pynput.mouse import Button, Controller
mouse = Controller()
mouse.press(Button.SIDEBUTTON)
mouse.release(Button.SIDEBUTTON)
SIDEBUTTON 部分会发生什么?
【问题讨论】:
-
“侧边按钮”不是标准术语。不同的鼠标制造商将使用不同的事件代码;按钮 4 和 5 很常见,但不是给定的。
-
所以这里的问题是:什么鼠标?
标签: python macros mouse pynput