Jump to content

IE.au3 within a while loop


Hyflex
 Share

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]")
EndIf
WEnd

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]")
WEnd
Edited by XxXGoD
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...