04-13-2009, 07:27 PM
Maybe window "Name2 - Windows Internet Explorer" still does not exist at that time.
Try
int w2=act(wait(5 WV win("Name2 - Windows Internet Explorer" "IEFrame")))
Try
int w2=act(wait(5 WV win("Name2 - Windows Internet Explorer" "IEFrame")))
