Hyflex Posted February 17, 2012 Share Posted February 17, 2012 (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 February 17, 2012 by XxXGoD Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now