Logo Search packages:      
Sourcecode: xdotool version File versions  Download package

int xdo_click ( const xdo_t xdo,
Window  window,
int  button 
)

Send a click for a specific mouse button at the current mouse location.

Parameters:
window The window you want to send the event to or CURRENTWINDOW
button The mouse button. Generally, 1 is left, 2 is middle, 3 is right, 4 is wheel up, 5 is wheel down.

Definition at line 734 of file xdo.c.

                                                           {
  int ret = 0;
  ret = xdo_mousedown(xdo, window, button);
  if (ret != XDO_SUCCESS) {
    fprintf(stderr, "xdo_mousedown failed, aborting click.\n");
    return ret;
  }
  usleep(DEFAULT_DELAY);
  ret = xdo_mouseup(xdo, window, button);
  return ret;
}


Generated by  Doxygen 1.6.0   Back to index