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