mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-02 23:23:55 +00:00
Cleanup README.md
This commit is contained in:
parent
2fe1c266bb
commit
8fb24a222f
@ -197,7 +197,6 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
//Println("test")
|
|
||||||
abool := robotgo.ShowAlert("test", "robotgo")
|
abool := robotgo.ShowAlert("test", "robotgo")
|
||||||
if abool == 0 {
|
if abool == 0 {
|
||||||
Println("ok@@@", "ok")
|
Println("ok@@@", "ok")
|
||||||
|
11
README_zh.md
11
README_zh.md
@ -87,14 +87,12 @@ sudo apt-get install libxkbcommon-dev
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
//. "fmt"
|
|
||||||
|
|
||||||
"github.com/go-vgo/robotgo"
|
"github.com/go-vgo/robotgo"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
robotgo.ScrollMouse(10, "up")
|
robotgo.ScrollMouse(10, "up")
|
||||||
robotgo.MouseClick("left",true)
|
robotgo.MouseClick("left", true)
|
||||||
robotgo.MoveMouseSmooth(100, 200, 1.0, 100.0)
|
robotgo.MoveMouseSmooth(100, 200, 1.0, 100.0)
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@ -104,9 +102,7 @@ func main() {
|
|||||||
```Go
|
```Go
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
//. "fmt"
|
|
||||||
|
|
||||||
"github.com/go-vgo/robotgo"
|
"github.com/go-vgo/robotgo"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -196,13 +192,12 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
//Println("test")
|
|
||||||
abool := robotgo.ShowAlert("test", "robotgo")
|
abool := robotgo.ShowAlert("test", "robotgo")
|
||||||
if abool == 0 {
|
if abool == 0 {
|
||||||
Println("ok@@@", "ok")
|
Println("ok@@@", "ok")
|
||||||
}
|
}
|
||||||
|
|
||||||
title:=robotgo.GetTitle()
|
title := robotgo.GetTitle()
|
||||||
Println("title@@@", title)
|
Println("title@@@", title)
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user