mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-02 23:23:55 +00:00
update godoc and fmt code
This commit is contained in:
parent
b99914bc5e
commit
cc49c369c7
10
robotgo.go
10
robotgo.go
@ -784,6 +784,9 @@ func SetKeyboardDelay(x int) {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// FindBitmap find the bitmap
|
// FindBitmap find the bitmap
|
||||||
|
//
|
||||||
|
// robotgo.FindBitmap(bitmap, subbitamp C.MMBitmapRef, tolerance float64)
|
||||||
|
//
|
||||||
func FindBitmap(args ...interface{}) (int, int) {
|
func FindBitmap(args ...interface{}) (int, int) {
|
||||||
var (
|
var (
|
||||||
bit C.MMBitmapRef
|
bit C.MMBitmapRef
|
||||||
@ -810,7 +813,10 @@ func FindBitmap(args ...interface{}) (int, int) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FindPic finding the image by path
|
// FindPic finding the image by path
|
||||||
func FindPic(path string, args...interface{})(int, int){
|
//
|
||||||
|
// robotgo.FindPic(path string, subbitamp C.MMBitmapRef, tolerance float64)
|
||||||
|
//
|
||||||
|
func FindPic(path string, args ...interface{}) (int, int) {
|
||||||
var (
|
var (
|
||||||
sbit C.MMBitmapRef
|
sbit C.MMBitmapRef
|
||||||
tolerance float64
|
tolerance float64
|
||||||
@ -832,7 +838,7 @@ func FindPic(path string, args...interface{})(int, int){
|
|||||||
|
|
||||||
fx, fy := FindBitmap(openbit, sbit, tolerance)
|
fx, fy := FindBitmap(openbit, sbit, tolerance)
|
||||||
|
|
||||||
return fx,fy
|
return fx, fy
|
||||||
}
|
}
|
||||||
|
|
||||||
// FindEveryBitmap find the every bitmap
|
// FindEveryBitmap find the every bitmap
|
||||||
|
Loading…
Reference in New Issue
Block a user