Skip to content

Commit 3a4fd51

Browse files
committed
examples: wowjump suport 20 classic
1 parent fda0357 commit 3a4fd51

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

examples/wowjump/logout.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ const (
2424
ENTERING
2525
)
2626

27+
// 进程有1119端口就是在排队?
28+
2729
// Logout control Wow window status.
2830
type Logout struct {
2931
prevTime time.Time

examples/wowjump/multiwindows.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,17 @@ func getHwnds() []win.HWND {
3434
hwndArr = append(hwndArr, curh)
3535
strArr = append(strArr, strconv.Itoa(int(curh)))
3636
}
37+
curh = 0
38+
for {
39+
// syscall.StringToUTF16Ptr("GxWindowClass")
40+
//curh = winapi.FindWindowEx(0, curh, nil, syscall.StringToUTF16Ptr("ssl.csr - 记事本"))
41+
curh = winapi.FindWindowEx(0, curh, syscall.StringToUTF16Ptr("waApplication Window"), nil)
42+
if curh == 0 {
43+
break
44+
}
45+
hwndArr = append(hwndArr, curh)
46+
strArr = append(strArr, strconv.Itoa(int(curh)))
47+
}
3748
log.Println("hwndArr", hwndArr)
3849
return hwndArr
3950
}

0 commit comments

Comments
 (0)