mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-12 02:54:02 +00:00
add getTitle by pid example
This commit is contained in:
parent
de0ebaaf3c
commit
3f699058b4
@ -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