| View previous topic :: View next topic |
| Author |
Message |
lahredvest
Joined: 05 Feb 2009 Posts: 5
|
Posted: Thu Feb 05, 2009 8:37 pm Post subject: Click on hylerlink |
|
|
| 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 |
|
 |
BoBoł Guest
|
Posted: Thu Feb 05, 2009 9:30 pm Post subject: |
|
|
| Extract the link from the pages source (URLDownloadToFile) and Run it directly. |
|
| Back to top |
|
 |
lahredvest
Joined: 05 Feb 2009 Posts: 5
|
Posted: Thu Feb 05, 2009 9:52 pm Post subject: |
|
|
| 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 |
|
 |
BoBoł Guest
|
Posted: Thu Feb 05, 2009 9:58 pm Post subject: |
|
|
| Show the source of such a page. |
|
| Back to top |
|
 |
lahredvest
Joined: 05 Feb 2009 Posts: 5
|
Posted: Fri Feb 06, 2009 7:33 pm Post subject: |
|
|
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 |
|
 |
evan Guest
|
Posted: Fri Feb 06, 2009 7:38 pm Post subject: |
|
|
such a clean background!
u should be using ImageSearch, it should work pretty well |
|
| Back to top |
|
 |
lahredvest
Joined: 05 Feb 2009 Posts: 5
|
Posted: Fri Feb 06, 2009 8:33 pm Post subject: |
|
|
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 |
|
 |
Superfraggle
Joined: 02 Nov 2004 Posts: 1019 Location: London, UK
|
Posted: Fri Feb 06, 2009 8:41 pm Post subject: |
|
|
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 |
|
 |
|