mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 14:43:55 +00:00
Update examples
This commit is contained in:
parent
ca4c34ec21
commit
3a980999ee
@ -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 New Issue
Block a user