mirror of
https://github.com/robotn/gohook.git
synced 2024-11-24 13:26:54 +08:00
键盘事件监控, from : https://github.com/robotn/gohook.git
chan | ||
event | ||
example | ||
hook | ||
test | ||
.gitignore | ||
appveyor.yml | ||
circle.yml | ||
extern.go | ||
go.mod | ||
hook.go | ||
LICENSE | ||
README.md | ||
tables.go |
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.