Skip to content

[Bug] WindowsACI.hotkey() splits key names into individual characters #195

Description

@vra1974

Bug Description

When calling WindowsACI.hotkey() with a key name like 'enter', the method incorrectly splits the key name into individual characters instead of treating it as a single key.

Steps to Reproduce

python from gui_agents.aci.WindowsOSACI import WindowsACI aci = WindowsACI() print(aci.hotkey('enter'))

Expected Output

python "import pyautogui; pyautogui.hotkey('enter', interval=0.5)"

Actual Output

python "import pyautogui; pyautogui.hotkey('e', 'n', 't', 'e', 'r', interval=0.5)"

This causes the characters 'e', 'n', 't', 'e', 'r' to be typed instead of pressing the Enter key.

Workaround

Use pyautogui.hotkey() directly instead of the ACI method:

python import pyautogui pyautogui.hotkey('enter') # Works correctly pyautogui.hotkey('alt', 'tab') # Also works

Environment

  • OS: Windows 10
  • Python: 3.13
  • gui-agents version: latest from pip

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions