键盘事件监控, from : https://github.com/robotn/gohook.git
Go to file
2018-09-16 19:25:32 -04:00
event add event c file 2018-09-16 19:25:32 -04:00
hook Update README.md and move code 2018-09-04 15:25:08 -04:00
test Update README.md and move code 2018-09-04 15:25:08 -04:00
.gitignore Initial commit 2017-01-21 16:52:05 +08:00
hook.go Initial commit 2017-02-06 16:55:01 +08:00
LICENSE Initial commit 2017-01-21 16:52:05 +08:00
README.md Update README.md and move code 2018-09-04 15:25:08 -04:00

gohook

This is a work in progress.

package main

import (
	"fmt"

	"go-vgo/robotn/gohook"
)

func main() {
	hook.AsyncHook()
	veve := hook.AddEvent("v")
	if veve == 0 {
		fmt.Println("v...")
	}
}