Update md & test

This commit is contained in:
vCaesar 2016-10-16 18:32:57 +08:00
parent 3a7b2789c9
commit 5a30749dfe
3 changed files with 9 additions and 4 deletions

5
doc.md
View File

@ -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:

View File

@ -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")
}

View File

@ -102,7 +102,7 @@ robotgo.MoveMouse(100, 100);
```
###.MoveMouseSmooth(x, y)
模拟鼠标向XY移动(像人类一样),用鼠标按钮向上
模拟鼠标向XY平滑移动(像人类一样),用鼠标按钮向上
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.