Skip to content

Commit

Permalink
example: wowjump support vanilla wow client
Browse files Browse the repository at this point in the history
  • Loading branch information
whtiehack committed Oct 26, 2023
1 parent b844eba commit c6c0421
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion examples/wowjump/multiwindows.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,22 @@ func getHwnds() []win.HWND {
hwndArr = append(hwndArr, curh)
strArr = append(strArr, strconv.Itoa(int(curh)))
}
curh = 0
for {
// syscall.StringToUTF16Ptr("GxWindowClass")
//curh = winapi.FindWindowEx(0, curh, nil, syscall.StringToUTF16Ptr("ssl.csr - 记事本"))
curh = winapi.FindWindowEx(0, curh, syscall.StringToUTF16Ptr("GxWindowClassD3d"), nil)
if curh == 0 {
break
}
hwndArr = append(hwndArr, curh)
strArr = append(strArr, strconv.Itoa(int(curh)))
}
log.Println("hwndArr", hwndArr)
return hwndArr
}

//GetMultiLogout get need control WOW windows and need user confirm.
// GetMultiLogout get need control WOW windows and need user confirm.
func GetMultiLogout() []*Logout {
arr := getHwnds()
var logouts []*Logout
Expand Down
2 changes: 1 addition & 1 deletion examples/wowjump/resource.h.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c6c0421

Please sign in to comment.