Function Reference


_WinAPI_GetWindowText

Retrieves the text of the specified window's title bar

#include <WinAPISysWin.au3>
_WinAPI_GetWindowText ( $hWnd )

Parameters

$hWnd Handle of the window

Return Value

Success: Windows title bar
Failure: Sets the @error flag to non-zero, call _WinAPI_GetLastError() to get extended error information

See Also

Search GetWindowText in MSDN Library.

Example

#include <WinAPISysWin.au3>

_Example()
Func _Example()
        Run("notepad.exe")
        Local $hWnd = WinWait("[CLASS:Notepad]", "")
        ConsoleWrite("! " & _WinAPI_GetWindowText($hWnd) & @CRLF)
EndFunc   ;==>_Example