Method Reference
ControlGetPosY
Retrieves the position and size of a control relative to it's window
ControlGetPosY "title", "text", "controlID"
Parameters
title | The title of the window to access. |
text | The text of the window to access. |
controlID | The control to interact with. See Controls. |
Return Value
Success: | Returns the Y coordinate of the control. |
Failure: | Sets oAutoIt.error to 1. |
Remarks
When using a control name in the Control functions, you need to add a number to the end of the name to indicate which control. For example, if there two controls listed called "MDIClient", you would refer to these as "MDIClient1" and "MDIClient2".
Related
ControlCommand, ControlGetPosHeight, ControlGetPosWidth, ControlGetPosX, ControlMove, WinMove
Example
Set oAutoIt = WScript.CreateObject("AutoItX3.Control") posx = ControlGetPosX("Untitled - Notepad", "", "Edit1") posy = ControlGetPosY("Untitled - Notepad", "", "Edit1") poswidth = ControlGetPosWidth("Untitled - Notepad", "", "Edit1") posheight = ControlGetPosHeight("Untitled - Notepad", "", "Edit1")