well, very good, but i have a few suggestions
you should have it find a color and the click it, because the way you have it, it will just click on a certain spot on the screen. but hey, you may want that.
my other suggestion is instead of including squig, include SRL/SRL.scar. at the begining of your script, type the line "setupsrl". this will setup srl for you ;) lol. then instead of clickmouse, use the command
"mouse(xcoord,ycoord,the randomness in the x direction,rand in y direction, left button?);"
so in your case it would be
SCAR Code:
program myFirstScript;
{.include srl/srl.scar}
procedure click;
begin
mouse(264, 105, 3,3,true); //right clicks on the leaf, this will click randomly withing a 6 by 6 box.
popup('Examine'); //this is one of many srl option clicking procedures, and it is very simple so that is good for you.
end;
begin
setupsrl;
click;
end.
you can figure out how to find the color of the leaf on your own if you want to, or i can tell you :).
good luck learning scar!