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 

Click on hylerlink

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



Joined: 05 Feb 2009
Posts: 5

PostPosted: Thu Feb 05, 2009 8:37 pm    Post subject: Click on hylerlink Reply with quote

I am trying to create a script that will click on a hyperlink in an internet explorer based program, the only problem is the hyperlink is never in the same spot. I tried using a pixel search, but when I use Window Spy to determine the color, it doesn't detect anything. Does anyone have any suggestions?
Back to top
View user's profile Send private message
BoBoł
Guest





PostPosted: Thu Feb 05, 2009 9:30 pm    Post subject: Reply with quote

Extract the link from the pages source (URLDownloadToFile) and Run it directly.
Back to top
lahredvest



Joined: 05 Feb 2009
Posts: 5

PostPosted: Thu Feb 05, 2009 9:52 pm    Post subject: Reply with quote

I tried that, but it doesn't work. The hyperlinks are used to add information to the existing page. Some pages have multiple hylerlinks with the same URL and the URL changes each time a new webpage is opened. Is there something else I can do?
Back to top
View user's profile Send private message
BoBoł
Guest





PostPosted: Thu Feb 05, 2009 9:58 pm    Post subject: Reply with quote

Show the source of such a page.
Back to top
lahredvest



Joined: 05 Feb 2009
Posts: 5

PostPosted: Fri Feb 06, 2009 7:33 pm    Post subject: Reply with quote

I am trying to click on the Add Field links. All they do is add more fields to the current page. The link's URL changes with each customer

Back to top
View user's profile Send private message
evan
Guest





PostPosted: Fri Feb 06, 2009 7:38 pm    Post subject: Reply with quote

such a clean background!
u should be using ImageSearch, it should work pretty well
Back to top
lahredvest



Joined: 05 Feb 2009
Posts: 5

PostPosted: Fri Feb 06, 2009 8:33 pm    Post subject: Reply with quote

I took a screen shot of the link, and saved it as test.jpg. Wrote the following to let it search the screen for the image, but it comes back Icon image could not be found on the screen

ImageSearch, FoundX, FoundY, 0, 0, 1003, 715, C:\Documents and Settings\Desktop\test.jpg
if ErrorLevel = 2
MsgBox Could not conduct the search.
else if ErrorLevel = 1
MsgBox Icon could not be found on the screen.
else
MsgBox The icon was found at %FoundX%x%FoundY%.
Back to top
View user's profile Send private message
Superfraggle



Joined: 02 Nov 2004
Posts: 1019
Location: London, UK

PostPosted: Fri Feb 06, 2009 8:41 pm    Post subject: Reply with quote

jpg will often fail due to faulty colours caused by the compression, try using bitmap.
_________________
Steve F AKA Superfraggle

http://r.yuwie.com/superfraggle
Back to top
View user's profile Send private message MSN Messenger
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