hope this helps:

include the header file "windows.h"
and use mouse_event(5 param);

here's what I did for Right Click:
Qt Code:
  1. mouse_event(MOUSEEVENTF_RIGHTDOWN,100, 200, 0,0);
  2. mouse_event(MOUSEEVENTF_RIGHTUP, 100, 200, 0,0);
To copy to clipboard, switch view to plain text mode