Update README.md

This commit is contained in:
vcaesar 2022-09-12 15:20:48 -07:00
parent 4ad733fe83
commit 47ca6812fe
2 changed files with 7 additions and 5 deletions

View File

@ -163,8 +163,8 @@ import (
func main() { func main() {
robotgo.MouseSleep = 100 robotgo.MouseSleep = 100
robotgo.ScrollMouse(10, "up") robotgo.ScrollDir(10, "up")
robotgo.ScrollMouse(20, "right") robotgo.ScrollDir(20, "right")
robotgo.Scroll(0, -10) robotgo.Scroll(0, -10)
robotgo.Scroll(100, 0) robotgo.Scroll(100, 0)
@ -242,7 +242,7 @@ import (
) )
func main() { func main() {
x, y := robotgo.GetMousePos() x, y := robotgo.Location()
fmt.Println("pos: ", x, y) fmt.Println("pos: ", x, y)
color := robotgo.GetPixelColor(100, 200) color := robotgo.GetPixelColor(100, 200)
@ -455,7 +455,7 @@ func main() {
robotgo.KeyToggle("a", fpid[0]) robotgo.KeyToggle("a", fpid[0])
robotgo.KeyToggle("a", fpid[0], "up") robotgo.KeyToggle("a", fpid[0], "up")
robotgo.ActivePID(fpid[0]) robotgo.ActivePid(fpid[0])
robotgo.Kill(fpid[0]) robotgo.Kill(fpid[0])
} }

View File

@ -1,5 +1,7 @@
# Robotgo # Robotgo
## !!! Warning: this page not updated !!!
[![Build Status](https://github.com/go-vgo/robotgo/workflows/Go/badge.svg)](https://github.com/go-vgo/robotgo/commits/master) [![Build Status](https://github.com/go-vgo/robotgo/workflows/Go/badge.svg)](https://github.com/go-vgo/robotgo/commits/master)
[![CircleCI Status](https://circleci.com/gh/go-vgo/robotgo.svg?style=shield)](https://circleci.com/gh/go-vgo/robotgo) [![CircleCI Status](https://circleci.com/gh/go-vgo/robotgo.svg?style=shield)](https://circleci.com/gh/go-vgo/robotgo)
[![Build Status](https://travis-ci.org/go-vgo/robotgo.svg)](https://travis-ci.org/go-vgo/robotgo) [![Build Status](https://travis-ci.org/go-vgo/robotgo.svg)](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 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 等其他系统): #### For everything else (Linux 等其他系统):