diff --git a/examples/bitmap/main.go b/examples/bitmap/main.go index 012f7af..3337200 100644 --- a/examples/bitmap/main.go +++ b/examples/bitmap/main.go @@ -30,15 +30,15 @@ func main() { bitmap := robotgo.CaptureScreen(100, 200, 30, 40) fmt.Println("CaptureScreen...", bitmap) + // searches for needle in bitmap + fx, fy := robotgo.FindBit(bitmap) + fmt.Println("FindBitmap------", fx, fy) + color := robotgo.GetColor(bitmap, 1, 2) fmt.Println("color...", color) cx, cy := robotgo.FindColor(bitmap, color, 1.0) fmt.Println("pos...", cx, cy) - // searches for needle in bitmap - fx, fy := robotgo.FindBit(bitmap) - fmt.Println("FindBitmap------", fx, fy) - bit := robotgo.CaptureScreen(1, 2, 40, 40) fmt.Println("CaptureScreen...", bit) fx, fy = robotgo.FindBitmap(bit) diff --git a/examples/main.go b/examples/main.go index d705dfa..3f15059 100644 --- a/examples/main.go +++ b/examples/main.go @@ -140,15 +140,15 @@ func bitmap() { bitmap := robotgo.CaptureScreen(100, 200, 30, 40) fmt.Println("CaptureScreen...", bitmap) + // searches for needle in bitmap + fx, fy := robotgo.FindBit(bitmap) + fmt.Println("FindBitmap------", fx, fy) + color := robotgo.GetColor(bitmap, 1, 2) fmt.Println("color...", color) cx, cy := robotgo.FindColor(bitmap, color, 1.0) fmt.Println("pos...", cx, cy) - // searches for needle in bitmap - fx, fy := robotgo.FindBit(bitmap) - fmt.Println("FindBitmap------", fx, fy) - bit := robotgo.CaptureScreen(1, 2, 40, 40) fmt.Println("CaptureScreen...", bit) fx, fy = robotgo.FindBitmap(bit) diff --git a/robotgo.go b/robotgo.go index 76e87d3..bad7185 100644 --- a/robotgo.go +++ b/robotgo.go @@ -55,7 +55,7 @@ import ( ) const ( - version string = "v0.46.0.385, Pyrenees Mountains!" + version string = "v0.46.0.400, Pyrenees Mountains!" ) // GetVersion get version