mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 14:43:55 +00:00
Update md & test
This commit is contained in:
parent
3a7b2789c9
commit
5a30749dfe
5
doc.md
5
doc.md
@ -203,7 +203,8 @@ robotgo.ScrollMouse(50, "down");
|
|||||||
|
|
||||||
Returns an object with .width and .height.
|
Returns an object with .width and .height.
|
||||||
|
|
||||||
###.ScreenCapture
|
###.CaptureScreen
|
||||||
|
//ScreenCapture
|
||||||
|
|
||||||
Gets part or all of the screen.
|
Gets part or all of the screen.
|
||||||
|
|
||||||
@ -213,7 +214,7 @@ robotgo.ScrollMouse(50, "down");
|
|||||||
y (optional)
|
y (optional)
|
||||||
height (optional)
|
height (optional)
|
||||||
width (optional)
|
width (optional)
|
||||||
If no arguments are provided, screen.capture will get the full screen.
|
If no arguments are provided, screencapture will get the full screen.
|
||||||
|
|
||||||
####Return:
|
####Return:
|
||||||
|
|
||||||
|
@ -22,6 +22,9 @@ func arobotgo() {
|
|||||||
// robotgo.KeyToggle("enter", "down")
|
// robotgo.KeyToggle("enter", "down")
|
||||||
robotgo.TypeString("en")
|
robotgo.TypeString("en")
|
||||||
|
|
||||||
|
bit_map := robotgo.CaptureScreen(10, 20, 30, 40)
|
||||||
|
Println("...", bit_map)
|
||||||
|
|
||||||
// robotgo.MouseClick()
|
// robotgo.MouseClick()
|
||||||
robotgo.ScrollMouse(10, "up")
|
robotgo.ScrollMouse(10, "up")
|
||||||
}
|
}
|
||||||
|
@ -102,7 +102,7 @@ robotgo.MoveMouse(100, 100);
|
|||||||
```
|
```
|
||||||
|
|
||||||
###.MoveMouseSmooth(x, y)
|
###.MoveMouseSmooth(x, y)
|
||||||
模拟鼠标向X,Y移动(像人类一样),用鼠标按钮向上
|
模拟鼠标向X,Y平滑移动(像人类一样),用鼠标按钮向上
|
||||||
|
|
||||||
Moves mouse to x, y human like, with the mouse button up.
|
Moves mouse to x, y human like, with the mouse button up.
|
||||||
|
|
||||||
@ -221,7 +221,8 @@ robotgo.ScrollMouse(50, "down");
|
|||||||
|
|
||||||
Returns an object with .width and .height.
|
Returns an object with .width and .height.
|
||||||
|
|
||||||
###.ScreenCapture
|
###.CaptureScreen
|
||||||
|
//ScreenCapture
|
||||||
获取部分或者全部屏幕
|
获取部分或者全部屏幕
|
||||||
Gets part or all of the screen.
|
Gets part or all of the screen.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user