go-vgo / robotgo

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

use of undeclared identifier 'SCScreenshotManager' #698

Open xixider opened 2 weeks ago

xixider commented 2 weeks ago
  1. use go 17 or go 18
  2. code like this `package main

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

func main() {

robotgo.Move(10, 20)

}`

  1. i got this error # github.com/kbinani/screenshot ../../go/pkg/mod/github.com/kbinani/screenshot@v0.0.0-20240820160931-a8a2c5d0e191/darwin.go:41:14: error: use of undeclared identifier 'SCScreenshotManager' [SCScreenshotManager captureImageWithFilter:filter ^ 1 error generated.
FsmMeng commented 2 weeks ago

github.com/kbinani/screenshot

/Users/fsm/go/pkg/mod/github.com/kbinani/screenshot@v0.0.0-20240820160931-a8a2c5d0e191/darwin.go:41:14: error: use of undeclared identifier 'SCScreenshotManager' [SCScreenshotManager captureImageWithFilter:filter ^ 1 error generated.