go-vgo / robotgo

RobotGo, Go Native cross-platform RPA and GUI automation @vcaesar
Apache License 2.0
9.59k stars 879 forks source link

ChromeOS Support #508

Open mikob opened 2 years ago

mikob commented 2 years ago
package main

import (
    "github.com/go-vgo/robotgo"
)

func main() {
     robotgo.KeyTap("p", "ctrl");
}

Description

Tried using linux in ChromeOS (Crostini) and it does not work for simulating keyboard presses. Wonder if this is possible?

Error: load_input_helper [1883]: XkbGetKeyboard failed to locate a valid keyboard!

...

vcaesar commented 2 years ago

Are you install linux X11 library?

mikob commented 2 years ago

No, didn't install any. I was under the impression that Crostini makes X11 possible. What X11 libraries are needed. Linux-enabled Chromebooks have apt-get.

vcaesar commented 2 years ago

https://github.com/go-vgo/robotgo#requirements.