Update examples

This commit is contained in:
vCaesar 2017-07-02 12:31:58 +08:00
parent ca4c34ec21
commit 3a980999ee
2 changed files with 6 additions and 4 deletions

View File

@ -234,8 +234,6 @@ func window() {
title := robotgo.GetTitle()
fmt.Println("title-----", title)
// close current Window
robotgo.CloseWindow()
// set Window Active
robotgo.SetActive(mdata)
@ -274,6 +272,9 @@ func window() {
if err == nil {
fmt.Println("process: ", ps)
}
// close current Window
robotgo.CloseWindow()
}
func main() {

View File

@ -48,8 +48,6 @@ func main() {
title := robotgo.GetTitle()
fmt.Println("title-----", title)
// close current Window
robotgo.CloseWindow()
// set Window Active
robotgo.SetActive(mdata)
@ -88,4 +86,7 @@ func main() {
if err == nil {
fmt.Println("process: ", ps)
}
// close current Window
robotgo.CloseWindow()
}