mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-05 08:13:55 +00:00
Update godoc
This commit is contained in:
parent
ca56f9d5e6
commit
906e2a0461
@ -23,6 +23,7 @@ func GetBounds(pid int32, args ...int) (int, int, int, int) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ActivePID active the window by PID,
|
// 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 Windows platform via a window handle to active
|
||||||
func ActivePID(pid int32, args ...int) error {
|
func ActivePID(pid int32, args ...int) error {
|
||||||
var hwnd int
|
var hwnd int
|
||||||
|
@ -62,6 +62,7 @@ func ActivePIDC(pid int32, args ...int) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ActivePID active the window by PID,
|
// 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 Windows platform via a window handle to active,
|
||||||
// If args[0] > 0 on the unix platform via a xid to active
|
// If args[0] > 0 on the unix platform via a xid to active
|
||||||
func ActivePID(pid int32, args ...int) error {
|
func ActivePID(pid int32, args ...int) error {
|
||||||
@ -82,7 +83,7 @@ func ActivePID(pid int32, args ...int) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// get xid from pid
|
// get the xid from pid
|
||||||
xid, err := GetXidFromPid(xu, pid)
|
xid, err := GetXidFromPid(xu, pid)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user