mirror of
https://github.com/robotn/gohook.git
synced 2024-12-03 19:36:54 +08:00
键盘事件监控, from : https://github.com/robotn/gohook.git
ac130dbd90
add modern and concurrent API, merged #10 |
||
---|---|---|
.github/workflows | ||
chan | ||
event | ||
example | ||
hook | ||
test | ||
.gitignore | ||
appveyor.yml | ||
circle.yml | ||
extern.go | ||
go.mod | ||
go.sum | ||
hook_test.go | ||
hook.go | ||
keycode.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("hook: ", ev)
}
}
Based on libuiohook.