Closed Almazatun closed 1 month ago
package main import ( "fmt" "github.com/go-vgo/robotgo" "github.com/vcaesar/gcv" ) func main() { targetImage := "../assets/image.png" img, _, err := robotgo.DecodeImg(targetImage) if err != nil { panic(err) } screen := robotgo.CaptureImg() x, y := gcv.FindX(screen, img) fmt.Println(x, y) }
I just tried to get `x, y` coordination by image on the captured screen, but faced issues below when running code.
...
Try using the latest version. v0.110.1
Thanks, I just ran go get -u github.com/go-vgo/robotgo. This is updated version of robotgo in go.mod.
go get -u github.com/go-vgo/robotgo
robotgo
go.mod
Description
...![image](https://github.com/go-vgo/robotgo/assets/50825098/c7705ab2-5032-4ac5-ba0c-536285004b19)