Need a macro, willing to pay

Find a consultant or advertise your services here
Post Reply
george99
Posts: 7
Joined: Fri Nov 07, 2008 2:12 am

Need a macro, willing to pay

Post by george99 » Fri Nov 07, 2008 2:21 am

I built a macro that goes to a URL, and then clicks a button, fills in an input, and submits the form, and then goes to the next URL in the list.
I use this macro for several of my clients. Often there are thousands of URLs in the list.
The problem is that the server often has problems, times out, etc. So I have to restart the macro from where it left off.
This can be a real pain. I sometimes have this macro with 50,000 lines of code, and it takes a few days to run which is fine, but the problem is that I want to avoid constantly having to restart it. I want to be able to leave it running by itself.

My solution, but I don't know how to do it and here is where I need help:
After each page load, verify that a string of text exists on the page. If it does exist, then continue. If not, then go to the next "URL GOTO" command and continue from there.
I have attached a segment of my code. This same code is repeated for each URL. The only thing that changes is the URL itself. The rest is the same. So basically if it gets stuck anywhere in this code, then just jump to the next GOTO URL.

URL GOTO=http://zzzzzzzzzz.us-dc1-edit.store.yah ... ml?dired=1
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:* ATTR=NAME:*&&VALUE:New<SP>Property
TAG POS=2 TYPE=INPUT:TEXT FORM=NAME:* ATTR=NAME:* CONTENT=dimensions
TAG POS=1 TYPE=SELECT FORM=NAME:* ATTR=NAME:* CONTENT=0
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:* ATTR=NAME:*&&VALUE:Continue
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:* ATTR=NAME:*&&VALUE:New<SP>Property
TAG POS=2 TYPE=INPUT:TEXT FORM=NAME:* ATTR=NAME:* CONTENT=free-shipping
TAG POS=1 TYPE=SELECT FORM=NAME:* ATTR=NAME:* CONTENT=9
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:* ATTR=NAME:*&&VALUE:Continue
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:* ATTR=NAME:*&&VALUE:New<SP>Property
TAG POS=2 TYPE=INPUT:TEXT FORM=NAME:* ATTR=NAME:* CONTENT=free-ship-method
TAG POS=1 TYPE=SELECT FORM=NAME:* ATTR=NAME:* CONTENT=0
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:* ATTR=NAME:*&&VALUE:Continue
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:* ATTR=NAME:*&&VALUE:New<SP>Property
TAG POS=2 TYPE=INPUT:TEXT FORM=NAME:* ATTR=NAME:* CONTENT=ship-alone
TAG POS=1 TYPE=SELECT FORM=NAME:* ATTR=NAME:* CONTENT=9
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:* ATTR=NAME:*&&VALUE:Continue
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:* ATTR=NAME:*&&VALUE:New<SP>Property
TAG POS=2 TYPE=INPUT:TEXT FORM=NAME:* ATTR=NAME:* CONTENT=flat-ship-rate
TAG POS=1 TYPE=SELECT FORM=NAME:* ATTR=NAME:* CONTENT=3
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:* ATTR=NAME:*&&VALUE:Continue
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:* ATTR=NAME:*&&VALUE:New<SP>Property
TAG POS=2 TYPE=INPUT:TEXT FORM=NAME:* ATTR=NAME:* CONTENT=origin-zip
TAG POS=1 TYPE=SELECT FORM=NAME:* ATTR=NAME:* CONTENT=0
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:* ATTR=NAME:*&&VALUE:Continue
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:* ATTR=NAME:*&&VALUE:New<SP>Property
TAG POS=2 TYPE=INPUT:TEXT FORM=NAME:* ATTR=NAME:* CONTENT=number-of-boxes
TAG POS=1 TYPE=SELECT FORM=NAME:* ATTR=NAME:* CONTENT=0
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:* ATTR=NAME:*&&VALUE:Continue
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:* ATTR=NAME:*&&VALUE:New<SP>Property
TAG POS=2 TYPE=INPUT:TEXT FORM=NAME:* ATTR=NAME:* CONTENT=multi-box-weights
TAG POS=1 TYPE=SELECT FORM=NAME:* ATTR=NAME:* CONTENT=0
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:* ATTR=NAME:*&&VALUE:Continue
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:* ATTR=NAME:*&&VALUE:New<SP>Property
TAG POS=2 TYPE=INPUT:TEXT FORM=NAME:* ATTR=NAME:* CONTENT=multi-box-dimensions
TAG POS=1 TYPE=SELECT FORM=NAME:* ATTR=NAME:* CONTENT=1
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:* ATTR=NAME:*&&VALUE:Continue
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:* ATTR=NAME:*&&VALUE:New<SP>Property
TAG POS=2 TYPE=INPUT:TEXT FORM=NAME:* ATTR=NAME:* CONTENT=invalid-ship-methods
TAG POS=1 TYPE=SELECT FORM=NAME:* ATTR=NAME:* CONTENT=0
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:* ATTR=NAME:*&&VALUE:Continue
CLICK X=52 Y=35 CONTENT=Update
dharmendra2000
Posts: 214
Joined: Fri Jul 04, 2008 1:28 pm
Location: Ahmedabad
Contact:

Re: Need a macro, willing to pay

Post by dharmendra2000 » Fri Nov 07, 2008 4:55 am

You can track how many lines (URLs) are executed, and based on that you can start macro from next line using java script.

If site face time out on 15000 line, so you track it and restart your macro from 15001 next time.
george99
Posts: 7
Joined: Fri Nov 07, 2008 2:12 am

Re: Need a macro, willing to pay

Post by george99 » Fri Nov 07, 2008 5:17 am

Hi,
Thanks for the reply.
I didn't know I could put javascript in the macro.

However, using SET !ERRORIGNORE YES seems to have solved my problem.

Thanks.
dharmendra2000
Posts: 214
Joined: Fri Jul 04, 2008 1:28 pm
Location: Ahmedabad
Contact:

Re: Need a macro, willing to pay

Post by dharmendra2000 » Fri Nov 07, 2008 6:10 am

You can not put Javascript in macro, but you can call macro from Javascript!!

If it works properly do not forget to pay :wink:
Post Reply