Jump to content
Macro Express Forums

Wait For Mouse Cursor Problem.


immy786

Recommended Posts

I'm having problem with this command

 

"Wait for mouse cursor: arrow"

 

In Firefox it works fine, as the web page loads the cursor is displayed as a hour glass, when it is finished loading the cursor turns into the arrow and the macro knows when it continue..

 

However in Internet Explorer this doesn't work because the cursor never changes when the webpage is loading.

 

I cannot use wait for webpage to load because the pages are dynamic and internal.

 

any ideas?

Link to comment
Share on other sites

I cannot use wait for webpage to load because the pages are dynamic and internal.

I am lost as to how a web page being "dynamic and internal" presents a problem with the Wait for Web Page command. What is happening that makes the command unusable?

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 months later...
Because the command ASKS for a webpage in the properties whereas I want it to use whatever webpage currently in the window.

I see the problem. Perhaps this script may work for you.

 

It just reads whatever url is in the IE address bar, then plugs it into the Wait for Web Page command.

 

However, it will only work if the url in the address bar is correct. If your site is very slow, the script may retrieve a blank (no data) or it may retrieve the previous url. Either way, the Wait for Web Page command will get wrong info.

 

To test this script:

 

1) load any slow web page in IE.

 

2) while the page is still loading, make sure its url is in the address bar, and press Ctrl-Keypad5.

 

3) If the script works, you will get a "Page loaded" text box the moment it is finished loading.

 

Delay 10 Milliseconds

// Get the address bar control

Get Control %C1% (Internet Explorer: Edit)

// retrieve url in address bar

Variable Get Control Text: %C1% to %T1%

Delay 10 Milliseconds

// wait 30 sec for web page

Wait for Web Page: "%T1%"

Text Box Display: Page loaded!

Wait_for_any_web_page.mex

Link to comment
Share on other sites

I guess I missed this back in January. Sorry about that.

 

Here is another thing you might want to try. You can do a Wait for Web Page command and leave the url blank. This will return when Internet Explorer is no longer busy. In most cases that indicates that the page has finished loading. For some pages with many advertisements and links to other servers you may need to use the macro suggested by lemming.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...