We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import pynput from pynput.keyboard import Controller, Key, Listener from pynput.mouse import Button
def on_click(x, y, button, pressed): # 实例化键盘 kb = Controller()
# 使用键盘输入一个字母 kb.press(Key.ctrl) kb.press(Key.alt) kb.press('.') kb.release(Key.ctrl) kb.release(Key.alt) kb.release('.') kb.pressed(Key.ctrl,Key.alt,'.') if button == Button.right: print("关闭") return False
with pynput.mouse.Listener( on_click=on_click,) as listener: listener.join()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
import pynput
from pynput.keyboard import Controller, Key, Listener
from pynput.mouse import Button
def on_click(x, y, button, pressed):
# 实例化键盘
kb = Controller()
with pynput.mouse.Listener(
on_click=on_click,) as listener:
listener.join()
The text was updated successfully, but these errors were encountered: