robotgo/robotgo_mac_win.go
2018-07-10 20:02:18 +08:00

15 lines
279 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) {
var hwnd int
if len(args) > 0 {
hwnd = args[0]
}
internalActive(pid, hwnd)
}