diff --git a/README.md b/README.md index 2f11fc9..b09f518 100644 --- a/README.md +++ b/README.md @@ -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]) } diff --git a/README_zh.md b/README_zh.md index 7bac20c..c6f84d9 100644 --- a/README_zh.md +++ b/README_zh.md @@ -1,5 +1,7 @@ # 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) [![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) @@ -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 等其他系统):