SpecialCharacter

Results 38 comments of SpecialCharacter

@brettelliot Would you be so kind to take a look at https://stackoverflow.com/questions/64408695/example-for-darwin-intercept-in-pynput ? I don't know anything about the "grammar" of Mac, but you seem knowledgeable. Any help is appreciated!...

Maybe this helps a bit? https://github.com/moses-palmer/pynput/issues/44

@logileifs ok, so we both are looking for a way to make pynput recognize AltGr…

How about: WL = { "`:smile:`": "πŸ˜„" } ... for key, value in WL.items(): if x == key: keyboard.type(value)

Sorry, x is just variable. You can name it Smiley or whatever, just remember to define it. In WL = {...} you can list all your word replacements, then let...

Do you want to make the replacement in real time or do want to scan a text for words? In the first instance, the method I described should be working....

PS: WL (word list) is an example for a "dictionary". I found it the most convenient way to emulate AutoHotkey's `HotStrings`.

That looks nice. Is it what you wanted? I notice that "xcvbad" will not work but only "xcv bad". Is that on purpose?

PS: Maybe add this before "with Listener...": except AttributeError: print('on_release special key {0} released'.format( key)) if key == Key.esc: # Stops listener on PC return False elif key == Key.cmd_r:...