Sign in to follow this  
Followers 0
techshots

Do Until question

2 posts in this topic

SCRIPT FUNCTION: it will copy the end number of a url, change it by adding +1 to the number, then append it to the end of the url and do this until XXX number.

PROBLEM:

When I run it the first run looks fine, but after that I don't get the correct output.

First iteration:

----------------

The script successfully changes the end number from

http://tech.groups.yahoo.com/group/SEO_Techniques/message/22422

to to:

http://tech.groups.yahoo.com/group/SEO_Techniques/message/22423

Second iteration:(it changes to the number "1" ?)

----------------

http://tech.groups.yahoo.com/group/SEO_Techniques/message/1

Third iteration:(it changes to the number "2" ?)

----------------

http://tech.groups.yahoo.com/group/SEO_Techniques/message/2

Fourth iteration:(it changes to the number "1" ?)

----------------

http://tech.groups.yahoo.com/group/SEO_Techniques/message/1

And subsequently alternates between 2 and 1

Full script:

; GET THE NUMBER STRING SECTION

Do

; CHANGE THIS highlight message number1

MouseClick("left", 807, 60, 2)

; copy message number to clipboard and put it onto clipboard

Send("{CTRLDOWN}c{CTRLUP}")

$clip_mesg_no = ClipGet()

; add 1 to the message number

$clip_mesg_no = $clip_mesg_no + 1

; put the new number into clipboard

ClipPut($clip_mesg_no)

; CHANGE THIS highlight message number

MouseClick("left", 807, 60, 2)

sleep (3000)

; paste the new message number

Send("{CTRLDOWN}v{CTRLUP}")

; change URL to the next message

Send("{Enter}")

sleep (3000)

Until $clip_mesg_no = 22435

Any help would be appreciated Thanks!!

Share this post


Link to post
Share on other sites



I figured it out.

Put a sleep(3000) here:

; copy message number to clipboard and put it onto clipboard

Send("{CTRLDOWN}c{CTRLUP}")

sleep (3000)

$clip_mesg_no = ClipGet()

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0