AutoHotkey Community

It is currently May 26th, 2012, 6:02 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Click on hylerlink
PostPosted: February 5th, 2009, 9:37 pm 
Offline

Joined: February 5th, 2009, 9:34 pm
Posts: 5
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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 5th, 2009, 10:30 pm 
Extract the link from the pages source (URLDownloadToFile) and Run it directly.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 5th, 2009, 10:52 pm 
Offline

Joined: February 5th, 2009, 9:34 pm
Posts: 5
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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 5th, 2009, 10:58 pm 
Show the source of such a page.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 6th, 2009, 8:33 pm 
Offline

Joined: February 5th, 2009, 9:34 pm
Posts: 5
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

Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 6th, 2009, 8:38 pm 
such a clean background!
u should be using ImageSearch, it should work pretty well


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 6th, 2009, 9:33 pm 
Offline

Joined: February 5th, 2009, 9:34 pm
Posts: 5
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%.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 6th, 2009, 9:41 pm 
Offline

Joined: November 2nd, 2004, 2:43 pm
Posts: 1019
Location: London, UK
jpg will often fail due to faulty colours caused by the compression, try using bitmap.

_________________
Steve F AKA Superfraggle

http://r.yuwie.com/superfraggle


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, hilalpro, Mtes, tic and 70 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