is it possible to simulate a mouseclick (left or right) underneath a frame, without effecting the position or use of the mouse?

i.e. if a frame covers an unrelated program's window, can you simulate a click underneath the window that has nothing to do with the current position of the mouse.

| click -> . | <-frame
| |

. <- mouse