Aide:WinSetState.txt
De Wiki AutoIt Français
Document original V3.3.6.1 :
###Function###
WinSetState
###Description###
Shows, hides, minimizes, maximizes, or restores a window.
###Syntax###
WinSetState ( "title", "text", flag )
###Parameters###
@@ParamTable@@
title
The title of the window to show. See <a href="../intro/windowsadvanced.htm">Title special definition</a>.
text
The text of the window to show.
flag
The "show" flag of the executed program:
@SW_HIDE = Hide window
@SW_SHOW = Shows a previously hidden window
@SW_MINIMIZE = Minimize window
@SW_MAXIMIZE = Maximize window
@SW_RESTORE = Undoes a window minimization or maximization
@SW_DISABLE = Disables the window
@SW_ENABLE = Enables the window
@@End@@
###ReturnValue###
@@ReturnTable@@
Success: Returns 1.
Failure: Returns 0 if window is not found.
@@End@@
###Remarks###
If multiple windows match the criteria, the most recently active window is used.
@SW_MINIMIZE and @SW_MAXIMIZE even work on modal dialog windows.
###Related###
WinActivate, WinClose, ControlHide, WinFlash, WinKill, WinMinimizeAll, WinMinimizeAllUndo, WinMove, WinSetOnTop
###Example###
@@IncludeExample@@
Document traduit V3.3.6.1 :
###Function###
WinSetState
###Description###
Montre, cache, minimise, maximise ou restaure une fenêtre.
###Syntax###
WinSetState ( "title", "text", flag )
###Parameters###
@@ParamTable@@
title
Titre de la fenêtre à montrer Voir <a href="../intro/windowsadvanced.htm">Définition spéciale de titre</a>.
text
Le texte de la fenêtre à montrer.
flag
L'option de visualisation du programme exécuté :
@SW_HIDE = Cache la fenêtre
@SW_SHOW = Afficher une fenêtre précédemment cachée
@SW_MINIMIZE = Minimise la fenêtre
@SW_MAXIMIZE = Agrandit la fenêtre
@SW_RESTORE = Annule une minimisation ou l'agrandissement d'une fenêtre
@SW_DISABLE = Désactive la fenêtre
@SW_ENABLE = Active la fenêtre
@@End@@
###ReturnValue###
@@ReturnTable@@
Succès: Retourne 1.
Échec: Retourne 0 si la fenêtre n'est pas trouvée.
@@End@@
###Remarks###
Si plusieurs fenêtres correspondent aux critères, le titre de la fenêtre la plus récente sera utilisé.
@SW_MINIMIZE et @SW_MAXIMIZE fonctionnent aussi sur les boîtes de dialogue Windows.
###Related###
<a href="WinActivate.htm">WinActivate</a>, <a href="WinClose.htm">WinClose</a>, <a href="ControlHide.htm">ControlHide</a>, <a href="WinFlash.htm">WinFlash</a>, <a href="WinKill.htm">WinKill</a>, <a href="WinMinimizeAll.htm">WinMinimizeAll</a>, <a href="WinMinimizeAllUndo.htm">WinMinimizeAllUndo</a>, <a href="WinMove.htm">WinMove</a>, <a href="WinSetOnTop.htm">WinSetOnTop</a>
###Example###
@@IncludeExample@@
Traducteur : Jerome
Contributeurs (pour les modifications avant le Wiki) : Tlem