mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 14:43:55 +00:00
Update README.md
This commit is contained in:
parent
753e2801d9
commit
6621146431
@ -223,6 +223,11 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
ok := robotgo.AddEvents("q", "ctrl", "shift")
|
||||||
|
if ok {
|
||||||
|
fmt.Println("add events...")
|
||||||
|
}
|
||||||
|
|
||||||
keve := robotgo.AddEvent("k")
|
keve := robotgo.AddEvent("k")
|
||||||
if keve {
|
if keve {
|
||||||
fmt.Println("you press... ", "k")
|
fmt.Println("you press... ", "k")
|
||||||
|
@ -220,6 +220,11 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
ok := robotgo.AddEvents("q", "ctrl", "shift")
|
||||||
|
if ok {
|
||||||
|
fmt.Println("add events...")
|
||||||
|
}
|
||||||
|
|
||||||
keve := robotgo.AddEvent("k")
|
keve := robotgo.AddEvent("k")
|
||||||
if keve {
|
if keve {
|
||||||
fmt.Println("you press... ", "k")
|
fmt.Println("you press... ", "k")
|
||||||
|
Loading…
Reference in New Issue
Block a user