mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 06:33:56 +00:00
Update README.md and FindIds
This commit is contained in:
parent
e7e29b5f3f
commit
debec4a237
@ -146,7 +146,7 @@ func main() {
|
||||
arr := []string{"alt", "command"}
|
||||
robotgo.KeyTap("i", arr)
|
||||
|
||||
robotgo.WriteAll("测试")
|
||||
robotgo.WriteAll("Test")
|
||||
text, err := robotgo.ReadAll()
|
||||
if err == nil {
|
||||
fmt.Println(text)
|
||||
|
@ -974,7 +974,9 @@ func FindIds(name string) ([]int32, error) {
|
||||
}
|
||||
|
||||
for i := 0; i < len(nps); i++ {
|
||||
abool := strings.Contains(nps[i].Name, name)
|
||||
psname := strings.ToLower(nps[i].Name)
|
||||
name = strings.ToLower(name)
|
||||
abool := strings.Contains(psname, name)
|
||||
if abool {
|
||||
pids = append(pids, nps[i].Pid)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user