mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-05-31 06:13:55 +00:00
Update README.md and log
This commit is contained in:
parent
11ccaad187
commit
484e86d55f
@ -223,7 +223,7 @@ func main() {
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"fmt"
|
||||
|
||||
"github.com/go-vgo/robotgo"
|
||||
hook "github.com/robotn/gohook"
|
||||
|
@ -220,7 +220,7 @@ func main() {
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"fmt"
|
||||
|
||||
"github.com/go-vgo/robotgo"
|
||||
hook "github.com/robotn/gohook"
|
||||
|
@ -37,7 +37,7 @@ func addMouse() {
|
||||
fmt.Println("--- Please press left mouse button to see it's position and the right mouse button to exit ---")
|
||||
robotgo.EventHook(hook.MouseDown, []string{}, func(e hook.Event) {
|
||||
if e.Button == hook.MouseMap["left"] {
|
||||
fmt.Printf("mleft @ %v - %v\n", e.X, e.Y)
|
||||
fmt.Printf("mouse left @ %v - %v\n", e.X, e.Y)
|
||||
} else if e.Button == hook.MouseMap["right"] {
|
||||
robotgo.EventEnd()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user