Aide:MouseGetPos.txt

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

Document original V3.3.6.1 :

###Function###
MouseGetPos

###Description###
Retrieves the current position of the mouse cursor.

###Syntax###
MouseGetPos ( [dimension] )


###Parameters###
@@ParamTable@@
dimension 
	[optional] argument that determines what the return value will be.  See Return Value.
@@End@@

###ReturnValue###
@@ParamTable@@
Dimension 
	Values
<i>None</i>
	Returns a two-element <b>array</b> that containing the mouse coordinates:  $array[0] = X coord (horizontal), $array[1] = Y coord (vertical)
0
	Returns the X co-ordinate as an integer.
1
	Returns the Y co-ordinate as an integer.
@@End@@
<br>
If dimension is not a number @error will be set to 1.

###Remarks###
See MouseCoordMode for relative/absolute position settings.  If relative positioning, numbers may be negative.


###Related###
MouseClick, MouseClickDrag, MouseMove, MouseCoordMode (Option), MouseDown, MouseGetCursor, MouseUp, MouseWheel, PixelGetColor


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


Document traduit V3.3.6.1 :

Texte en Français


Traducteur :

Contributeurs (pour les modifications avant le Wiki) :