AutoHotkey Community

It is currently May 26th, 2012, 9:25 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: July 24th, 2009, 3:33 am 
Offline

Joined: March 26th, 2009, 4:41 am
Posts: 15
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!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 24th, 2009, 1:22 pm 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7502
Location: Australia
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 3rd, 2009, 8:24 pm 
Offline

Joined: March 26th, 2009, 4:41 am
Posts: 15
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


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, wolverineks and 60 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group