mirror of
https://github.com/go-vgo/robotgo
synced 2026-05-24 02:08:33 +00:00
Update examples
This commit is contained in:
parent
ca4c34ec21
commit
3a980999ee
2 changed files with 6 additions and 4 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue