diff --git a/example/main.go b/example/main.go index 739e509..1e41ba0 100644 --- a/example/main.go +++ b/example/main.go @@ -151,7 +151,8 @@ func main() { fmt.Println("ok@@@", "ok") } robotgo.ShowAlert("hello", "robotgo", "Ok", "Cancel") - // robotgo.GetPID() + pid := robotgo.GetPID() //Get the current process id + fmt.Println("pid----", pid) mdata := robotgo.GetActive() //Get current Window Active hwnd := robotgo.GetHandle() //Get current Window Handle fmt.Println("hwnd---", hwnd) diff --git a/robotgo.go b/robotgo.go index f8a8cd6..a6e00d1 100644 --- a/robotgo.go +++ b/robotgo.go @@ -39,7 +39,7 @@ import ( ) const ( - version string = "v0.42.0.221,Mount Ngauruhoe!" + version string = "v0.42.0.222,Mount Ngauruhoe!" ) //GetVersion get version