Jump to content

Click Link in IE window


Recommended Posts

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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?

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...