Retrieves the text of the specified window's title bar
#include <WinAPISysWin.au3>
_WinAPI_GetWindowText ( $hWnd )
$hWnd | Handle of the window |
Success: | Windows title bar |
Failure: | Sets the @error flag to non-zero, call _WinAPI_GetLastError() to get extended error information |
Search GetWindowText in MSDN Library.
#include <WinAPISysWin.au3>
_Example()
Func _Example()
Run("notepad.exe")
Local $hWnd = WinWait("[CLASS:Notepad]", "")
ConsoleWrite("! " & _WinAPI_GetWindowText($hWnd) & @CRLF)
EndFunc ;==>_Example