mirror of
https://github.com/go-vgo/robotgo
synced 2026-05-24 10:19:01 +00:00
Update md & test
This commit is contained in:
parent
3a7b2789c9
commit
5a30749dfe
3 changed files with 9 additions and 4 deletions
5
doc.md
5
doc.md
|
|
@ -203,7 +203,8 @@ robotgo.ScrollMouse(50, "down");
|
|||
|
||||
Returns an object with .width and .height.
|
||||
|
||||
###.ScreenCapture
|
||||
###.CaptureScreen
|
||||
//ScreenCapture
|
||||
|
||||
Gets part or all of the screen.
|
||||
|
||||
|
|
@ -213,7 +214,7 @@ robotgo.ScrollMouse(50, "down");
|
|||
y (optional)
|
||||
height (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:
|
||||
|
||||
|
|
|
|||
|
|
@ -22,6 +22,9 @@ func arobotgo() {
|
|||
// robotgo.KeyToggle("enter", "down")
|
||||
robotgo.TypeString("en")
|
||||
|
||||
bit_map := robotgo.CaptureScreen(10, 20, 30, 40)
|
||||
Println("...", bit_map)
|
||||
|
||||
// robotgo.MouseClick()
|
||||
robotgo.ScrollMouse(10, "up")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@ robotgo.MoveMouse(100, 100);
|
|||
```
|
||||
|
||||
###.MoveMouseSmooth(x, y)
|
||||
模拟鼠标向X,Y移动(像人类一样),用鼠标按钮向上
|
||||
模拟鼠标向X,Y平滑移动(像人类一样),用鼠标按钮向上
|
||||
|
||||
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.
|
||||
|
||||
###.ScreenCapture
|
||||
###.CaptureScreen
|
||||
//ScreenCapture
|
||||
获取部分或者全部屏幕
|
||||
Gets part or all of the screen.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue