mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-05-31 06:13:55 +00:00
15 lines
279 B
Go
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)
|
|
}
|