I generally do not need a bullet proof solution. Use VBScript if you need a more robust solution. But, VBScript takes more advanced skills to code.
I have tried using delays, change of window title, window pixel colors, mouse change, VBScript, etc... All these solutions are too inconsistent.
I finally found a nice clean solution using GetControlText. However, you have to know what window will be displayed. This is usually true for me.
Use View System Windows in Macro Scheduler to determine the control to use. This script has been tested with IE6.0, WinXP SP2, MS8.1
Code: Select all
Let>RP_WINDOWMODE=3
CapsOff
Run Program>C:\Program Files\Internet Explorer\IEXPLORE.EXE http://www.mjtnet.com/
Let>WEB_PAGE_TITLE=Windows Scripting, Windows Macro Automation, Windows Macro Recorder - Automate your PC for Wind - Microsoft Internet Explorer*
Let>TIMEOUT=30
Let>K=0
Repeat>K
Wait>0.5
GetControlText>WEB_PAGE_TITLE,msctls_statusbar32,1,RESULT
Message>RESULT
If>RESULT=Done
Let>K=TIMEOUT-1
EndIF
Let>K=K+1
Until>K,TIMEOUT