weevil Posted May 7, 2015 Share Posted May 7, 2015 Hi all, I have tried to use _IELoadWait to wait for a Java Applet to load, but it appears this doesn't work for Java. It thinks the page has fully loaded, where infact the Java Applet is still loading. Is there a way to wait for the Applet to finish loading before continuing in the script? I can't use a "WinWait" for the next available window because it could be different ones. Thanks Link to comment Share on other sites More sharing options...
weevil Posted May 7, 2015 Author Share Posted May 7, 2015 (edited) My current code is this: _IELoadWait($oIE) WinWait("EMC Unisphere - Windows Internet Explorer") ToolTip ("Loading...") sleep(5) If WinExists("[CLASS:SunAwtDialog; TITLE:Test]") then sleep(100) ToolTip ("wait for test") WinActivate("test") sleep(500) send ("+{TAB}") send ("{SPACE}") send ("{TAB}") EndIf ToolTip ("Waiting for test2") If WinExists ("[CLASS:SunAwtDialog; TITLE:Test2]") then Tooltip ("test2") sleep(1000) send ("!s") EndIf WinWait("Login Dialog") ToolTip ("Inside login") Sleep (300) send($TargetUsername) send("{TAB}") send($TargetPassword) send("{ENTER}") ToolTip ("you've missed it!") Edited May 7, 2015 by weevil Link to comment Share on other sites More sharing options...
MikahS Posted May 7, 2015 Share Posted May 7, 2015 Have a look at the IUIAutomation MS framework, and the awt controls. Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ 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