how do you make a mouse click a spot then randomly choose how many times to click there. And how do you make the mouse click in the same spot repeadaly without typing Mouse(x,y,122,121,1,1,). over and over again.
thanks.
how do you make a mouse click a spot then randomly choose how many times to click there. And how do you make the mouse click in the same spot repeadaly without typing Mouse(x,y,122,121,1,1,). over and over again.
thanks.
http://www.fenjer.com/adnan/SRLStats/1347.png
Click Here For A Cool Offer
http://8322.leisureaudiosales.com/retail.cgi
SCAR Code:i:=0;
repeat
Mouse(whatever);
i:=i+1;
until(i=random(5));
jhildy, Isn't there a big possibility that "random(5)" would be for example 0? Or change to lower numbers than i? because then that would be endless...
SCAR Code:program New;
{Include SRL/SRL.scar}
var
Int, RInt: integer; //The variables.
begin
RInt := Random(10) + 1;//Random number between 1-10..
Int := 0;// Sets Int to 0.
while not (Int = RInt) do //while the integers aren't equal do..
begin
Mouse(StuffHere);//Add coordinates etc. here.
Int := Int + 1;//Add one to Int
end;
end.
O.o I always thought if u did random it would only do randomly more than the number not randomly less....example
5+random(5) I thought that would only randomly choose out of
5,6,7,8,9,10 not 1,2,3,4 as well
Sleeping...
eh.. i = random(5).. I think that means that i has to be equal to random(5) so the loop will end.. So..
random(5) = 0,1,2,3,4.. Chooses random number between that and if they happend to be lower and i goes above 4 it will be endless..
"5+random(5) I thought that would only randomly choose out of
5,6,7,8,9,10 not 1,2,3,4 as well"
What..? If you mean this part
RInt := Random(10) + 1;//Random number between 1-10..
It picks a number between 0-9 and adds 1 to it..
I even tested what jhildy posted there.. 1 out of 3 tries resulted a endless loop![]()
whoops my bad but i had the right idea.
k thanks i think i underrstand now.
http://www.fenjer.com/adnan/SRLStats/1347.png
Click Here For A Cool Offer
http://8322.leisureaudiosales.com/retail.cgi
errr woops I read ur post wrong GoF, my bad![]()
Sleeping...

There are currently 1 users browsing this thread. (0 members and 1 guests)