Skip to content

Mouse click doesn't work in steam/opengl app #674

Open
@jbeder

Description

@jbeder
  • Robotgo version (or commit ref): v0.110.2
  • Go version: go1.22.2 darwin/arm64
  • Gcc version: Apple clang version 15.0.0 (clang-1500.3.9.4)
  • Operating system and bit: Mac OS 14.4.1 (23E224)
  • Resolution: 1727x1116
  • Can you reproduce the bug at Examples:
    • Yes (provide example code)
    • No
    • Not relevant
  • Provide example code:
cmd := exec.Command("open", "-a", "MyApp.app")
if err := cmd.Run(); err != nil {
  log.Fatal(err)
}
robotgo.MouseSleep = 100
robotgo.MovesClick(1702, 512)
  • Log gist:

Description

MyApp is a game through Steam (I'm assuming it's an OpenGL app). Applescript has trouble with it (see here for my trouble controlling it with Applescript), so I tried to use robotgo.

The click (see above code) does not register. The mouse moves to the right spot, but then nothing happens upon click. If I click manually on that spot, it takes effect (the app registers the click and changes the UI).

The exact same code, if I change MyApp.app to a "normal" app like Visual Studio Code, works fine - the click is registered (e.g., the cursor position changes).

I'm not sure how to provide more information or debug this further, so happy to give more data if you tell me what you need.

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