moses-palmer / pynput

Sends virtual input commands
GNU Lesser General Public License v3.0
1.77k stars 245 forks source link

macos 12.4 F1 Press Invalid #487

Closed jiayouzl closed 2 years ago

jiayouzl commented 2 years ago
from pynput import keyboard

def on_activate_h():
    print('F1 Press')

if __name__ == '__main__':
    with keyboard.GlobalHotKeys({'<F1>': on_activate_h}) as listener:
        listener.join()

MacOS F1-F12 Invalid.

moses-palmer commented 2 years ago

Thank you for your report.

Could you please fill in the bug report template? I will need a stack trace to be able to investigate, as I do not have access to a macOS system.

jiayouzl commented 2 years ago

Thank you for your report.

Could you please fill in the bug report template? I will need a stack trace to be able to investigate, as I do not have access to a macOS system.

Sorry, I am not very good at using GitHub. Where is this error report?

jiayouzl commented 2 years ago

Thank you for your report.

Could you please fill in the bug report template? I will need a stack trace to be able to investigate, as I do not have access to a macOS system.

from pynput import keyboard

def on_activate_h():
    print('F1 Press')

if __name__ == '__main__':
    with keyboard.GlobalHotKeys({'<F1>': on_activate_h}) as listener:
        listener.join()

I have just tried it, and this code is invalid depending on the Windows10.

jiayouzl commented 2 years ago

hello?~

moses-palmer commented 2 years ago

Sorry for the confusion.

The bug report template requests the version of pynput, the version of your operating system, a stack trace and preferably code to reproduce.

I still need a stack trace though---I do not really know what you mean by the code is invalid.