mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 14:43:55 +00:00
Update README.md
This commit is contained in:
parent
9dcffd344a
commit
0425190a57
@ -234,8 +234,14 @@ func main() {
|
||||
fpid, err := robotgo.FindIds("Google")
|
||||
if err == nil {
|
||||
fmt.Println("pids...", fpid)
|
||||
|
||||
if len(fpid) > 0 {
|
||||
robotgo.ActivePID(fpid[0])
|
||||
}
|
||||
}
|
||||
|
||||
robotgo.ActiveName("chrome")
|
||||
|
||||
isExist, err := robotgo.PidExists(100)
|
||||
if err == nil {
|
||||
fmt.Println("pid exists is", isExist)
|
||||
|
@ -232,8 +232,14 @@ func main() {
|
||||
fpid, err := robotgo.FindIds("Google")
|
||||
if err == nil {
|
||||
fmt.Println("pids...", fpid)
|
||||
|
||||
if len(fpid) > 0 {
|
||||
robotgo.ActivePID(fpid[0])
|
||||
}
|
||||
}
|
||||
|
||||
robotgo.ActiveName("chrome")
|
||||
|
||||
isExist, err := robotgo.PidExists(100)
|
||||
if err == nil {
|
||||
fmt.Println("pid exists is", isExist)
|
||||
|
Loading…
Reference in New Issue
Block a user