mirror of
https://github.com/go-vgo/robotgo
synced 2026-05-23 17:59:12 +00:00
update examples
This commit is contained in:
parent
cc49c369c7
commit
f6cd1d99dd
3 changed files with 8 additions and 2 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Reference in a new issue