VTIL_GetIdOfVisibleObject
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
long VTIL_GetIdOfVisibleObject(dbNode workingSetMaster, dword x, dword y, dword objectType, dword& foundObjectId); // form 1long VTIL_GetIdOfVisibleObject(dword addressWorkingSetMaster, dword x, dword y, dword objectType, dword& foundObjectId); // form 2long VTIL_GetIdOfVisibleObject(dbNode vt, dbNode workingSetMaster, dword x, dword y, dword objectType, dword& foundObjectId); // form 3long VTIL_GetIdOfVisibleObject(dbNode vt, dword addressWorkingSetMaster, dword x, dword y, dword objectType, dword& foundObjectId); // form 4
Description
Returns the object ID of the visible object that is displayed at the specified position in the current Data or Alarm Mask. You can define the type of object you are looking for with the parameter objectType.Parameters
- vt: VT simulation node to apply the function.
- workingSetMaster: Working Set Master which provides the Object Pool.
- addressWorkingSetMaster: Address of the Working Set Master which provides the Object Pool or -1 (0xFFFFFFFF) if the Object Pool of the currently active Working Set is used, 0..253 or -1.
- x: X position in pixels relative to top left corner of Data Mask area, 0..65535.
- y: Y position in pixels relative to top left corner of Data Mask area, 0..65535.
- objectType: Target object type of the visible object or -1 (0xFFFFFFFF) if topmost visible object is used, 0..255 or -1.
- foundObjectId: Returns the object ID of the visible object.
Return Values
- 0: The object ID was successfully determined.
- < 0: An error has occurred, see IL Error Code.
- –2127: There is no visible object with the specified object type at the specified position.