Returns the name of the control located at a given position.
// -- Click on [HOME]
// Find the control in the upper-left corner of the window
sControl is string
sControl = ControlInfoXY(10, 10, WIN_Management)
IF sControl <> "" THEN
SetFocus(sControl)
END
Syntax
<Result> = ControlInfoXY(<X> , <Y> [, <Parent>])
<Result>: Character string
Name of the control to find.
<X>: Integer
X-coordinate (in pixels) to be analyzed.
<Y>: Integer
Y-coordinate (in pixels) to be analyzed.
<Parent>: Optional character string
Name of the parent of the element sought. This parameter can correspond to the name of a control or window. - If this parameter is not specified, the X and Y-coordinates are relative to the screen.
- If this parameter corresponds to the name of a window, the X and Y-coordinates are relative to the client area of the window.
- If this parameter corresponds to the name of a control, the X and Y-coordinates are relative to the client area of the control.
Remarks
- The invisible controls are not returned.
- If <Parent> is specified, the controls found at locations outside the client area are not returned.