mirror of
https://github.com/go-vgo/robotgo
synced 2026-05-23 09:48:59 +00:00
Update README.md
This commit is contained in:
parent
4ad733fe83
commit
47ca6812fe
2 changed files with 7 additions and 5 deletions
|
|
@ -163,8 +163,8 @@ import (
|
|||
func main() {
|
||||
robotgo.MouseSleep = 100
|
||||
|
||||
robotgo.ScrollMouse(10, "up")
|
||||
robotgo.ScrollMouse(20, "right")
|
||||
robotgo.ScrollDir(10, "up")
|
||||
robotgo.ScrollDir(20, "right")
|
||||
|
||||
robotgo.Scroll(0, -10)
|
||||
robotgo.Scroll(100, 0)
|
||||
|
|
@ -242,7 +242,7 @@ import (
|
|||
)
|
||||
|
||||
func main() {
|
||||
x, y := robotgo.GetMousePos()
|
||||
x, y := robotgo.Location()
|
||||
fmt.Println("pos: ", x, y)
|
||||
|
||||
color := robotgo.GetPixelColor(100, 200)
|
||||
|
|
@ -455,7 +455,7 @@ func main() {
|
|||
robotgo.KeyToggle("a", fpid[0])
|
||||
robotgo.KeyToggle("a", fpid[0], "up")
|
||||
|
||||
robotgo.ActivePID(fpid[0])
|
||||
robotgo.ActivePid(fpid[0])
|
||||
|
||||
robotgo.Kill(fpid[0])
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
# Robotgo
|
||||
|
||||
## !!! Warning: this page not updated !!!
|
||||
|
||||
[](https://github.com/go-vgo/robotgo/commits/master)
|
||||
[](https://circleci.com/gh/go-vgo/robotgo)
|
||||
[](https://travis-ci.org/go-vgo/robotgo)
|
||||
|
|
@ -67,7 +69,7 @@ xcode-select --install
|
|||
|
||||
```
|
||||
Or the other GCC (But you should compile the "libpng" with yourself.
|
||||
Or you can removed the bitmap.go )
|
||||
Or you can removed the bitmap.go.)
|
||||
```
|
||||
|
||||
#### For everything else (Linux 等其他系统):
|
||||
|
|
|
|||
Loading…
Reference in a new issue