update
This commit is contained in:
parent
93eacb31bf
commit
660d2504ec
|
@ -2,6 +2,7 @@ package main
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
hook "github.com/robotn/gohook"
|
||||
)
|
||||
|
@ -16,7 +17,9 @@ func main() {
|
|||
hook.Register(hook.KeyDown, []string{
|
||||
"1",
|
||||
}, func(e hook.Event) {
|
||||
fmt.Println("=========", string(e.Keychar), "====", e.String())
|
||||
fmt.Println(
|
||||
"按键 : ", string(e.Keychar),
|
||||
"触发时间 : ", time.Now().Format("2006-01-02 15:04:05"))
|
||||
//hook.End()
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue