add getBounds example

This commit is contained in:
vcaesar 2018-08-16 08:46:29 -04:00
parent 245f48f4f2
commit 3e024a3fe1

View File

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