go-vgo / robotgo

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

undefined: Bitmap #650

Open dpengchen opened 2 months ago

dpengchen commented 2 months ago
  1. Please speak English (English only), this is the language everybody of us can speak and write.
  2. Please take a moment to search that an issue doesn't already exist.
  3. Please make sure Golang, GCC is installed correctly before installing RobotGo.
  4. Please give all relevant information below for bug reports, incomplete details will be handled as an invalid report.

You MUST delete the content above including this line before posting, otherwise your issue will be invalid.


func TestRobot(t *testing.T) {
    robotgo.KeyDown(robotgo.Cmd, robotgo.KeyD)
    x, y := robotgo.Location()
    log.Println(x, y)
}

Description

github.com/go-vgo/robotgo

C:\Users\12194\go\pkg\mod\github.com\go-vgo\robotgo@v0.110.0\img.go:92:40: undefined: Bitmap C:\Users\12194\go\pkg\mod\github.com\go-vgo\robotgo@v0.110.0\img.go:107:38: undefined: Bitmap C:\Users\12194\go\pkg\mod\github.com\go-vgo\robotgo@v0.110.0\img.go:137:20: undefined: Bitmap C:\Users\12194\go\pkg\mod\github.com\go-vgo\robotgo@v0.110.0\screen.go:26:28: undefined: Rect C:\Users\12194\go\pkg\mod\github.com\go-vgo\robotgo@v0.110.0\robotgo_fn_v1.go:9:2: undefined: Move C:\Users\12194\go\pkg\mod\github.com\go-vgo\robotgo@v0.110.0\robotgo_fn_v1.go:17:2: undefined: Toggle C:\Users\12194\go\pkg\mod\github.com\go-vgo\robotgo@v0.110.0\robotgo_fn_v1.go:18:2: undefined: MilliSleep C:\Users\12194\go\pkg\mod\github.com\go-vgo\robotgo@v0.110.0\robotgo_fn_v1.go:20:2: undefined: MoveSmooth C:\Users\12194\go\pkg\mod\github.com\go-vgo\robotgo@v0.110.0\robotgo_fn_v1.go:21:2: undefined: Toggle C:\Users\12194\go\pkg\mod\github.com\go-vgo\robotgo@v0.110.0\robotgo_fn_v1.go:29:9: undefined: MoveSmooth C:\Users\12194\go\pkg\mod\github.com\go-vgo\robotgo@v0.110.0\robotgo_fn_v1.go:29:9: too many errors ...

f-dong commented 2 months ago

Just try this https://github.com/go-vgo/robotgo/issues/552#issuecomment-1664935423 Or https://github.com/go-vgo/robotgo/issues/582#issuecomment-1670531679