Re: Generating Mouse Clicks
You would have to dig into the native API, with registering global hooks for mouse and keyboard and you would have to send such events using X11 calls. Remember that when your application looses focus and/or activation (i.e. upon clicking with a mouse somewhere outside the application), input events are stopped being delivered to the application. You would have to grab the mouse and that's probably not what you want because then you won't be able to change the active application.
Re: Generating Mouse Clicks
That's what I was afraid of. :P
I'll take a look at the X11 programming and see what I can do with it.