mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-02 23:23:55 +00:00
Update README.md
This commit is contained in:
parent
1a19c22489
commit
07840dd448
10
README.md
10
README.md
@ -231,6 +231,16 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
fpid, err := robotgo.FindIds("Google")
|
||||||
|
if err == nil {
|
||||||
|
fmt.Println("pids...", fpid)
|
||||||
|
}
|
||||||
|
|
||||||
|
isExist, err := robotgo.PidExists(100)
|
||||||
|
if err == nil {
|
||||||
|
fmt.Println("pid exists is", isExist)
|
||||||
|
}
|
||||||
|
|
||||||
abool := robotgo.ShowAlert("test", "robotgo")
|
abool := robotgo.ShowAlert("test", "robotgo")
|
||||||
if abool == 0 {
|
if abool == 0 {
|
||||||
fmt.Println("ok@@@", "ok")
|
fmt.Println("ok@@@", "ok")
|
||||||
|
10
README_zh.md
10
README_zh.md
@ -228,6 +228,16 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
fpid, err := robotgo.FindIds("Google")
|
||||||
|
if err == nil {
|
||||||
|
fmt.Println("pids...", fpid)
|
||||||
|
}
|
||||||
|
|
||||||
|
isExist, err := robotgo.PidExists(100)
|
||||||
|
if err == nil {
|
||||||
|
fmt.Println("pid exists is", isExist)
|
||||||
|
}
|
||||||
|
|
||||||
abool := robotgo.ShowAlert("test", "robotgo")
|
abool := robotgo.ShowAlert("test", "robotgo")
|
||||||
if abool == 0 {
|
if abool == 0 {
|
||||||
fmt.Println("ok@@@", "ok")
|
fmt.Println("ok@@@", "ok")
|
||||||
|
Loading…
Reference in New Issue
Block a user