asweigart / pyautogui

A cross-platform GUI automation Python module for human beings. Used to programmatically control the mouse & keyboard.
BSD 3-Clause "New" or "Revised" License
10.18k stars 1.23k forks source link

pyautogui works not correctly with German keyboards #479

Open Dieter-007 opened 3 years ago

Dieter-007 commented 3 years ago

Hy, at the moment I'm writing a little bit of Code to manipulate an Apple numbers sheet. Im located in Germany and it themes to me, that I can't send keyboard short cuts to Numbers (e.g. "control, command, ö") from my German keyboard with pyautogui.hotkey. Could it be, that pyautogui works only on American keyboards correctly??

kendonB commented 3 years ago

See here: https://github.com/asweigart/pyautogui/blob/master/pyautogui/_pyautogui_osx.py

for the implementation of the keys for mac. You may be able to edit this to get those special characters.