add getTitle by pid example (#157)

This commit is contained in:
vz 2018-08-23 10:49:39 -04:00 committed by GitHub
parent c8e0da71ff
commit 60c7f1fbb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,6 +58,9 @@ func window() {
if len(fpid) > 0 {
robotgo.ActivePID(fpid[0])
tl := robotgo.GetTitle(fpid[0])
fmt.Println("pid[0] title is: ", tl)
x, y, w, h := robotgo.GetBounds(fpid[0])
fmt.Println("GetBounds is: ", x, y, w, h)