go-vgo/robotgo

use of undeclared identifier 'SCScreenshotManager'

Opened this issue · 3 comments

  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)

}4. 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.`

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.

Same error, any feedback?