apstanto Posted September 25, 2010 Share Posted September 25, 2010 _IELinkClickByText works fine, but I want to know where the link points, with out necessarily clicking on it. When I hold my mouse over the link, it's url shows up on the information bar at the bottom of IE. I want to programmatically get that link. Anybody know how? Thanks. Link to comment Share on other sites More sharing options...
JohnOne Posted September 25, 2010 Share Posted September 25, 2010 You will find an example of this by looking at _IELinkGetCollection() in the helpfile. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
apstanto Posted September 26, 2010 Author Share Posted September 26, 2010 Thanks for the heads up! I didn't realize that's what $oLink.href did. So I'll have to loop through all the links on the page until I get to my desired one. I have the text on the link, so is there documentation to read or an easy way to get the text? Something like $oLink.name? Thanks! Link to comment Share on other sites More sharing options...
seandisanti Posted September 26, 2010 Share Posted September 26, 2010 Thanks for the heads up! I didn't realize that's what $oLink.href did. So I'll have to loop through all the links on the page until I get to my desired one. I have the text on the link, so is there documentation to read or an easy way to get the text? Something like $oLink.name? Thanks!Does the link have an ID? you could do _IEGetObjByID() Link to comment Share on other sites More sharing options...
apstanto Posted September 26, 2010 Author Share Posted September 26, 2010 I don't see an ID when looking at the HTML code. I might be looking in the wrong place or for the wrong thing, though. I could use _IEGetObjByName for that matter. But I'd have to fish through a bunch of frames, which I have not had great luck with doing. I know the text of the link, so I just want an easy way to get the url. Clicking on it works great! I want to know where it will take me "If" I click on it. Link to comment Share on other sites More sharing options...
seandisanti Posted September 30, 2010 Share Posted September 30, 2010 personally i try to avoid the frames whenever possible. often you can look at the src property of the frame and navigate directly to that as your page, then no frame. do you have a url for the page you're trying to work with? Link to comment Share on other sites More sharing options...
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