Aide:WinGetText.txt

De Wiki AutoIt Français
Aller à : navigation, rechercher

Document original V3.3.6.1 :

###Function###
WinGetText

###Description###
Retrieves the text from a window.

###Syntax###
WinGetText ( "title" [, "text"] )


###Parameters###
@@ParamTable@@
title
	The title of the window to read. See <a href="../intro/windowsadvanced.htm">Title special definition</a>.
text
	[optional] The text of the window to read.
@@End@@


###ReturnValue###
@@ReturnTable@@
Success:	Returns a string containing the window text read.
Failure:	Returns numeric 0 if no title match.
@@End@@


###Remarks###
Up to 64KB of window text can be retrieved.  WinGetText works on minimized windows, but only works on hidden windows if you've set AutoItSetOption("WinDetectHiddenText", 1)
If multiple windows match the criteria for WinGetText, the information for the most recently active match is returned.
Use WinGetText("[active]") to get the active window's text.


###Related###
WinGetTitle, ControlGetText, WinGetClassList


###Example###
@@IncludeExample@@


Document traduit V3.3.6.1 :

###Function###
WinGetText

###Description###
Retrouve le texte d'une fenêtre.


###Syntax###
WinGetText ( "title" [, "text"] )


###Parameters###
@@ParamTable@@
title
	Le titre de la fenêtre à lire. Voir <a href="../intro/windowsadvanced.htm">Définition spéciale de titre</a>.
text
	[optionnel] Le texte de la fenêtre à lire.
@@End@@


###ReturnValue###
@@ReturnTable@@
Succès:	Retourne une chaine de caractères contenant le titre complet de la fenêtre.
Échec:	Retourne 0 si aucun titre ne correspond.
@@End@@


###Remarks###
Jusqu'à 64 Ko de texte peut être récupéré. WinGetText fonctionne sur les fenêtres réduites, mais ne fonctionne sur les fenêtres cachées que si vous avez fixé AutoItSetOption("WinDetectHiddenText", 1).
Si plusieurs fenêtres correspondent aux critères pour WinGetText, les informations de la fenêtre la plus récente seront retournés.
Utilisez WinGetText ("[active]») pour obtenir un texte de la fenêtre active.


###Related###
<a href="WinGetTitle.htm">WinGetTitle</a>, <a href="ControlGetText.htm">ControlGetText</a>, <a href="WinGetClassList.htm">WinGetClassList</a>


###Example###
@@IncludeExample@@


Traducteur : Jerome

Contributeurs (pour les modifications avant le Wiki) : Tlem