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