This commit is contained in:
vCaesar 2016-10-23 20:04:13 +08:00
parent dc6366ede5
commit a5a084333b
2 changed files with 18 additions and 18 deletions

20
doc.md
View File

@ -90,7 +90,7 @@
```Go
//Move the mouse to 100, 100 on the screen.
robotgo.MoveMouse(100, 100);
robotgo.MoveMouse(100, 100)
```
###.MoveMouseSmooth(x, y)
@ -113,7 +113,7 @@ robotgo.MoveMouse(100, 100);
####Examples:
```Go
robogo.MouseClick();
robogo.MouseClick()
```
###.mouseToggle(down, button)
@ -128,7 +128,7 @@ robotgo.MoveMouse(100, 100);
####Examples:
```Go
robot.MouseToggle("down");
robotgo.MouseToggle("down")
```
###.DragMouse(x, y)
@ -143,10 +143,10 @@ robot.MouseToggle("down");
```Go
//Mouse down at 0, 0 and then drag to 100, 100 and release.
robotgo.MoveMouse(0, 0);
robotgo.MouseToggle("down");
robotgo.DragMouse(100, 100);
robotgo.MouseToggle("up");
robotgo.MoveMouse(0, 0)
robotgo.MouseToggle("down")
robotgo.DragMouse(100, 100)
robotgo.MouseToggle("up")
```
###.GetMousePos()
@ -160,7 +160,7 @@ robotgo.MouseToggle("up");
####Examples:
```Go
x,y := robotgo.GetMousePos();
x,y := robotgo.GetMousePos()
fmt.Println("pos:", x, y)
```
@ -176,9 +176,9 @@ fmt.Println("pos:", x, y)
####Examples:
```Go
robotgo.ScrollMouse(50, "up");
robotgo.ScrollMouse(50, "up")
robotgo.ScrollMouse(50, "down");
robotgo.ScrollMouse(50, "down")
```

View File

@ -139,7 +139,7 @@ robotgo.MoveMouse(100, 100);
####例子:
```Go
robot.MouseToggle("down");
robotgo.MouseToggle("down")
```
###.DragMouse(x, y)
@ -155,10 +155,10 @@ robot.MouseToggle("down");
```Go
//Mouse down at 0, 0 and then drag to 100, 100 and release.
robotgo.MoveMouse(0, 0);
robotgo.MouseToggle("down");
robotgo.DragMouse(100, 100);
robotgo.MouseToggle("up");
robotgo.MoveMouse(0, 0)
robotgo.MouseToggle("down")
robotgo.DragMouse(100, 100)
robotgo.MouseToggle("up")
```
###.GetMousePos()
@ -173,7 +173,7 @@ robotgo.MouseToggle("up");
####例子:
```Go
x,y := robotgo.GetMousePos();
x,y := robotgo.GetMousePos()
fmt.Println("pos:", x, y)
```
@ -192,9 +192,9 @@ fmt.Println("pos:", x, y)
####例子:
```Go
robotgo.ScrollMouse(50, "up");
robotgo.ScrollMouse(50, "up")
robotgo.ScrollMouse(50, "down");
robotgo.ScrollMouse(50, "down")
```