How to run right click in Web on background

I am trying to do righ click on a web page, i.e. right click > popup menu and select “Save As”. It is working in foreground, however, not in background. I tried a check “SimulateClick” or “SendWindowMessage”, however, none of them were working. May I ask help on this issue?

Up. Could anyone help on this issue?