AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Search for Link Address in Firefox and then select it

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
hardcider09



Joined: 26 Mar 2009
Posts: 15

PostPosted: Fri Jul 24, 2009 2:33 am    Post subject: Search for Link Address in Firefox and then select it Reply with quote

Hi...

I'm trying to have AHK search for a link address on a webpage (in Firefox) that has a particular word in it, and then select that link. Anybody know how I could do this? (I'm a relative newbie.)

Thanks!
Back to top
View user's profile Send private message
Lexikos



Joined: 17 Oct 2006
Posts: 7295
Location: Australia

PostPosted: Fri Jul 24, 2009 12:22 pm    Post subject: Reply with quote

With the "Search for text when I start typing" option enabled (see Tools -> Options -> Advanced) in Firefox 3.5, I just type (or Send) the text and press (or Send) Enter.
Back to top
View user's profile Send private message Visit poster's website
hardcider09



Joined: 26 Mar 2009
Posts: 15

PostPosted: Mon Aug 03, 2009 7:24 pm    Post subject: Reply with quote

I appreciate the suggestion, but I'm looking for the actual text of the HYPERLINK, not the text displayed on the webpage. I ended up using line of javascript that someone wrote for me.

javascript:location=document.querySelector('a[href*="STRING YOU'RE LOOKING FOR"][href*="A SECOND STRING YOU'RE LOOKING FOR"]').href
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group