Sending mouse clicks to window without activate it? Is it possible?

Hello all!

Is it possible to send mouse click to, for example, Safari window without activating it?
I need AppleScript, that would be clicking in some sites but i need to work at this time on this machine. So i don’t need to visual mouse moving and window switching…

The short answer is, “No, you cannot initiate mouse clicks without the mouse physically moving and taking over your screen.”

If you are talking specifically about Safari then you should be able to use JavaScript to interact with the page. JavaScript does not interfere with other work you are doing.

Thats is sounds good. Can u show example of javascript code, that can click on flash web app on the same page?

I’ve not done that one before but there are a lot of JavaScript samples on the web. A google search should produce an example for you.