mirror of
https://github.com/go-vgo/robotgo
synced 2026-05-24 10:19:01 +00:00
Update examples and docs
This commit is contained in:
parent
7dfebac8b9
commit
9956b6be37
5 changed files with 8 additions and 8 deletions
|
|
@ -330,7 +330,7 @@ robotgo.ScrollMouse(50, "down")
|
|||
|
||||
Gets part or all of the screen.
|
||||
|
||||
BCaptureScreen Returns a go struct
|
||||
GoCaptureScreen Returns a go struct
|
||||
Capture_Screen (Drop support)
|
||||
|
||||
#### Arguments:
|
||||
|
|
|
|||
|
|
@ -344,7 +344,7 @@ robotgo.ScrollMouse(50, "down")
|
|||
获取部分或者全部屏幕
|
||||
Gets part or all of the screen.
|
||||
|
||||
BCaptureScreen Returns a go struct
|
||||
GoCaptureScreen Returns a go struct
|
||||
Capture_Screen (废弃)
|
||||
|
||||
#### 参数:
|
||||
|
|
|
|||
|
|
@ -109,8 +109,8 @@ func screen() {
|
|||
abitMap := robotgo.CaptureScreen()
|
||||
fmt.Println("abitMap...", abitMap)
|
||||
|
||||
gbitMap := robotgo.BCaptureScreen()
|
||||
fmt.Println("BCaptureScreen...", gbitMap.Width)
|
||||
gbitMap := robotgo.GoCaptureScreen()
|
||||
fmt.Println("GoCaptureScreen...", gbitMap.Width)
|
||||
// fmt.Println("...", gbitmap.Width, gbitmap.BytesPerPixel)
|
||||
|
||||
// gets the screen width and height
|
||||
|
|
|
|||
|
|
@ -109,8 +109,8 @@ func screen() {
|
|||
abitMap := robotgo.CaptureScreen()
|
||||
fmt.Println("abitMap...", abitMap)
|
||||
|
||||
gbitMap := robotgo.BCaptureScreen()
|
||||
fmt.Println("BCaptureScreen...", gbitMap.Width)
|
||||
gbitMap := robotgo.GoCaptureScreen()
|
||||
fmt.Println("GoCaptureScreen...", gbitMap.Width)
|
||||
// fmt.Println("...", gbitmap.Width, gbitmap.BytesPerPixel)
|
||||
|
||||
// gets the screen width and height
|
||||
|
|
|
|||
|
|
@ -25,8 +25,8 @@ func main() {
|
|||
abitMap := robotgo.CaptureScreen()
|
||||
fmt.Println("abitMap...", abitMap)
|
||||
|
||||
gbitMap := robotgo.BCaptureScreen()
|
||||
fmt.Println("BCaptureScreen...", gbitMap.Width)
|
||||
gbitMap := robotgo.GoCaptureScreen()
|
||||
fmt.Println("GoCaptureScreen...", gbitMap.Width)
|
||||
// fmt.Println("...", gbitmap.Width, gbitmap.BytesPerPixel)
|
||||
|
||||
// gets the screen width and height
|
||||
|
|
|
|||
Loading…
Reference in a new issue