Aide:WinGetState.txt

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

Document original V3.3.6.1 :

###Function###
WinGetState

###Description###
Retrieves the state of a given window.

###Syntax###
WinGetState ( "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 value indicating the state of the window.  Multiple values are added together so use BitAND() to examine the part you are interested in:
	1 = Window exists
	2 = Window is visible
	4 = Window is enabled
	8 = Window is active
	16 = Window is minimized
	32 = Window is maximized
	
Failure:	Returns 0 and sets @error to 1 if the window is not found.
@@End@@



###Remarks###
None.


###Related###
BitAND, WinGetPos


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


Document traduit V3.3.6.1 :

###Function###
WinGetState

###Description###
Retrouve l'état d'une fenêtre.


###Syntax###
WinGetState ( "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 valeur indiquant l'état de la fenêtre. Plusieurs valeurs peuvent être additionnées, donc utilisez BITAND() pour examiner la partie qui vous intéresse :
	 1 = La fenêtre existe
	 2 = La fenêtre est visible
	 4 = La fenêtre est autorisée
	 8 = La fenêtre est active
	16 = La fenêtre est minimisée
	32 = La fenêtre est agrandie

Échec:	Retourne 0 et met @error à 1 si la fenêtre n'est pas trouvée.
@@End@@


###Remarks###
Aucune.


###Related###
<a href="BitAND.htm">BitAND</a>, <a href="WinGetPos.htm">WinGetPos</a>


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


Traducteur : Jerome

Contributeurs (pour les modifications avant le Wiki) : Tlem