Sign in to follow this  
Followers 0
Hyflex

IE.au3 within a while loop

1 post in this topic

#1 ·  Posted (edited)

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

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