From 5a30749dfe19b5551d916de8a94dac34b774b78e Mon Sep 17 00:00:00 2001 From: vCaesar Date: Sun, 16 Oct 2016 18:32:57 +0800 Subject: [PATCH] Update md & test --- doc.md | 5 +++-- test/main.go | 3 +++ zh_doc.md | 5 +++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/doc.md b/doc.md index bfe253a..9e73d0c 100644 --- a/doc.md +++ b/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: diff --git a/test/main.go b/test/main.go index eddca0a..79e8669 100644 --- a/test/main.go +++ b/test/main.go @@ -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") } diff --git a/zh_doc.md b/zh_doc.md index 82375ff..a112b3b 100644 --- a/zh_doc.md +++ b/zh_doc.md @@ -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.