From d520880502e1a78fe0a016f43b503443d75e2fef Mon Sep 17 00:00:00 2001 From: vcaesar Date: Thu, 7 Sep 2017 21:42:11 +0800 Subject: [PATCH] Update examples --- examples/bitmap/main.go | 1 + examples/main.go | 4 ++++ examples/screen/main.go | 3 +++ robotgo.go | 2 +- 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/examples/bitmap/main.go b/examples/bitmap/main.go index 25396c9..9193ead 100644 --- a/examples/bitmap/main.go +++ b/examples/bitmap/main.go @@ -62,6 +62,7 @@ func main() { // open image bitmap openbit := robotgo.OpenBitmap("test.tif") fmt.Println("openBitmap...", openbit) + fx, fy = robotgo.FindBitmap(openbit) fmt.Println("FindBitmap------", fx, fy) } diff --git a/examples/main.go b/examples/main.go index 33f2616..5daf5aa 100644 --- a/examples/main.go +++ b/examples/main.go @@ -106,6 +106,9 @@ func screen() { // Read the screen //////////////////////////////////////////////////////////////////////////////// + abitMap := robotgo.CaptureScreen() + fmt.Println("abitMap...", abitMap) + gbitMap := robotgo.BCaptureScreen() fmt.Println("BCaptureScreen...", gbitMap.Width) // fmt.Println("...", gbitmap.Width, gbitmap.BytesPerPixel) @@ -169,6 +172,7 @@ func bitmap() { // open image bitmap openbit := robotgo.OpenBitmap("test.tif") fmt.Println("openBitmap...", openbit) + fx, fy = robotgo.FindBitmap(openbit) fmt.Println("FindBitmap------", fx, fy) } diff --git a/examples/screen/main.go b/examples/screen/main.go index 8a4243f..4ce9026 100644 --- a/examples/screen/main.go +++ b/examples/screen/main.go @@ -22,6 +22,9 @@ func main() { // Read the screen //////////////////////////////////////////////////////////////////////////////// + abitMap := robotgo.CaptureScreen() + fmt.Println("abitMap...", abitMap) + gbitMap := robotgo.BCaptureScreen() fmt.Println("BCaptureScreen...", gbitMap.Width) // fmt.Println("...", gbitmap.Width, gbitmap.BytesPerPixel) diff --git a/robotgo.go b/robotgo.go index 3e60fbd..449bd7a 100644 --- a/robotgo.go +++ b/robotgo.go @@ -55,7 +55,7 @@ import ( ) const ( - version string = "v0.46.0.377, Pyrenees Mountains!" + version string = "v0.46.0.382, Pyrenees Mountains!" ) // GetVersion get version