Sign in to follow this  
Followers 0
Chance1

Click Link in IE window

6 posts in this topic

#1 ·  Posted

Hey guys, I am looking for a way to click on a link in an IE window. The only commands I could find were _IELinkClickByText and _IELinkClickByIndex, and when using Autoit Window Info there is nothing that comes up for those two Controls. I could use controlclick on the position, but I was curious as to if there was a better way to do so or am I going to be stuck using control click? Thanks in advance.

Share this post


Link to post
Share on other sites



#2 ·  Posted

The two functions you mentioned are the correct way to click links in IE. FYI -- The Autoit Window Info won't help when dealing with a web browser.

Look at the help file examples and then come back if you still require assistance.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Oh yes I see that now, than you.

It seems to be a little buggy however, does anyone else feel that way? I think I might stick with the control click for now.

edit: it could also just be the page that I am working with too.

Edited by Chance1

Share this post


Link to post
Share on other sites

#4 ·  Posted

21 minutes ago, Chance1 said:

Oh yes I see that now, than you.

It seems to be a little buggy however, does anyone else feel that way? I think I might stick with the control click for now.

Post a script that reproduces the issues you are encountering.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Just the scripts in the examples page are buggy.

; Open browser with basic example, click on the link with text "user forum"

#include <IE.au3>

Local $oIE = _IE_Example("basic")
_IELinkClickByText($oIE, "user forum")

It creates the IE window and clicks the link that it is trying to click, but the page is never able to load. It's pretty much the same issue I am having in my script.

However, it could be something with my machine and not autoit at all. Was just curious as to if anyone else had encountered this.

Also, The page I am trying to interact with is a the warning page that suggests you to not continue to the webpage. The antivirus doesn't like it for some times. So if the page pops up, I want to click the link that says "Continue to this website (not recommended)." And yes, I have tried the following

_IELinkClickByText($oIE, "Continue to this website (not recommended). ")
_IELinkClickByIndex($oIE, 2)

And neither work.

Edited by Chance1

Share this post


Link to post
Share on other sites

#6 ·  Posted

1 hour ago, Chance1 said:

Just the scripts in the examples page are buggy.

<snip>

However, it could be something with my machine and not autoit at all.

 

Runs just fine on my end.

Quote

Also, The page I am trying to interact with is a the warning page that suggests you to not continue to the webpage

That sounds more like a security certification issue. Can you provide a URL?

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