#Include <WinAPI.au3>
Run('Au3Info.exe')
WinWait('[class:Au3Info]')
Local $hAu3info = _WinAPI_FindWindow('Au3Info', '(暂停中)AutoIt v3 窗口信息工具')
ConsoleWrite($hAu3info&@CRLF)
$hAu3info = FindWindowExW($hAu3info,0,'Edit','')
ConsoleWrite($hAu3info&@CRLF)
Func FindWindowExW($hWndParent, $hWndChildAfter, $lpszClass, $lpszWindow)
Local $aResult = DllCall("user32.dll", "HWND", "FindWindowExW", "HWND", $hWndParent, "HWND", $hWndChildAfter, "wstr", $lpszClass, "wstr", $lpszWindow)
If Not @error Then Return $aResult[0]
Return 0
EndFunc ;==>FindWindowExW
|