Hey Jethrow, thank you so much for your reply, it helped me noticing pWin.document.all.
btnG, which points out that I do not need to use the outer html, but to find the element name.
With IWebBrowser2 (big thanks to Tank, jethrow (again) and sinkfaze), I could find the element ID (was not easy for this one, just 1 pixel thick hidden line). Then, because I am a total noob about COM, I only managed to modify Sean's script (big thanks to him also) the minimum to make it get the coordinates.
Quote:
I suppose my point is why go thru all the trouble to get coordinates when you can just use the click method and skip the complicated steps of getting the coordinates
You are generally right (of course), but I needed to click on a specific position, unknowing which element will be placed at it. So just doing ControlClick eases thing a lot for me in this case.
Babylon is the application I am trying to automate.
What I achieved is how to click on the dictionary's entries in the Sidebar. But now I found that I can directly get the Dictionary's Headers Element id in the main pane, and that they are detected even if they are not visible (cause you have to scroll down/up).
So now I am trying, without luck, to: 1st detect those elements on the main page and 2nd to navigate to them (or click on them).
As I said, this is quite difficult for me, so I may eventually give up and be content with what I already got working.