mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-05-31 06:13:55 +00:00
Update examples and docs
This commit is contained in:
parent
7dfebac8b9
commit
9956b6be37
@ -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 New Issue
Block a user