Sign in to follow this  
Followers 0
wjessee

Function to read link name in a webpage then click

4 posts in this topic

I am having trouble making a function that will search a specified website for a link with a specific name and then tab over to it and launch it.

Any ideas for me?

-W

Share this post


Link to post
Share on other sites



Look in the helpfile to begin. First look for the "Run" command, then the "Send" command, and that should do it. I would write it for you myself, but I am short on time and am doing a report.

Share this post


Link to post
Share on other sites

Thanks,

I have already been able to load the webpage and log in and then tab over 15 times to the link and send enter, but I would like it to search for the link name and then click it. Here is the code I have so far. This one waits 2 minutes and does a refresh. I would like to avoid having to specify the number of tabs to the link and call it by name.

-W

Send("#r")

WinWaitActive("Run")

Send("iexplore.exe about:blank{Enter}")

WinWaitActive("about:blank - Microsoft Internet Explorer","Done")

Send("^o")

WinWaitActive("Open")

Send("http://www.domain.com{Enter}")

WinWaitActive("domain.com - Microsoft Internet Explorer","Done")

Send("{TAB 19}")

Send("USERNAME")

Send("{TAB}")

Send("PASSWORD")

Send("{TAB 2}")

Send("{SPACE}")

WinWaitActive("domain.com - Microsoft Internet Explorer","Done")

While 1

Sleep(120000)

Send("{F5}")

WinWaitActive("Microsoft Internet Explorer")

Send("{SPACE}")

Wend

Share this post


Link to post
Share on other sites

There are other threads on this topic, which you might find helpful. Search these forums with some or all of the following terms: link, find, tab, firefox, msie, browser

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0