mirror of
https://github.com/go-vgo/robotgo
synced 2026-05-23 17:59:12 +00:00
Update golint
This commit is contained in:
parent
0a3df7f68a
commit
d6844e1009
2 changed files with 8 additions and 8 deletions
|
|
@ -522,9 +522,9 @@ func Convert(args ...interface{}) {
|
|||
//C.CString()
|
||||
opath := args[0].(string)
|
||||
spath := args[1].(string)
|
||||
bit_map := OpenBitmap(opath)
|
||||
bitmap := OpenBitmap(opath)
|
||||
// Println("a----", bit_map)
|
||||
SaveBitmap(bit_map, spath, mtype)
|
||||
SaveBitmap(bitmap, spath, mtype)
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
12
test/main.go
12
test/main.go
|
|
@ -47,16 +47,16 @@ func aRobotgo() {
|
|||
// robotgo.KeyToggle("enter", "down")
|
||||
robotgo.TypeString("en")
|
||||
|
||||
abit_map := robotgo.CaptureScreen()
|
||||
Println("all...", abit_map)
|
||||
abitmap := robotgo.CaptureScreen()
|
||||
Println("all...", abitmap)
|
||||
|
||||
bit_map := robotgo.CaptureScreen(10, 20, 30, 40)
|
||||
Println("...", bit_map)
|
||||
bitmap := robotgo.CaptureScreen(10, 20, 30, 40)
|
||||
Println("...", bitmap)
|
||||
|
||||
fx, fy := robotgo.FindBitmap(bit_map)
|
||||
fx, fy := robotgo.FindBitmap(bitmap)
|
||||
Println("FindBitmap------", fx, fy)
|
||||
|
||||
robotgo.SaveBitmap(bit_map, "test.png", 1)
|
||||
robotgo.SaveBitmap(bitmap, "test.png", 1)
|
||||
|
||||
// robotgo.MouseClick()
|
||||
robotgo.ScrollMouse(10, "up")
|
||||
|
|
|
|||
Loading…
Reference in a new issue