Update README.md and CHANGELOG.md

This commit is contained in:
vcaesar 2020-05-27 11:01:59 -04:00
parent d76ab89c9f
commit 5dd3b6cd66
3 changed files with 33 additions and 3 deletions

View File

@ -229,6 +229,20 @@ import (
)
func main() {
fmt.Println("--- Please press ctrl + shift + q to stop hook ---")
robotgo.EventHook(hook.KeyDown, []string{"q", "ctrl", "shift"}, func(e hook.Event) {
fmt.Println("ctrl-shift-q")
robotgo.EventEnd()
})
fmt.Println("--- Please press w---")
robotgo.EventHook(hook.KeyDown, []string{"w"}, func(e hook.Event) {
fmt.Println("w")
})
s := robotgo.EventStart()
<-robotgo.EventProcess(s)
ok := robotgo.AddEvents("q", "ctrl", "shift")
if ok {
fmt.Println("add events...")

View File

@ -226,6 +226,20 @@ import (
)
func main() {
fmt.Println("--- Please press ctrl + shift + q to stop hook ---")
robotgo.EventHook(hook.KeyDown, []string{"q", "ctrl", "shift"}, func(e hook.Event) {
fmt.Println("ctrl-shift-q")
robotgo.EventEnd()
})
fmt.Println("--- Please press w---")
robotgo.EventHook(hook.KeyDown, []string{"w"}, func(e hook.Event) {
fmt.Println("w")
})
s := robotgo.EventStart()
<-robotgo.EventProcess(s)
ok := robotgo.AddEvents("q", "ctrl", "shift")
if ok {
fmt.Println("add events...")

View File

@ -22,6 +22,8 @@ add int32_t types support
update keycode type use uint16 with gohook, not type convert
add ToBitmapBytes func (#204)
gohook: sched_yield support for non-POSIX windows gcc
add gops test code support
add Process() function test code
add more gops test code