First commit
This commit is contained in:
22
test/main.go
Normal file
22
test/main.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/go-vgo/robotgo"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
fmt.Println("--- Please press ctrl + shift + q ---")
|
||||
// start hook
|
||||
s := robotgo.Start()
|
||||
// end hook
|
||||
defer robotgo.End()
|
||||
|
||||
for ev := range s {
|
||||
fmt.Println("hook: ", ev)
|
||||
fmt.Println(ev.Kind)
|
||||
fmt.Println(ev.Rawcode)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user