Jump to content
Macro Express Forums

Wait for website to load


koden
 Share

Recommended Posts

I have a macro where I use this.

 

But I have webside that's named almost the same when it changes.

 

ex: before i hit enter it's named for ex.   test.online.com/#=

 

When I hit enter it changes to  test.online.com/#=X

 

X is a number that changes....

 

can I use a "wait for webside to load" no matter what number is in X place?

 

Hope it's to understand..

 

 

Link to comment
Share on other sites

After the web site has loaded, the macro can type ALT-d to highlight the URL.  Then copy the URL to clipboard, set a text variable from the clipboard, and check for the value of x.  Something like this:

 

REPEAT UNTIL COUNT NOT EQUAL COUNT (that is, repeat forever)

   LOAD WEBSITE

   WAIT FOR WEBSITE TO LOAD

   TYPE ALT-d (highlights the URL)

   TYPE CTRL-c (copy URL to clipboard)

   VARIABLE SET STRING URLNAME FROM CLIPBOARD

   REMOVE ALL EXCEPT LAST CHARACTER FROM URLNAME

   IF URLNAME EQUALS 1 THRU 9

   ELSE

      REPEAT EXIT

   ENDIF

END REPEAT

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...
 Share

×
×
  • Create New...