Jump to content
Sign in to follow this  

IE.au3 within a while loop

Recommended Posts


I've tried a bunch of _IE controls but am really unsure how to do this...

I'm trying to make it so when it can't navigate the object for it to look for the security warning and press yes...

While Not _IENavigate($ObjectIE, "javascript:Login() ;", 0)
If WinExists("Security Warning", "Yes") Then
WinActivate("Security Warning")
ControlClick("Security Warning", "Yes", "[CLASS:Button; INSTANCE:2]")

I can get it working on my PC quite easily by just changing it to the below but it doesn't always popup, I know I could stick a timeout but I really don't want to make it wait and hang around when it doesn't need to..

While Not WinExists("Security Warning", "Yes")
;WinActivate("Security Warning")
ControlClick("Security Warning", "Yes", "[CLASS:Button; INSTANCE:2]")
Edited by XxXGoD

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