From 906e2a0461f68492a1cfc8ab21887ac486a76070 Mon Sep 17 00:00:00 2001 From: vcaesar Date: Thu, 14 Feb 2019 11:03:34 -0400 Subject: [PATCH] Update godoc --- robotgo_mac_win.go | 1 + robotgo_unix.go | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/robotgo_mac_win.go b/robotgo_mac_win.go index 3acc163..a4031fc 100644 --- a/robotgo_mac_win.go +++ b/robotgo_mac_win.go @@ -23,6 +23,7 @@ func GetBounds(pid int32, args ...int) (int, int, int, int) { } // ActivePID active the window by PID, +// // If args[0] > 0 on the Windows platform via a window handle to active func ActivePID(pid int32, args ...int) error { var hwnd int diff --git a/robotgo_unix.go b/robotgo_unix.go index b1e6d62..c5d3b54 100644 --- a/robotgo_unix.go +++ b/robotgo_unix.go @@ -62,6 +62,7 @@ func ActivePIDC(pid int32, args ...int) { } // ActivePID active the window by PID, +// // If args[0] > 0 on the Windows platform via a window handle to active, // If args[0] > 0 on the unix platform via a xid to active func ActivePID(pid int32, args ...int) error { @@ -82,7 +83,7 @@ func ActivePID(pid int32, args ...int) error { return nil } - // get xid from pid + // get the xid from pid xid, err := GetXidFromPid(xu, pid) if err != nil { return err