Aide:WinGetCaretPos.txt
De Wiki AutoIt Français
Document original V3.3.6.1 :
###Function###
WinGetCaretPos
###Description###
Returns the coordinates of the caret in the foreground window
###Syntax###
WinGetCaretPos ( )
###Parameters###
None.
###ReturnValue###
@@ReturnTable@@
Success: Returns a 2-element array containing the following information:
$array[0] = X coordinate
$array[1] = Y coordinate
Failure: Sets @error to 1.
@@End@@
###Remarks###
WinGetCaretPos might not return accurate values for Multiple Document Interface (MDI) applications if absolute CaretCoordMode is used. See example for a workaround. Note: Some applications report static coordinates regardless of caret position!
###Related###
CaretCoordMode (Option)
###Example###
@@IncludeExample@@
Document traduit V3.3.6.1 :
###Function###
WinGetCaretPos
###Description###
Retourne les coordonnées du curseur dans la fenêtre du premier plan.
###Syntax###
WinGetCaretPos ( )
###Parameters###
Aucun.
###ReturnValue###
@@ReturnTable@@
Succès: Retourne un tableau à 2 colonnes contenant les informations suivantes :
$array[0] = Coordonnée X
$array[1] = Coordonnée Y
Échec: Met @error à 1.
@@End@@
###Remarks###
WinGetCaretPos peut ne pas retourner des valeurs précises pour des applications 'Multiple Document Interface' (MDI) si CaretCoordMode est utilisé avec l'option absolute. Voir l'exemple pour une solution de contournement. Note: Certaines applications signalent des coordonnées statique quelle que soit la position du curseur !
###Related###
<a href="CaretCoordMode.htm">CaretCoordMode(Option)</a>
###Example###
@@IncludeExample@@
Traducteur : Jerome
Contributeurs (pour les modifications avant le Wiki) : Tlem