Sign in to follow this  
Followers 0
weevil

Wait for Java Applet to load?

3 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by weevil

Share this post


Link to post
Share on other sites

Have a look at the IUIAutomation MS framework, and the awt controls.


Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My 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

 

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