how can my application
I studied XSendEvent but that function is useful only when we know the windowid i dont want that my application has to move the pointer and implement single or double click without specific to any window and without interface to the device.
Can you please specify any APIs are there to implement this.
XWarpPointer moves the pointer.
XQueryPointer finds out what window it's in.
If I understand your needs correctly, these are all you need in conjunction with XSendEvent to do what you want.