mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 14:43:55 +00:00
Fixed color picker, Update README.md and docs
This commit is contained in:
parent
54e8f5f3fc
commit
fe8b496e72
@ -224,12 +224,12 @@ import (
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
keve := robotgo.AddEvent("k")
|
keve := robotgo.AddEvent("k")
|
||||||
if keve == 0 {
|
if keve {
|
||||||
fmt.Println("you press... ", "k")
|
fmt.Println("you press... ", "k")
|
||||||
}
|
}
|
||||||
|
|
||||||
mleft := robotgo.AddEvent("mleft")
|
mleft := robotgo.AddEvent("mleft")
|
||||||
if mleft == 0 {
|
if mleft {
|
||||||
fmt.Println("you press... ", "mouse left button")
|
fmt.Println("you press... ", "mouse left button")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -221,12 +221,12 @@ import (
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
keve := robotgo.AddEvent("k")
|
keve := robotgo.AddEvent("k")
|
||||||
if keve == 0 {
|
if keve {
|
||||||
fmt.Println("you press... ", "k")
|
fmt.Println("you press... ", "k")
|
||||||
}
|
}
|
||||||
|
|
||||||
mleft := robotgo.AddEvent("mleft")
|
mleft := robotgo.AddEvent("mleft")
|
||||||
if mleft == 0 {
|
if mleft {
|
||||||
fmt.Println("you press... ", "mouse left button")
|
fmt.Println("you press... ", "mouse left button")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -531,12 +531,12 @@ import (
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
keve := robotgo.AddEvent("k")
|
keve := robotgo.AddEvent("k")
|
||||||
if keve == 0 {
|
if keve {
|
||||||
fmt.Println("you press...", "k")
|
fmt.Println("you press...", "k")
|
||||||
}
|
}
|
||||||
|
|
||||||
mleft := robotgo.AddEvent("mleft")
|
mleft := robotgo.AddEvent("mleft")
|
||||||
if mleft == 0 {
|
if mleft {
|
||||||
fmt.Println("you press...", "mouse left button")
|
fmt.Println("you press...", "mouse left button")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -545,12 +545,12 @@ import (
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
keve := robotgo.AddEvent("k")
|
keve := robotgo.AddEvent("k")
|
||||||
if keve == 0 {
|
if keve {
|
||||||
fmt.Println("you press...", "k")
|
fmt.Println("you press...", "k")
|
||||||
}
|
}
|
||||||
|
|
||||||
mleft := robotgo.AddEvent("mleft")
|
mleft := robotgo.AddEvent("mleft")
|
||||||
if mleft == 0 {
|
if mleft {
|
||||||
fmt.Println("you press...", "mouse left button")
|
fmt.Println("you press...", "mouse left button")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -111,12 +111,12 @@ import (
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
keve := robotgo.AddEvent("k")
|
keve := robotgo.AddEvent("k")
|
||||||
if keve == 0 {
|
if keve {
|
||||||
fmt.Println("you press...", "k")
|
fmt.Println("you press...", "k")
|
||||||
}
|
}
|
||||||
|
|
||||||
mleft := robotgo.AddEvent("mleft")
|
mleft := robotgo.AddEvent("mleft")
|
||||||
if mleft == 0 {
|
if mleft {
|
||||||
fmt.Println("you press...", "mouse left button")
|
fmt.Println("you press...", "mouse left button")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
|
|
||||||
func colorPicker() {
|
func colorPicker() {
|
||||||
m := robotgo.AddEvent("mleft")
|
m := robotgo.AddEvent("mleft")
|
||||||
if m == 0 {
|
if m {
|
||||||
x, y := robotgo.GetMousePos()
|
x, y := robotgo.GetMousePos()
|
||||||
fmt.Println("mouse pos: ", x, y)
|
fmt.Println("mouse pos: ", x, y)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user