mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 14:43:55 +00:00
Update README.md and CHANGELOG.md
This commit is contained in:
parent
d76ab89c9f
commit
5dd3b6cd66
14
README.md
14
README.md
@ -229,6 +229,20 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
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")
|
ok := robotgo.AddEvents("q", "ctrl", "shift")
|
||||||
if ok {
|
if ok {
|
||||||
fmt.Println("add events...")
|
fmt.Println("add events...")
|
||||||
|
14
README_zh.md
14
README_zh.md
@ -226,6 +226,20 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
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")
|
ok := robotgo.AddEvents("q", "ctrl", "shift")
|
||||||
if ok {
|
if ok {
|
||||||
fmt.Println("add events...")
|
fmt.Println("add events...")
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
add gohook modern and concurrent API
|
add gohook modern and concurrent API
|
||||||
add new gohook examples, thks for cauefcr
|
add new gohook examples, thks for cauefcr
|
||||||
|
|
||||||
Support for multiple screens
|
Support for multiple screens
|
||||||
add getMousePos() multiple screens support
|
add getMousePos() multiple screens support
|
||||||
add move smooth multiple screens support
|
add move smooth multiple screens support
|
||||||
|
|
||||||
@ -22,6 +22,8 @@ add int32_t types support
|
|||||||
update keycode type use uint16 with gohook, not type convert
|
update keycode type use uint16 with gohook, not type convert
|
||||||
add ToBitmapBytes func (#204)
|
add ToBitmapBytes func (#204)
|
||||||
|
|
||||||
|
gohook: sched_yield support for non-POSIX windows gcc
|
||||||
|
|
||||||
add gops test code support
|
add gops test code support
|
||||||
add Process() function test code
|
add Process() function test code
|
||||||
add more gops test code
|
add more gops test code
|
||||||
@ -294,7 +296,7 @@ update gops and other mod files fixed bug
|
|||||||
|
|
||||||
# Sierra Nevada
|
# Sierra Nevada
|
||||||
|
|
||||||
### Add
|
### Add
|
||||||
|
|
||||||
- [NEW] Add asynchronous event support
|
- [NEW] Add asynchronous event support
|
||||||
- [NEW] Add multiple keypress event listener support
|
- [NEW] Add multiple keypress event listener support
|
||||||
@ -333,7 +335,7 @@ update gops and other mod files fixed bug
|
|||||||
|
|
||||||
- [FIX] Add AddEvents func, Fixed #98, #61, #69...
|
- [FIX] Add AddEvents func, Fixed #98, #61, #69...
|
||||||
- [FIX] Add asynchronous event support, Fixed #196, #89...
|
- [FIX] Add asynchronous event support, Fixed #196, #89...
|
||||||
- [FIX] add AddMouse func, Fixed #138
|
- [FIX] add AddMouse func, Fixed #138
|
||||||
- [FIX] Update _Ctype_char to C.char, Fixed go1.12 build error #191
|
- [FIX] Update _Ctype_char to C.char, Fixed go1.12 build error #191
|
||||||
- [FIX] Update hook, Fixed #195 warning and json break bug
|
- [FIX] Update hook, Fixed #195 warning and json break bug
|
||||||
- [FIX] Fixed color picker, Update README.md and docs
|
- [FIX] Fixed color picker, Update README.md and docs
|
||||||
|
Loading…
Reference in New Issue
Block a user