Fixed color picker, Update README.md and docs

This commit is contained in:
vcaesar 2019-02-21 10:00:10 -04:00
parent 54e8f5f3fc
commit fe8b496e72
6 changed files with 11 additions and 11 deletions

View File

@ -224,12 +224,12 @@ import (
func main() {
keve := robotgo.AddEvent("k")
if keve == 0 {
if keve {
fmt.Println("you press... ", "k")
}
mleft := robotgo.AddEvent("mleft")
if mleft == 0 {
if mleft {
fmt.Println("you press... ", "mouse left button")
}
}

View File

@ -221,12 +221,12 @@ import (
func main() {
keve := robotgo.AddEvent("k")
if keve == 0 {
if keve {
fmt.Println("you press... ", "k")
}
mleft := robotgo.AddEvent("mleft")
if mleft == 0 {
if mleft {
fmt.Println("you press... ", "mouse left button")
}
}

View File

@ -531,12 +531,12 @@ import (
func main() {
keve := robotgo.AddEvent("k")
if keve == 0 {
if keve {
fmt.Println("you press...", "k")
}
mleft := robotgo.AddEvent("mleft")
if mleft == 0 {
if mleft {
fmt.Println("you press...", "mouse left button")
}
}

View File

@ -545,12 +545,12 @@ import (
func main() {
keve := robotgo.AddEvent("k")
if keve == 0 {
if keve {
fmt.Println("you press...", "k")
}
mleft := robotgo.AddEvent("mleft")
if mleft == 0 {
if mleft {
fmt.Println("you press...", "mouse left button")
}
}

View File

@ -111,12 +111,12 @@ import (
func main() {
keve := robotgo.AddEvent("k")
if keve == 0 {
if keve {
fmt.Println("you press...", "k")
}
mleft := robotgo.AddEvent("mleft")
if mleft == 0 {
if mleft {
fmt.Println("you press...", "mouse left button")
}
}

View File

@ -8,7 +8,7 @@ import (
func colorPicker() {
m := robotgo.AddEvent("mleft")
if m == 0 {
if m {
x, y := robotgo.GetMousePos()
fmt.Println("mouse pos: ", x, y)