Aide:WinMove.txt

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

Document original V3.3.6.1 :

###Function###
WinMove

###Description###
Moves and/or resizes a window.

###Syntax###
WinMove ( "title", "text", x, y [, width [, height[, speed]]] )


###Parameters###
@@ParamTable@@
title
	The title of the window to move/resize. See <a href="../intro/windowsadvanced.htm">Title special definition</a>.
text
	The text of the window to move/resize.
x
	X coordinate to move to.
y
	Y coordinate to move to.
width
	[optional] New width of the window.
height
	[optional] New height of the window.
speed
	[optional] the speed to move the windows in the range 1 (fastest) to 100 (slowest). If not defined the move is instantaneous.
@@End@@


###ReturnValue###
@@ReturnTable@@
Success:	Returns handle to the window. 
Failure:	Returns 0 if window is not found. 
@@End@@


###Remarks###
WinMove has no effect on minimized windows, but WinMove works on hidden windows.
If the width and height are small (or negative), the window will go no smaller than 112 x 27 pixels.  If width and height are large, the window will go no larger than approximately [12+@DesktopWidth] x [12+@DesktopHeight] pixels.
Negative values are allowed for the x and y coordinates.  In fact, you can move a window off screen; and if the window's program is one that remembers its last window position, the window will appear in the corner (but fully on-screen) the next time you launch the program.
If multiple windows match the criteria, the most recently active window is used.

If x and y equal to the <a href="..\keywords\Default.htm">Default keyword</a> no move occurs, just resizing.

When speed is used the move is done with the new size.

###Related###
WinActivate, WinClose, WinGetClientSize, WinGetPos, WinSetState


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


Document traduit V3.3.6.1 :

###Function###
WinMove

###Description###
Déplace et/ou redimensionne une fenêtre.


###Syntax###
WinMove ( "title", "text", x, y [, width [, height[, speed]]] )


###Parameters###
@@ParamTable@@
title
	Le titre de la fenêtre à déplacer/redimensionner. Voir <a href="../intro/windowsadvanced.htm">Définition spéciale de titre</a>.
text
	Le texte de la fenêtre à déplacer/redimensionner.
x
	Coordonnée X pour le déplacement.
y
	Coordonnée Y pour le déplacement.
width
	[optionnel] Nouvelle largeur de la fenêtre.
height
	[optionnel] Nouvelle hauteur de la fenêtre.
speed
	[optionnel] La vitesse de déplacement de la fenêtre comprise entre 1 (rapide) et 100 (lent). Si non définit, le déplacement est instantané.
@@End@@


###ReturnValue###
@@ReturnTable@@
Succès: 	Retourne 1.
Échec:  	Retourne 0 si la fenêtre n'est pas trouvée.
@@End@@


###Remarks###
WinMove n'a pas d'effet sur les fenêtres minimisées, mais fonctionne sur les fenêtres cachées (@HIDE).
Si la valeur de la largeur et de la hauteur sont trop petites (ou négative), la fenêtre n'ira pas en dessous de 112 x 27 pixels. Si la valeur de la largeur et de la hauteur sont trop grandes, La fenêtre ne sera pas plus grande que [12 + @DesktopWidth] x [12 + @DesktopHeight] pixels.
Des valeurs négatives sont autorisées pour les coordonnées de x et de y. En fait, vous pouvez déplacer la fenêtre hors de la zone de l'écran; et si la fenêtre du programme est une fenêtre qui se rappel de sa dernière position sur l'écran, la fenêtre apparaîtra dans le coin (mais entièrement à l'écran) la prochaine fois que vous lancerez le programme.
Si plusieurs fenêtres correspondent aux critères, le titre de la fenêtre la plus récente sera utilisé.

Si x et y sont égaux au <a href="..\keywords\Default.htm">Mot clé Default</a> il n'y aura pas de déplacement, juste un redimensionnement.

Lorsque le paramètre vitesse est utilisé, le déplacement est effectué avec la nouvelle dimension.

###Related###
<a href="WinActivate.htm">WinActivate</a>, <a href="WinClose.htm">WinClose</a>, <a href="WinGetClientSize.htm">WinGetClientSize</a>, <a href="WinGetPos.htm">WinGetPos</a>, <a href="WinSetState.htm">WinSetState</a>


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


Traducteur : Jerome

Contributeurs (pour les modifications avant le Wiki) : Tlem