mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-03 15:43:55 +00:00
Update docs
This commit is contained in:
parent
1e5894d1f7
commit
fadc99f537
@ -419,7 +419,7 @@ robotgo.ScrollMouse(50, "down")
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
. "fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/go-vgo/robotgo"
|
"github.com/go-vgo/robotgo"
|
||||||
)
|
)
|
||||||
@ -427,12 +427,12 @@ import (
|
|||||||
func main() {
|
func main() {
|
||||||
keve := robotgo.AddEvent("k")
|
keve := robotgo.AddEvent("k")
|
||||||
if keve == 0 {
|
if keve == 0 {
|
||||||
Println("you press...", "k")
|
fmt.Println("you press...", "k")
|
||||||
}
|
}
|
||||||
|
|
||||||
mleft := robotgo.AddEvent("mleft")
|
mleft := robotgo.AddEvent("mleft")
|
||||||
if mleft == 0 {
|
if mleft == 0 {
|
||||||
Println("you press...", "mouse left button")
|
fmt.Println("you press...", "mouse left button")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
@ -434,7 +434,7 @@ robotgo.ScrollMouse(50, "down")
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
. "fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/go-vgo/robotgo"
|
"github.com/go-vgo/robotgo"
|
||||||
)
|
)
|
||||||
@ -442,12 +442,12 @@ import (
|
|||||||
func main() {
|
func main() {
|
||||||
keve := robotgo.AddEvent("k")
|
keve := robotgo.AddEvent("k")
|
||||||
if keve == 0 {
|
if keve == 0 {
|
||||||
Println("you press...", "k")
|
fmt.Println("you press...", "k")
|
||||||
}
|
}
|
||||||
|
|
||||||
mleft := robotgo.AddEvent("mleft")
|
mleft := robotgo.AddEvent("mleft")
|
||||||
if mleft == 0 {
|
if mleft == 0 {
|
||||||
Println("you press...", "mouse left button")
|
fmt.Println("you press...", "mouse left button")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
@ -52,7 +52,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
version string = "v0.43.0.269, Matterhorn Alps!"
|
version string = "v0.43.0.272, Matterhorn Alps!"
|
||||||
)
|
)
|
||||||
|
|
||||||
// GetVersion get version
|
// GetVersion get version
|
||||||
|
Loading…
Reference in New Issue
Block a user