Changing web address valuable by 1

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
Myke

Changing web address valuable by 1

Post by Myke » Tue Mar 09, 2004 9:36 pm

I need to have a website loaded

ex. http://www.example.com/hello1

some commands run and then load

ex. http://www.example.com/hello2

run some commands, load

ex. http://www.example.com/hello3

etc, etc, etc... How do i make it so it goes to the next consecutive number in the web address? is there some kind of +1 command after the script's completion?

thanks!

Lumumba

Post by Lumumba » Tue Mar 09, 2004 11:58 pm

Let>Counter=0
Let>MaxCount=20

Label>MyLoop
If>Counter=%MaxCount%,Done
Add>Counter,1
Run Program>iexplore "http://www.example.com/hello%Counter%.html"
.
.
.
Goto>MyLoop

Label>Done
MessageModal>Done!

myke

Post by myke » Wed Mar 10, 2004 10:06 pm

"Invalid Numeric or Date Format in "Add>Counter,1"

:?

Lumumba

Post by Lumumba » Wed Mar 10, 2004 11:26 pm

I assume you've coppied my code from the forum.
Bingo. In that case you've got this

Add>Counter,1

1 isn't a valuable numeric character !

Please check every line for trailing spaces.Thx.

myke

Post by myke » Wed Mar 10, 2004 11:53 pm

ahh thanks that fixed that problem. now it keeps making it a date instead of just a number :? , it keeps adding one day to the date

myke

Post by myke » Thu Mar 11, 2004 12:05 am

actually is still does give the error "Invalid Numeric or Date Format in "Add>Counter,1" hmmmm

Lumumba

Post by Lumumba » Thu Mar 11, 2004 1:10 pm

I remember that Add> is often used to work with date formats. So if you have a global date variable (which isn't the case in the provided code), so replace this,

Add>Counter,1

with that:

Let>Counter=%Counter%+1

Lumumba

Post by Lumumba » Thu Mar 11, 2004 1:13 pm

:idea: Maybe that's it :?: :?: :?:

Add>%Counter%,1

Guest

Post by Guest » Thu Mar 11, 2004 7:52 pm

Lumumba wrote:I remember that Add> is often used to work with date formats. So if you have a global date variable (which isn't the case in the provided code), so replace this,

Add>Counter,1

with that:

Let>Counter=%Counter%+1
woohoo! that worked! thanks for all your help i greatly appreciate it

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts