Skip to content

Commit c6c0421

Browse files
committed
example: wowjump support vanilla wow client
1 parent b844eba commit c6c0421

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

examples/wowjump/multiwindows.go

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,22 @@ func getHwnds() []win.HWND {
2323
hwndArr = append(hwndArr, curh)
2424
strArr = append(strArr, strconv.Itoa(int(curh)))
2525
}
26+
curh = 0
27+
for {
28+
// syscall.StringToUTF16Ptr("GxWindowClass")
29+
//curh = winapi.FindWindowEx(0, curh, nil, syscall.StringToUTF16Ptr("ssl.csr - 记事本"))
30+
curh = winapi.FindWindowEx(0, curh, syscall.StringToUTF16Ptr("GxWindowClassD3d"), nil)
31+
if curh == 0 {
32+
break
33+
}
34+
hwndArr = append(hwndArr, curh)
35+
strArr = append(strArr, strconv.Itoa(int(curh)))
36+
}
2637
log.Println("hwndArr", hwndArr)
2738
return hwndArr
2839
}
2940

30-
//GetMultiLogout get need control WOW windows and need user confirm.
41+
// GetMultiLogout get need control WOW windows and need user confirm.
3142
func GetMultiLogout() []*Logout {
3243
arr := getHwnds()
3344
var logouts []*Logout

examples/wowjump/resource.h.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)