Jump to content
Sign in to follow this  
DGClarke1

Difficulty clicking on a hyperlink control

Recommended Posts

DGClarke1

I am using Autoit for the first time, and it looks great, really easy to use - BUT

I am writing a script to start an application, login and click a link on a page. This is not a web application.

I have no problems up to the point where I click the link. Clicking it simply doesn't work.

Autoit v3 Window Info describes the control like this:

Class Static

Instance 1

ClassnameNN Static1

Name

Advanced Mode [CLASS:Static ; INSTANCE 1]

ID 10000

Text Work Orders

...other junk which I doubt will be useful

I can use ControlGetText to get the text of the link (control), but ControlClick doesn't do the business.

$name=ControlGetText("Window Name","Window Text","[iD:10000]")

and sure enough "Work Orders" is returned, but

ControlClick("Window Name","Window Text","[iD:10000]")

does not appear to do anything.

Is there another "click" function I should be using for this type of control?

I would really appreciate any advice that can be given.

Thanks

Share this post


Link to post
Share on other sites
DGClarke1

Just tried that and the effect was the same. The link didn't get clicked.

Thanks for replying though. I'll take ANY suggestions.

Share this post


Link to post
Share on other sites
DGClarke1

WhoooHooo

You are a STAR!!!

ControlSend("Window Name","Window Text","[iD:10000]",'{enter}')

Worked a treat. Thanks very much for taking the trouble to reply/

Dave

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  

×