How to simulate mouse right click event using jquery

How to simulate mouse right click event using jquery

Dear all,
I have a problem with simulate a right click event. I'm writing an auto program.
      $(selector).click() just simulate left click event
Anyone can help me please?

Ps: I need to simulate this event, not catch the event that user right click.