Update README.md

This commit is contained in:
vcaesar 2021-10-12 12:13:06 -04:00
parent 088d674453
commit dc5f64ef65
2 changed files with 12 additions and 6 deletions

View File

@ -132,11 +132,12 @@ func main() {
robotgo.ScrollMouse(10, "up")
robotgo.Scroll(100, 200)
robotgo.MoveMouse(10, 10)
robotgo.Move(10, 10)
robotgo.Drag(10, 10)
robotgo.MouseClick("left", true)
robotgo.MoveMouseSmooth(100, 200, 1.0, 100.0)
robotgo.Click("left", true)
robotgo.MoveSmooth(100, 200, 1.0, 100.0)
robotgo.MouseToggle("up")
}
```
@ -169,6 +170,8 @@ func main() {
arr := []string{"alt", "command"}
robotgo.KeyTap("i", arr)
robotgo.KeyToggle("a", "down")
robotgo.WriteAll("Test")
text, err := robotgo.ReadAll()
if err == nil {

View File

@ -130,11 +130,12 @@ func main() {
robotgo.ScrollMouse(10, "up")
robotgo.Scroll(100, 200)
robotgo.MoveMouse(10, 10)
robotgo.Move(10, 10)
robotgo.Drag(10, 10)
robotgo.MouseClick("left", true)
robotgo.MoveMouseSmooth(100, 200, 1.0, 100.0)
robotgo.Click("left", true)
robotgo.MoveSmooth(100, 200, 1.0, 100.0)
robotgo.MouseToggle("up")
}
```
@ -167,6 +168,8 @@ func main() {
arr := []string{"alt", "command"}
robotgo.KeyTap("i", arr)
robotgo.KeyToggle("a", "down")
robotgo.WriteAll("テストする")
text, err := robotgo.ReadAll()
if err == nil {