rberq Posted August 26, 2009 Report Share Posted August 26, 2009 I have the following logic inside a Repeat loop. There's a web site address in variable T5. If IE is not already running, the line after Else starts IE and goes to the web site and waits for the page to load. On subsequent Repeat passes IE is already running, so the macro highlights the address line with Alt-d and types in a new site id and we go to the site. Works fine every time with IE6. With IE7, Wait for Web Page never completes, it just hangs forever, regardless of whether IE is running or not when the macro starts. Ideas, anyone??? // Start IE if not running, go to site. // If it is running then ALT-d to highlight // and paste in the site address and go to it. If Window Title "Internet Explorer" is running Activate Window: "Internet Explorer" Wait for Web Page: "" Text Type: <ALTD>d<ALTU> Wait Text Playback Wait for Web Page: "" Text Type: %T5% Wait Text Playback Wait for Web Page: "" Text Type: <ENTER> Wait for Web Page: "" Else Web Site: %T5% [internet Explorer - Wait to load] End If // Quote Link to comment Share on other sites More sharing options...
Brain Virus Posted August 26, 2009 Report Share Posted August 26, 2009 I have the following logic inside a Repeat loop. There's a web site address in variable T5. If IE is not already running, the line after Else starts IE and goes to the web site and waits for the page to load. On subsequent Repeat passes IE is already running, so the macro highlights the address line with Alt-d and types in a new site id and we go to the site. Works fine every time with IE6. With IE7, Wait for Web Page never completes, it just hangs forever, regardless of whether IE is running or not when the macro starts. Ideas, anyone??? // Start IE if not running, go to site. // If it is running then ALT-d to highlight // and paste in the site address and go to it. If Window Title "Internet Explorer" is running Activate Window: "Internet Explorer" Wait for Web Page: "" Text Type: <ALTD>d<ALTU> Wait Text Playback Wait for Web Page: "" Text Type: %T5% Wait Text Playback Wait for Web Page: "" Text Type: <ENTER> Wait for Web Page: "" Else Web Site: %T5% [internet Explorer - Wait to load] End If // what happens if you do a wait for window? Quote Link to comment Share on other sites More sharing options...
rberq Posted August 26, 2009 Author Report Share Posted August 26, 2009 The first problem with WAIT FOR WINDOW TITLE is, the title is already there (potentially) when the macro starts or at the start of each cycle. That's because IE may already be at the site, just not on the correct page, and the window title is the same for many of the pages within the web site. Second problem is that the title may appear well before the web page is completely loaded. Alas! Quote Link to comment Share on other sites More sharing options...
paul Posted August 27, 2009 Report Share Posted August 27, 2009 Tthe scripting language AutoIt has a comprehensive and reliable set of functions for handling Internet Explorer usage (including waiting for pages to finish loading). FYI, Macro Express 4 is able to drive AutoIt scripts directly (including the ability to pass and receive parameters). Quote Link to comment Share on other sites More sharing options...
rberq Posted August 27, 2009 Author Report Share Posted August 27, 2009 Thank you. I have been meaning for some time to look into AutoIt. I guess now is the time. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.