Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 of 3 tasks
jbeder opened this issue Aug 16, 2024 · 0 comments
Open
1 of 3 tasks

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

jbeder opened this issue Aug 16, 2024 · 0 comments

Comments

@jbeder
Copy link

jbeder commented Aug 16, 2024

  • 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant