mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-05 00:03:55 +00:00
update examples
This commit is contained in:
parent
cc49c369c7
commit
f6cd1d99dd
@ -104,4 +104,7 @@ func main() {
|
|||||||
|
|
||||||
fx, fy = robotgo.FindBitmap(openbit)
|
fx, fy = robotgo.FindBitmap(openbit)
|
||||||
fmt.Println("FindBitmap------", fx, fy)
|
fmt.Println("FindBitmap------", fx, fy)
|
||||||
|
|
||||||
|
fx, fy = robotgo.FindPic("test.tif")
|
||||||
|
fmt.Println("FindPic------", fx, fy)
|
||||||
}
|
}
|
||||||
|
@ -248,6 +248,9 @@ func bitmap() {
|
|||||||
|
|
||||||
fx, fy = robotgo.FindBitmap(openbit)
|
fx, fy = robotgo.FindBitmap(openbit)
|
||||||
fmt.Println("FindBitmap------", fx, fy)
|
fmt.Println("FindBitmap------", fx, fy)
|
||||||
|
|
||||||
|
fx, fy = robotgo.FindPic("test.tif")
|
||||||
|
fmt.Println("FindPic------", fx, fy)
|
||||||
}
|
}
|
||||||
|
|
||||||
func event() {
|
func event() {
|
||||||
|
@ -785,7 +785,7 @@ func SetKeyboardDelay(x int) {
|
|||||||
|
|
||||||
// FindBitmap find the bitmap
|
// 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) {
|
func FindBitmap(args ...interface{}) (int, int) {
|
||||||
var (
|
var (
|
||||||
@ -814,7 +814,7 @@ func FindBitmap(args ...interface{}) (int, int) {
|
|||||||
|
|
||||||
// FindPic finding the image by path
|
// 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) {
|
func FindPic(path string, args ...interface{}) (int, int) {
|
||||||
var (
|
var (
|
||||||
|
Loading…
Reference in New Issue
Block a user