Skip to content

Custom command doesn't run when focused window is run as admin #2119

@akamienski

Description

@akamienski

Describe the bug

Hello,

I'm using Start Menu only to trigger Win+X keyboard shortcut while left clicking start orb or using Win key. I've prepared ahk script to trigger that shortcut, converted it to exe file, and assigned it to both custom commands. It does not trigger only when currently focused app have been run as admin, like terminal or task manager.

Area of issue

Start menu

To reproduce

  1. Save this ahk script and convert it to exe file using Ahk2Exe:
    #Requires Autohotkey v2.0
    #SingleInstance Force
    #NoTrayIcon
    SendMode("Input")
    SetWorkingDir(A_ScriptDir)
    Send("#x")

  2. assign exe file to two Custom commands: Left click and Windows key

  3. run terminal as admin or task manager

  4. try to trigger exe filew with Windows key while either window is focused

Expected behavior

Trigger normally as it would with Windows key, when no window is focused or focused window runs in non-elevated session

Open-Shell version

4.4.195

Windows version

Windows 11 24H2 26100.2894

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working right.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions