mirror of https://github.com/robotn/gohook.git
键盘事件监控, from : https://github.com/robotn/gohook.git
1da30b1d41 | ||
---|---|---|
chan | ||
event | ||
hook | ||
test | ||
.gitignore | ||
LICENSE | ||
README.md | ||
appveyor.yml | ||
circle.yml | ||
extern.go | ||
go.mod | ||
hook.go | ||
tables.go |
README.md
gohook
package main
import (
"fmt"
"github.com/robotn/gohook"
)
func main() {
EvChan := hook.Start()
defer hook.End()
for ev := range EvChan {
fmt.Println(ev)
}
}
Based on libuiohook.