mirror of
https://github.com/robotn/gohook.git
synced 2024-12-04 20:06:42 +08:00
Update README.md
This commit is contained in:
parent
80a5bf3c7e
commit
2a5dc199e5
@ -13,7 +13,7 @@ package main
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/robotn/gohook"
|
hook "github.com/robotn/gohook"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -15,7 +15,7 @@ func addEvent() {
|
|||||||
|
|
||||||
fmt.Println("--- Please press w---")
|
fmt.Println("--- Please press w---")
|
||||||
hook.Register(hook.KeyDown, []string{"w"}, func(e hook.Event) {
|
hook.Register(hook.KeyDown, []string{"w"}, func(e hook.Event) {
|
||||||
fmt.Println("w")
|
fmt.Println("w-")
|
||||||
})
|
})
|
||||||
|
|
||||||
s := hook.Start()
|
s := hook.Start()
|
Loading…
Reference in New Issue
Block a user