Obtient le texte de la barre de titre de la fenêtre spécifiée
#include <WinAPISysWin.au3>
_WinAPI_GetWindowText ( $hWnd )
$hWnd | Handle de la fenêtre |
Succès: | Retourne le texte de la barre de titre de la fenêtre |
Échec: | Définit @error <> 0, appelez _WinAPI_GetLastError() pour obtenir des informations sur l'erreur. |
Consultez GetWindowText dans la librairie MSDN.
#include <WinAPISysWin.au3> _Example() Func _Example() Run("notepad.exe") Local $hWnd = WinWait("[CLASS:Notepad]", "") ConsoleWrite("! " & _WinAPI_GetWindowText($hWnd) & @CRLF) EndFunc ;==>_Example