Update README.md

This commit is contained in:
vCaesar 2016-11-24 16:19:01 +08:00
parent 743aca739d
commit 0f04eb3357
2 changed files with 6 additions and 2 deletions

View File

@ -82,7 +82,7 @@ import (
func main() {
robotgo.ScrollMouse(10, "up")
robogo.MouseClick("left",true)
robotgo.MouseClick("left",true)
robotgo.MoveMouseSmooth(100, 200, 1.0, 100.0)
}
```
@ -122,6 +122,8 @@ import (
func main() {
x, y := robotgo.GetMousePos()
Println("pos:", x, y)
color := robotgo.GetPixelColor(100, 200)
Println("color----", color)
}
```

View File

@ -79,7 +79,7 @@ import (
func main() {
robotgo.ScrollMouse(10, "up")
robogo.MouseClick("left",true)
robotgo.MouseClick("left",true)
robotgo.MoveMouseSmooth(100, 200, 1.0, 100.0)
}
```
@ -119,6 +119,8 @@ import (
func main() {
x, y := robotgo.GetMousePos()
Println("pos:", x, y)
color := robotgo.GetPixelColor(100, 200)
Println("color----", color)
}
```