mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-02 23:23:55 +00:00
Update examples
This commit is contained in:
parent
ca4c34ec21
commit
3a980999ee
@ -234,8 +234,6 @@ func window() {
|
|||||||
title := robotgo.GetTitle()
|
title := robotgo.GetTitle()
|
||||||
fmt.Println("title-----", title)
|
fmt.Println("title-----", title)
|
||||||
|
|
||||||
// close current Window
|
|
||||||
robotgo.CloseWindow()
|
|
||||||
// set Window Active
|
// set Window Active
|
||||||
robotgo.SetActive(mdata)
|
robotgo.SetActive(mdata)
|
||||||
|
|
||||||
@ -274,6 +272,9 @@ func window() {
|
|||||||
if err == nil {
|
if err == nil {
|
||||||
fmt.Println("process: ", ps)
|
fmt.Println("process: ", ps)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// close current Window
|
||||||
|
robotgo.CloseWindow()
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -48,8 +48,6 @@ func main() {
|
|||||||
title := robotgo.GetTitle()
|
title := robotgo.GetTitle()
|
||||||
fmt.Println("title-----", title)
|
fmt.Println("title-----", title)
|
||||||
|
|
||||||
// close current Window
|
|
||||||
robotgo.CloseWindow()
|
|
||||||
// set Window Active
|
// set Window Active
|
||||||
robotgo.SetActive(mdata)
|
robotgo.SetActive(mdata)
|
||||||
|
|
||||||
@ -88,4 +86,7 @@ func main() {
|
|||||||
if err == nil {
|
if err == nil {
|
||||||
fmt.Println("process: ", ps)
|
fmt.Println("process: ", ps)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// close current Window
|
||||||
|
robotgo.CloseWindow()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user