Description

Returns the handle of the control beneath the cursor.

Note: This is a Windows only function.

Parameters

ParameterDescription
<object>(Optional) A dynamic array containing the X and Y screen coordinates of the cursor.

<1> X position (in screen coordinates)

<2> Y position (in screen coordinates)

If this parameter is omitted the current cursor position is used instead (via the GetCursorPos() Windows API function)

ReturnvalueThe handle (HWND) of the control beneath the cursor.

See Also

Name
BEEP Service
CHOOSECOLOR Service
CHOOSEDIR Service
CHOOSEFILE Service
CHOOSEFONT Service
COPYFILE Service
CREATE Service
CURSOR Service
DESTROY Service
FLUSH Service
GET_EVENT Service
GETLOGICALDRIVES Service
MAKEDIR Service
OBJECTID Service
OBJECTLIST Service
PRINTSETUP Service
REMOVEDIR Service
RENAMEDIR Service
RENAMEFILE Service
RUNHELP Service
RUNWIN Service
TEXTRECT Service
WINCOUNT Service
IUNKNOWN_RELEASE Service
LOAD_PICTURE Service
OBJECT_BY_CURSOR Service
PICTURE_PROPS Service

Example

// Get HWND under current cursor position
hwnd = Utility( "HANDLE_BY_CURSOR" )
// Get HWND under specific position
cursorPos = 345 : @fm : 72
hwnd = Utility( "HANDLE_BY_CURSOR", cursorPos )