Jump to content
rts13

very simple script request.

Recommended Posts

Ok so this is me basically giving up. I Tried pretty hard. I just cant deal with the bugs and stuff.

 

I need a script that will post an ad on a specific website.

 

This is the page I would like the script to start

 

http://toronto.kijiji.ca/c-PostAd?AdVideoUrl=&AddressCity=&AddressCounty=&AddressRegion=&AddressSelectedByUser=false&AddressStreet=&AddressZip=&CPUrl=&CatId=144&ChangeCategory=&ChangePhoto=&ContactInfo=&Description=&Email=&EpsErrorCode=&EventEndDay=20&EventEndHour=23&EventEndMinute=59&EventEndMonth=9&EventEndSecond=3&EventEndYear=2011&EventStartDay=20&EventStartHour=0&EventStartMinute=0&EventStartMonth=9&EventStartSecond=3&EventStartYear=2011&GetNeighborhood=&Guid=&JavaScriptNotEnabled=false&MapAddress=&Phone=&Photo=&PostAs=&PreviewAd=&PreviewToEdit=&Price=&RequestRefererUrl=%2C&SelectedLeafCat=SelectedLeafCat&ShowPhone=checked&ShowTerms=&Thumbnail=&Title=&TransDescription=&TransTitle=&VinNumber=&WebsiteUrl=&action_cancel=&action_publish=&carproof=&cplink=&cpvin=&extraInfo=&machId=&text_loading=&useBasicUpload=false&utm_campaign=&utm_medium=&utm_source=

 

what I need:

 

1. a procedure that posts the ad

 

2. a command that enters the URL ( There are like 100 different city's listed on that website. but to post an ad I just need the URL's. So I need it to enter the URL for say. *post ad in toronto*, and then do the post ad procedure. and then enter another URL for a different city and do the post ad procedure again.

 

3. I want the script to use bitmaps(and maybe variables) because the 'post ad button' sometimes moves because of additional information and simply because different browsers are positioned differently.

 

 

 

This is what I have so far

 

procedure advert;
begin
ClickMouse(200, 48, true);
 Wait(1000);
 wait(3000)
 SendKeys('http://tinyurl.com/6xo668t');
 SendKeys(Chr(13));
  wait(3000)
  clickmouse(317, 373, true)
  wait(3000)
  sendkeys('Worldwide Shipping Services')
  wait (2000)
clickmouse(281,504,true)
sendkeys('International Shipping Link Inc.')
SendKeys(Chr(13));
holdmouse(440,458,true) //highlight
releasemouse(223,456,true)
wait(1000)
clickmouse(239,402,true)    //BOLD BUTTON
wait(1000)
clickmouse(339,403,true)    // center button
wait(1000)
clickmouse(621,459,true)  //description box
wait(1000)
clickmouse(621,459, true) //description box
wait(1000)
SendKeys(Chr(13));
wait(1000)
SendKeys(Chr(13));
wait(1000)
sendkeys('boxes, containers, automobiles')
 SendKeys(Chr(13));
 wait(1000)
sendkeys('special services')
wait(1000)
SendKeys(Chr(13));
wait(1000)
sendkeys('door to door pickup available')
wait(1000)
SendKeys(Chr(13));

sendkeys('www.intl-ship.com')
                 SendKeys(Chr(13));
sendkeys('*******')   //phone number
SendKeys(Chr(13));
sendkeys('from anywhere to anywhere')
SendKeys(Chr(13));
sendkeys('Big or Small we Ship it All')
end;

begin
 Advert;
end.

 

 

EDIT: I guess the part where the script enters the URL would be outside the procedure. Please do what you can to help me. If you can just fix the procedure part that would be ok too. Though using bitmaps would be nice.

post your ad.bmp

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.



×
  • Create New...