ok so Im writing a script that posts ads on a local website. The need for the script is because I offer a worldwide service so I need to post the ad in all the city's listed.
This is what I have so far
SCAR Code:
program New;
begin
clickmouse(200, 48,true); //address bar
wait(1000);
sendkeys('www.kijiji.ca');
sendkeys(chr(13));
wait(2000);
clickmouse(736, 108,true); //post add
wait(5000);
holdmouse(1019,733,true) //scroll down
wait(3000)
releasemouse(1019,733,true)
clickmouse(122,230,true)
wait(2000)
clickmouse(239,402,true) //BOLD BUTTON
wait(3000)
clickmouse(340,405,true) //center button
wait(3000)
clickmouse(281,504,true)
sendkeys('International Shipping Link Inc.')
end.
I am currently using SCAR but I have Simba also and you can help me out using whichever one. just let me know which.
so im going to list what I need help in
1. I need to know how to label the main part of my script (kind of what i posted up there). i think its called a procedure. so that it can post the ad once im on the page for a different city. So i dont have to copy paste the above code.
2. I need to know how to tell SCAR/SIMBA to clickmouse once the page is loaded. instead of "wait(2000)"
3. I need to tell SCAR/SIMBA to click on a specific link on a page. just in case i use this script on a different computer with a different browser or resolution the clickmouse command wont work.
Thanks