There has to be an easy way to do this. I am writtung an app that aftere the user enters some data another application (that I did not write) need to have a popup windows clicked to close.

I know how to move the mouse to the proper location using SetCursorPos() but can not generate a mouse cllick that the other application sees.

Is there a mouse buffer like the keyboards that I can send it too?

any help is appreciated!

J