SpecialCharacter

Results 38 comments of SpecialCharacter

`chars == 'cmd'` and `chars == cmd` do not work either.

Added `virtualKey` as third variable, but got an error message (along the lines of "third variable not found"). Does that mean I cannot use `Quartz.CGEventKeyboardGetUnicodeString` for this at all? But...

OK, so apparently modifier keys are handled by `CGEventGetFlags` instead. Still an example would be nice (maybe the example in the documentation could be updated, as this will be valuable...

To illustrate why: I want to assign some command key combinations (e.g., cmd + Q) new tasks. But so far, cmd + Q still closes programs, so I need to...

OK, so if I use a True/False variable to check if the command key is pressed, I manage with `elif cmd == True and length > 0 and chars ==...

Solved the "command key up" part, now it is triggered when pressing "cmd + Q" two times in sequence.

This seems to do the trick: ``` from pynput import keyboard from pynput.keyboard import Key, Controller # --- initialise --- cmd = False # ====== def on_press(key): global cmd try:...

The command key is not listed in [darwin_vks.py] :( How extract the cmd or AltGr flag from [Quartz.CGEventGetFlags]? I looked for examples, but there are few...

The script claims it is still active, but following the "key released" message, it does not execute anything.

OK, so apparently this event can appear if you are typing faster than the script can handle your input. No big deal, but is it possible to account for that...