koden Posted December 8, 2021 Report Share Posted December 8, 2021 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.. Quote Link to comment Share on other sites More sharing options...
koden Posted December 9, 2021 Author Report Share Posted December 9, 2021 maybe I need to explain 🙂 is there a way to get the command "wait for webside to load" to read the last X sign and repeat macro if X= with a number between 1 and 9? Quote Link to comment Share on other sites More sharing options...
rberq Posted December 9, 2021 Report Share Posted December 9, 2021 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 Quote Link to comment Share on other sites More sharing options...
koden Posted December 9, 2021 Author Report Share Posted December 9, 2021 ahh.. yes have to go this way around.. sure thanks 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.