update examples

This commit is contained in:
vcaesar 2018-04-09 17:45:07 +08:00
parent cc49c369c7
commit f6cd1d99dd
3 changed files with 8 additions and 2 deletions

View File

@ -104,4 +104,7 @@ func main() {
fx, fy = robotgo.FindBitmap(openbit)
fmt.Println("FindBitmap------", fx, fy)
fx, fy = robotgo.FindPic("test.tif")
fmt.Println("FindPic------", fx, fy)
}

View File

@ -248,6 +248,9 @@ func bitmap() {
fx, fy = robotgo.FindBitmap(openbit)
fmt.Println("FindBitmap------", fx, fy)
fx, fy = robotgo.FindPic("test.tif")
fmt.Println("FindPic------", fx, fy)
}
func event() {

View File

@ -785,7 +785,7 @@ func SetKeyboardDelay(x int) {
// FindBitmap find the bitmap
//
// robotgo.FindBitmap(bitmap, subbitamp C.MMBitmapRef, tolerance float64)
// robotgo.FindBitmap(bitmap, subbitamp C.MMBitmapRef, tolerance float64)
//
func FindBitmap(args ...interface{}) (int, int) {
var (
@ -814,7 +814,7 @@ func FindBitmap(args ...interface{}) (int, int) {
// FindPic finding the image by path
//
// robotgo.FindPic(path string, subbitamp C.MMBitmapRef, tolerance float64)
// robotgo.FindPic(path string, subbitamp C.MMBitmapRef, tolerance float64)
//
func FindPic(path string, args ...interface{}) (int, int) {
var (