x, y pos for Screen example

This commit is contained in:
Rahil 2017-04-02 13:23:35 +05:00 committed by GitHub
parent 13d76e7e8b
commit 34c99df687

View File

@ -154,7 +154,7 @@ import (
func main() {
x, y := robotgo.GetMousePos()
fmt.Println("pos:", x, y)
color := robotgo.GetPixelColor(100, 200)
color := robotgo.GetPixelColor(x, y)
fmt.Println("color----", color)
}
```