mirror of
https://github.com/go-vgo/robotgo
synced 2026-05-24 02:08:33 +00:00
update event example code add print hint
This commit is contained in:
parent
7ec766458d
commit
f569b05cde
1 changed files with 4 additions and 0 deletions
|
|
@ -18,11 +18,13 @@ import (
|
|||
)
|
||||
|
||||
func addEvent() {
|
||||
fmt.Println("--- Please press ctrl + shift + q ---")
|
||||
ok := robotgo.AddEvents("q", "ctrl", "shift")
|
||||
if ok {
|
||||
fmt.Println("add events...")
|
||||
}
|
||||
|
||||
fmt.Println("--- Please press w---")
|
||||
ok = robotgo.AddEvents("w")
|
||||
if ok {
|
||||
fmt.Println("add events")
|
||||
|
|
@ -80,6 +82,8 @@ func event() {
|
|||
}
|
||||
|
||||
func main() {
|
||||
fmt.Println("test begin...")
|
||||
|
||||
addEvent()
|
||||
|
||||
event()
|
||||
|
|
|
|||
Loading…
Reference in a new issue