Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

一开始就报错了,不知道怎么办 #99

Closed
jtyoui opened this issue Jan 10, 2018 · 4 comments
Closed

一开始就报错了,不知道怎么办 #99

jtyoui opened this issue Jan 10, 2018 · 4 comments
Milestone

Comments

@jtyoui
Copy link

jtyoui commented Jan 10, 2018

func main() {
robotgo.TypeString("Hello World")
robotgo.KeyTap("enter")
robotgo.TypeString("en")
robotgo.KeyTap("i", "alt", "command")
arr := []string{"alt", "command"}
robotgo.KeyTap("i", arr)
robotgo.WriteAll("测试")
text, err := robotgo.ReadAll()
if err == nil {
fmt.Println(text)
}
}

//控制台打印

github.com/go-vgo/robotgo

In file included from ./bitmap/../base/str_io_c.h:2:0,
from ./bitmap/goBitmap.h:27,
from ..\github.com\go-vgo\robotgo\robotgo.go:45:
./bitmap/../base/zlib_util_c.h:2:18: fatal error: zlib.h: No such file or directory
compilation terminated.

@vcaesar
Copy link
Member

vcaesar commented Jan 10, 2018

What is your system version and bit? And please use English, thx.

@jtyoui
Copy link
Author

jtyoui commented Jan 11, 2018

I used the window7 professional version of the 64 - bit operating system, installed the GCC and successfully run the golang code。

@vcaesar
Copy link
Member

vcaesar commented Jan 11, 2018

The GCC compiler's file may be the problem, please use MinGW-w64.

@vcaesar
Copy link
Member

vcaesar commented Jan 11, 2018

Please see #100, if the same problem occurs, please tell me how to reproduce it.

@vcaesar vcaesar closed this as completed Jan 11, 2018
@vcaesar vcaesar added this to the v0.48.0 milestone Jan 11, 2018
@go-vgo go-vgo locked as off-topic and limited conversation to collaborators Apr 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants