VTIL_SelectInputObject, VTIL_SelectInputObjectMsg
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
long VTIL_SelectInputObject(dword objectId); // form 1long VTIL_SelectInputObject(dbNode vt, dword objectId); // form 2long VTIL_SelectInputObject(dword objectId, byte openMode); // form 3long VTIL_SelectInputObject(dbNode vt, dword objectId, dword openMode); // form 4long VTIL_SelectInputObjectMsg(dword objectId, dword objectIsSelected, dword openMode); // form 5long VTIL_SelectInputObjectMsg(dbNode vt, dword objectId, dword objectIsSelected, dword openMode); // form 6
Description
Select an input field, Button or Key object. The VTIL_SelectInputObject methods simulate the selection of an input field, button, or key object by the user. As a result:- VT Select Input Object message (selection = deselected) for object which loses focus (if any) is sent;
- VT Select Input Object message (selection = selected, optionally bitmask = object is open for data input) for Object with ID objectId is sent;
Parameters
- vt: VT simulation node to apply the function
- objectId: Object ID of an input field, Button or Key object
- objectIsSelected:
- 0: Object is deselected
- 1: Object is selected (has focus)
- openMode:
- 0: Select object or close open object
- 1: Open object for data input
Return Values
- 0: Blocking of all messages has been stopped successfully
- < 0: An error has occurred, see IL Error Code.