mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 14:43:55 +00:00
add getBounds example
This commit is contained in:
parent
245f48f4f2
commit
3e024a3fe1
@ -58,6 +58,9 @@ func window() {
|
||||
if len(fpid) > 0 {
|
||||
robotgo.ActivePID(fpid[0])
|
||||
|
||||
x, y, w, h := robotgo.GetBounds(fpid[0])
|
||||
fmt.Println("GetBounds is: ", x, y, w, h)
|
||||
|
||||
// Windows
|
||||
// hwnd := robotgo.FindWindow("google")
|
||||
// hwnd := robotgo.GetHWND()
|
||||
|
Loading…
Reference in New Issue
Block a user