键盘事件监控, from : https://github.com/robotn/gohook.git
Go to file
vcaesar 9fa8b6c408 add example and update code style 2019-02-19 11:32:48 -04:00
chan update code use c99 and update code style 2019-02-19 11:03:09 -04:00
event add example and update code style 2019-02-19 11:32:48 -04:00
example add example and update code style 2019-02-19 11:32:48 -04:00
hook Made the library Asyncronous (#2) 2019-02-19 10:31:25 -04:00
test add example and update code style 2019-02-19 11:32:48 -04:00
.gitignore Made the library Asyncronous (#2) 2019-02-19 10:31:25 -04:00
LICENSE Initial commit 2017-01-21 16:52:05 +08:00
README.md add example and update code style 2019-02-19 11:32:48 -04:00
appveyor.yml add example and update code style 2019-02-19 11:32:48 -04:00
circle.yml rename circle ci 2018-09-16 20:25:36 -04:00
extern.go update godoc and code style 2019-02-19 10:47:03 -04:00
go.mod replace all import and gofmt code 2019-02-19 10:34:55 -04:00
hook.go update code use c99 and update code style 2019-02-19 11:03:09 -04:00
tables.go add example and update code style 2019-02-19 11:32:48 -04:00

README.md

gohook

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(ev)
	}
}

Based on libuiohook.