If you go this route, it would be prone to failure if, for instance, the target window is moved, the page is scrolled out of position, or the user does something while the script is running. If you still want to try it, you might want to look at Extra Suites. It allows a script to move the cursor and offers several otpions for clicking. It also allows the script to move the cursor relative to its current position or to given coordinates. This, in addition to some info from the browser, might allow you to find the coordinates of the window and work from there. It all seems rather iffy to me but I have not tried to do it.
i know what you mean and i agree, but i have tried all other ways that i can think of to upload some files through a website and the oly option left is the one i will try and pursue, i have extra scripts and will look.
Also some of the windows that i will be clicking always open in the centre of the screen so i should be ok for some parts, as for the others, hmmm, i wonder if i can open Ie to be at the same posiotiona dn the same window size.