Skip to content

Script keeps opening Calculator due to Russian keyboard layout interference #670

Description

@Noxitres

why tf my script keep opening calculator bro 😭💀 like i just wanna spam keys not do math homework??? pls help my code is possessed by demonic windows shortcuts or smth 😩🙏 every time i press 'f' it's like 'nyet comrade, have calculator instead'... tried everything - blocking keys, sacrificing my sanity, even unplugging keyboard... NOTHING WORKS! someone fix this russian layout curse...

Okay, now seriously: The problem is the Russian keyboard layout interfering with key presses.

When my script (e.g., Music.py) sends simulated key presses like keyboard.press('f'), Windows interprets it as the Russian character 'а' due to the active layout. This can accidentally trigger system shortcuts (e.g., Win + А opens Calculator in some setups).

Example from my Music.py script:
music_sequence = """
[tf]---- # 'f' in Russian layout = 'а' → may trigger Win+А shortcut
[wp]----
[tu]----
[es]----
"""
Why it happens:
The keyboard library sends physical key codes, but Windows maps them to characters based on the current layout.

Some key combinations (even unintended ones) can launch apps like Calculator.

Fix needed:
Force English layout in the script OR

Modify the script to avoid keys that conflict with shortcuts.

(Back to ipad kid: BRO WHY WINDOWS HATE MY MACROS 😭💔)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions