Mercury049 Posted February 13, 2009 Posted February 13, 2009 I'm having a lot of trouble with a 3rd party page that I'm trying to view links in. It's all javascript and asp. Anyways, When I do a CTRL F on the page and find the link I'm looking for, it automatically highlights that selection. Is there a way to find out the X,Y coords of that selection? Say the top left corner of it? Thanks
PsaltyDS Posted February 13, 2009 Posted February 13, 2009 I'm having a lot of trouble with a 3rd party page that I'm trying to view links in. It's all javascript and asp. Anyways, When I do a CTRL F on the page and find the link I'm looking for, it automatically highlights that selection. Is there a way to find out the X,Y coords of that selection? Say the top left corner of it?ThanksFrom a quick Google on it: In the IE DOM, the Document object has a .selection object, which in turn has a .TextRange collection of TextRange objects, that at last have properties like .htmlText and .text.Drilling down to it is more than I have time to play with right now. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now