robotgo/robotgo_mac_win.go
2018-07-10 20:54:35 +08:00

16 lines
297 B
Go

// +build darwin windows
package robotgo
// 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
if len(args) > 0 {
hwnd = args[0]
}
internalActive(pid, hwnd)
return nil
}