mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 14:43:55 +00:00
Update examples
This commit is contained in:
parent
ca3c7a6c9b
commit
c76d2b6606
@ -34,6 +34,13 @@ func main() {
|
||||
fx, fy := robotgo.FindBitmap(bitmap)
|
||||
fmt.Println("FindBitmap------", fx, fy)
|
||||
|
||||
bit := robotgo.CaptureScreen(1, 2, 40, 40)
|
||||
fmt.Println("CaptureScreen...", bit)
|
||||
fx, fy = robotgo.FindBit(bit)
|
||||
fmt.Println("FindBitmap------", fx, fy)
|
||||
fx, fy = robotgo.FindBit(bit, bitmap)
|
||||
fmt.Println("FindBitmap------", fx, fy)
|
||||
|
||||
// returns new bitmap object created from a portion of another
|
||||
bitpos := robotgo.GetPortion(bitmap, 10, 10, 11, 10)
|
||||
fmt.Println(bitpos)
|
||||
|
@ -141,6 +141,13 @@ func bitmap() {
|
||||
fx, fy := robotgo.FindBitmap(bitmap)
|
||||
fmt.Println("FindBitmap------", fx, fy)
|
||||
|
||||
bit := robotgo.CaptureScreen(1, 2, 40, 40)
|
||||
fmt.Println("CaptureScreen...", bit)
|
||||
fx, fy = robotgo.FindBit(bit)
|
||||
fmt.Println("FindBitmap------", fx, fy)
|
||||
fx, fy = robotgo.FindBit(bit, bitmap)
|
||||
fmt.Println("FindBitmap------", fx, fy)
|
||||
|
||||
// returns new bitmap object created from a portion of another
|
||||
bitpos := robotgo.GetPortion(bitmap, 10, 10, 11, 10)
|
||||
fmt.Println(bitpos)
|
||||
|
Loading…
Reference in New Issue
Block a user