nca_obj_type

Object Functions

Sends keyboard input to an object.

int nca_obj_type( LPCSTR object, unsigned char keyboard_input, unsigned char modifier );
object The logical name of the GUI object.
keyboard_input A string expression that represents keystrokes.
modifier The keyboard modifier. The available values are MODIF_SHIFT, MODIF_CONTROL, MODIF_ALT or 0.

The nca_obj_type function specifies the object to which the keyboard_input is sent. This function records special characters such as tabs, function keys, and shortcut key combinations.

Return Values

Oracle NCA Error Codes

Parameterization

The following argument(s) can be parameterized using standard parameterization: object

Example

In the following example, the nca_obj_type function sends the keyboard input, the letter `z', to the objectTL_SYSTEM_ITEMS_BOM_ENABLED_FLAG, in two different modes.

nca_set_window("Master Item (V1)");
nca_tab_select_item("ATTRIBUTE_GROUPS_REGIONS", "Bills of Material");
nca_obj_type("MTL_SYSTEM_ITEMS_BOM_ENABLED_FLAG_MIR_0",'z',0);
nca_list_select_item("MTL_SYSTEM_ITEMS_BOM_ITEM_TYPE_MIR_0", "Model");
nca_obj_type("MTL_SYSTEM_ITEMS_BOM_ITEM_TYPE_MIR_0",'z',MODIF_CONTROL);
nca_edit_click("MTL_SYSTEM_ITEMS_DF_MIR_0");