键盘事件监控, from : https://github.com/robotn/gohook.git
Go to file
2020-01-11 11:26:47 -04:00
.github/workflows Update go.yml 2019-12-06 13:10:05 -04:00
chan update code use c99 and update code style 2019-02-19 11:03:09 -04:00
event add center mouse and update code style 2019-03-05 15:29:54 -04:00
example update hook example 2019-10-31 11:08:50 -04:00
hook Update some logger code, use warn not error 2019-12-08 15:57:06 -04:00
test add example and update code style 2019-02-19 11:32:48 -04:00
.gitignore update .gitignore 2019-04-13 13:26:57 -04:00
appveyor.yml update appveyor to go1.13.6 2020-01-11 11:26:47 -04:00
circle.yml update and fmt circle.yml 2019-12-12 13:23:25 -04:00
extern.go update go send json.Unmarshal error log 2019-06-22 12:58:07 -04:00
go.mod update go mod file 2019-10-26 13:05:46 -04:00
hook.go update cgo code and version 2019-11-13 12:37:29 -04:00
LICENSE Initial commit 2017-01-21 16:52:05 +08:00
README.md Update README.md, Add more CI badge 2019-12-07 14:27:27 -04:00
tables.go refactor code, fixed bug and api 2019-02-20 11:07:25 -04:00

gohook

Build Status CircleCI Status Appveyor Go Report Card GoDoc

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.