How do I perform a mouse click event programatically. but the problem is i do not want to perform it on a UIelement. I just want to perform a mouseclik once. Can i do that?

thank you in advance.

One method would be to write a seperate sub routine that you call from your mouse click routine ands from where ever you wish to simulate the mouse click.

Can I write a subroutine that calls to a mouseclick event?

You could use the WinAPI for this. Take a look at my previous post here.

Since you are trying to put input in out of context (with no particular UI element in focus), I would expect it to be a matter of putting something into the mouse buffer. Here is a page that may give you a starting place for tracking it down: Click Here