Update README.md and FindIds

This commit is contained in:
vCaesar 2017-07-04 20:19:39 +08:00
parent e7e29b5f3f
commit debec4a237
2 changed files with 4 additions and 2 deletions

View File

@ -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)

View File

@ -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)
}