We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Golang, GCC
You MUST delete the content above including this line before posting, otherwise your issue will be invalid.
package main import ( "fmt" // "github.com/go-vgo/robotgo" hook "github.com/robotn/gohook" ) func main() { add() low() event() } func add() { fmt.Println("--- Please press ctrl + shift + q to stop hook ---") hook.Register(hook.KeyDown, []string{"q", "ctrl", "shift"}, func(e hook.Event) { fmt.Println("ctrl-shift-q") hook.End() }) fmt.Println("--- Please press capslock---") hook.Register(hook.KeyDown, []string{"capslock"}, func(e hook.Event) { fmt.Println("capslock") }) s := hook.Start() <-hook.Process(s) } func low() { evChan := hook.Start() defer hook.End() for ev := range evChan { fmt.Println("hook: ", ev) } } func event() { ok := hook.AddEvents("q", "ctrl", "shift") if ok { fmt.Println("add events...") } keve := hook.AddEvent("k") if keve { fmt.Println("you press... ", "k") } mleft := hook.AddEvent("mleft") if mleft { fmt.Println("you press... ", "mouse left button") } }
Nothing happens after pressing capslock
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Golang, GCC
is installed correctly before installing RobotGo.You MUST delete the content above including this line before posting, otherwise your issue will be invalid.
Description
Nothing happens after pressing capslock
The text was updated successfully, but these errors were encountered: