SRL Archive - Help and Support

I cant make a title for this... Just Come!


n3ss3s

2007-04-29 08:50:20

Kk i invented sum god damn alien technology which means that:
Is it possible to save coordinates at the same time youre doing something like

function mine:boolean;
begin
blablabla;
bla-blabla=blabla+1;
blalalalalablaa;
result:=true;
end;
begin
while mine do
getmousepos(x,y);
X:=x;
Y:=y;
end.
The point is that id like to use it in my wcer in following way:
While the script does anything it always saves some coordinates, like we had a silentmouse doing getmousepos(); same time as when it is chopping, doing randoms - anything?

Is it possible?

c0de

2007-04-29 09:28:19

Click tree, save coords in temp variable, move mouse for 5 secs, then move back to the coords, if the text in corner is not Chop-down tree, it means the tree has been chopped so you can move onto next one.



function ClickAndSave : boolean;
begin
FindTree;
if IsUpText('tree') then
begin
Mouse(x, y, 5, 5, true);
GetMousePos(tempx,tempy);
// do something
MMouse(tempx, tempy,0,0);
// check again.. maybe make recursive function ? :P
end;
end;