mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 14:43:55 +00:00
add getTitle by pid example (#157)
This commit is contained in:
parent
c8e0da71ff
commit
60c7f1fbb1
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user