mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-02 23:23:55 +00:00
fix doc err
This commit is contained in:
parent
4290d4e174
commit
fdf239b3f4
15
doc.md
15
doc.md
@ -1,4 +1,4 @@
|
|||||||
#Methods
|
#Methods:
|
||||||
|
|
||||||
##Keyboard
|
##Keyboard
|
||||||
Keys
|
Keys
|
||||||
@ -23,6 +23,7 @@
|
|||||||
GetXDisplayName(Linux)
|
GetXDisplayName(Linux)
|
||||||
SetXDisplayName(Linux)
|
SetXDisplayName(Linux)
|
||||||
##Bitmap
|
##Bitmap
|
||||||
|
This is a work in progress.
|
||||||
|
|
||||||
|
|
||||||
##Keyboard
|
##Keyboard
|
||||||
@ -73,7 +74,7 @@
|
|||||||
|
|
||||||
Sets the delay in milliseconds to sleep after a mouse event. This is 10ms by default.
|
Sets the delay in milliseconds to sleep after a mouse event. This is 10ms by default.
|
||||||
|
|
||||||
####Arguments
|
####Arguments:
|
||||||
|
|
||||||
ms - Time to sleep in milliseconds.
|
ms - Time to sleep in milliseconds.
|
||||||
|
|
||||||
@ -81,7 +82,7 @@
|
|||||||
|
|
||||||
Moves mouse to x, y instantly, with the mouse button up.
|
Moves mouse to x, y instantly, with the mouse button up.
|
||||||
|
|
||||||
####Arguments
|
####Arguments:
|
||||||
|
|
||||||
x,y
|
x,y
|
||||||
|
|
||||||
@ -96,7 +97,7 @@ robotgo.MoveMouse(100, 100);
|
|||||||
|
|
||||||
Moves mouse to x, y human like, with the mouse button up.
|
Moves mouse to x, y human like, with the mouse button up.
|
||||||
|
|
||||||
####Arguments
|
####Arguments:
|
||||||
|
|
||||||
x,y
|
x,y
|
||||||
|
|
||||||
@ -104,7 +105,7 @@ robotgo.MoveMouse(100, 100);
|
|||||||
|
|
||||||
Clicks the mouse.
|
Clicks the mouse.
|
||||||
|
|
||||||
####Arguments
|
####Arguments:
|
||||||
|
|
||||||
button (optional) - Accepts left, right, or middle. Defaults to left.
|
button (optional) - Accepts left, right, or middle. Defaults to left.
|
||||||
double (optional) - Set to true to perform a double click. Defaults to false.
|
double (optional) - Set to true to perform a double click. Defaults to false.
|
||||||
@ -159,7 +160,7 @@ robotgo.MouseToggle("up");
|
|||||||
####Examples:
|
####Examples:
|
||||||
|
|
||||||
```Go
|
```Go
|
||||||
x,y = robotgo.GetMousePos();
|
x,y := robotgo.GetMousePos();
|
||||||
fmt.Println("pos:", x, y)
|
fmt.Println("pos:", x, y)
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -206,7 +207,7 @@ robotgo.ScrollMouse(50, "down");
|
|||||||
|
|
||||||
Gets part or all of the screen.
|
Gets part or all of the screen.
|
||||||
|
|
||||||
####Arguments
|
####Arguments:
|
||||||
|
|
||||||
x (optional)
|
x (optional)
|
||||||
y (optional)
|
y (optional)
|
||||||
|
Loading…
Reference in New Issue
Block a user