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.22k stars 1.24k forks source link

whole program breaks on mac os 13 once right arrow is pressed it tries to press fn and comand randomly and all shortcuts get triggered #807

Open shantanuojha opened 1 year ago

shantanuojha commented 1 year ago

***** warning this might trigger shortcuts related fn key or control key on your system like(opening emoji keyboard auto full screen) be careful while debugging

once you do pyautogui.press('right') the program goes haywire idk what was the issue but according to my research its not passing the right key button code i checked it with app store app key code.

how to recreate this issue:

code="""
idk type here anything e d a 
idk type here anything e d a 
idk type here anything e d a 
idk type here anything e d a 
"""

for line in code.split("\n"):
    pyautogui.typewrite(line)
    pyautogui.press("right")
    pyautogui.press("backspace")
Screenshot 2023-09-20 at 1 32 49 PM

this is my shortcuts that were affected