guides:programming:programmers_reference_manual:object_by_cursor_service

OBJECT_BY_CURSOR Service

Returns the fully qualified OpenInsight ID of the control beneath the cursor.

Note: This is a Windows only function.

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)

The fully qualified OpenInsight ID of the control beneath the cursor.

BEEP Service

DESTROY Service

REMOVEDIR Service

CHOOSECOLOR Service

FLUSH Service

RENAMEDIR Service

CHOOSEDIR Service

GET_EVENT Service

RENAMEFILE Service

CHOOSEFILE Service

GETLOGICALDRIVES Service

RUNHELP Service

CHOOSEFONT Service

MAKEDIR Service

RUNWIN Service

COPYFILE Service

OBJECTID Service

TEXTRECT Service

CREATE Service

OBJECTLIST Service

WINCOUNT Service

CURSOR Service

PRINTSETUP Service

Utility function

// Get object under current cursor position

objID = Utility( "HANDLE_BY_CURSOR" )

// Get HWND under specific position

cursorPos = 23 : @fm : 456

objID = Utility( "HANDLE_BY_CURSOR", cursorPos )
  • guides/programming/programmers_reference_manual/object_by_cursor_service.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1