add more Window example

This commit is contained in:
vcaesar 2018-07-30 01:23:58 +08:00
parent 50b4b5c734
commit 2e9399a05f
2 changed files with 7 additions and 1 deletions

View File

@ -58,6 +58,12 @@ func window() {
if len(fpid) > 0 {
robotgo.ActivePID(fpid[0])
// Windows
// hwnd := robotgo.FindWindow("google")
// hwnd := robotgo.GetHWND()
robotgo.MinWindow(fpid[0])
robotgo.MaxWindow(fpid[0])
robotgo.Kill(fpid[0])
}
}

View File

@ -67,7 +67,7 @@ import (
const (
// Version get the robotgo version
Version string = "v0.49.0.616, Olympus Mons!"
Version string = "v0.49.0.630, Olympus Mons!"
)
// GetVersion get the robotgo version