Share this page

# nca_obj_mouse_click

Object Functions

Clicks on an object.

    int nca_obj_mouse_click( LPCSTR object, int x, int y, unsigned char modifier );

object | The logical name of the object. The object may belong to any class.
x, y | The position of the mouse click expressed as x and y (pixel) coordinates. Coordinates are relative to the upper left corner of the GUI object.
modifier | A keyboard modifier. The available values are MODIF_SHIFT, MODIF_CONTROL, MODIF_ALT or 0 (default).

The nca_obj_mouse_click function clicks the mouse at the specified coordinates inside the object.

## Return Values

Oracle NCA Error Codes

## Parameterization

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

## Example

In the following example, the nca_obj_mouse_click function clicks the REQ_LINES_CURRENT_RECORD_INDICATOR_0 object in the Find Requisition Lines (Vision Operations) window.

Copy code

    nca_set_window("Find Requisition Lines (Vision Operations)");
    nca_button_press("FIND_REQ_LINES_CLEAR_0");
    nca_button_press("FIND_REQ_LINES_FIND_0");
    lr_think_time(17);
    nca_set_window("AutoCreate Documents (Vision Operations)");
    nca_obj_mouse_click("REQ_LINES_CURRENT_RECORD_INDICATOR_0",2,12,MODIF_SHIFT);
    nca_obj_mouse_dbl_click("REQ_LINES_CURRENT_RECORD_INDICATOR_0",2,12,MODIF_SHIFT);
    nca_obj_mouse_click("REQ_LINES_CURRENT_RECORD_INDICATOR_0",2,12,MODIF_ALT);
    nca_obj_mouse_dbl_click("REQ_LINES_CURRENT_RECORD_INDICATOR_0",2,12,MODIF_ALT);
    nca_obj_mouse_click("REQ_LINES_CURRENT_RECORD_INDICATOR_0",2,12,MODIF_CONTROL);
    nca_obj_mouse_dbl_click("REQ_LINES_CURRENT_RECORD_INDICATOR_0",2,12,MODIF_CONTROL);
    nca_obj_mouse_click("REQ_LINES_CURRENT_RECORD_INDICATOR_0",2,12,MODIF_CONTROL);
    nca_obj_mouse_dbl_click("REQ_LINES_CURRENT_RECORD_INDICATOR_0",2,12,MODIF_CONTROL);

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: