We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa077ec commit f11d01eCopy full SHA for f11d01e
examples/window/main.go
@@ -77,6 +77,14 @@ func findIds() {
77
}
78
79
80
+func active() {
81
+ robotgo.ActivePID(100)
82
+ // robotgo.Sleep(2)
83
+ robotgo.ActiveName("code")
84
+ robotgo.Sleep(1)
85
+ robotgo.ActiveName("chrome")
86
+}
87
+
88
func findName() {
89
// find the process name by the process id
90
name, err := robotgo.FindName(100)
@@ -124,15 +132,14 @@ func window() {
124
132
////////////////////////////////////////////////////////////////////////////////
125
133
126
134
alert()
127
-
135
+ //
128
136
get()
129
137
130
138
findIds()
131
- robotgo.ActiveName("chrome")
139
+ active()
140
141
findName()
142
143
ps()
144
145
// close current Window
0 commit comments