From fdf239b3f4c9878aba0b9e3fcf4466a8f16cc16a Mon Sep 17 00:00:00 2001 From: vCaesar Date: Sat, 8 Oct 2016 20:45:18 +0800 Subject: [PATCH] fix doc err --- doc.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/doc.md b/doc.md index 5f2ff88..6b9ffd0 100644 --- a/doc.md +++ b/doc.md @@ -1,4 +1,4 @@ -#Methods +#Methods: ##Keyboard Keys @@ -23,6 +23,7 @@ GetXDisplayName(Linux) SetXDisplayName(Linux) ##Bitmap + This is a work in progress. ##Keyboard @@ -73,7 +74,7 @@ Sets the delay in milliseconds to sleep after a mouse event. This is 10ms by default. -####Arguments +####Arguments: ms - Time to sleep in milliseconds. @@ -81,7 +82,7 @@ Moves mouse to x, y instantly, with the mouse button up. -####Arguments +####Arguments: x,y @@ -96,7 +97,7 @@ robotgo.MoveMouse(100, 100); Moves mouse to x, y human like, with the mouse button up. -####Arguments +####Arguments: x,y @@ -104,7 +105,7 @@ robotgo.MoveMouse(100, 100); Clicks the mouse. -####Arguments +####Arguments: button (optional) - Accepts left, right, or middle. Defaults to left. double (optional) - Set to true to perform a double click. Defaults to false. @@ -159,7 +160,7 @@ robotgo.MouseToggle("up"); ####Examples: ```Go -x,y = robotgo.GetMousePos(); +x,y := robotgo.GetMousePos(); fmt.Println("pos:", x, y) ``` @@ -206,7 +207,7 @@ robotgo.ScrollMouse(50, "down"); Gets part or all of the screen. -####Arguments +####Arguments: x (optional) y (optional)