I have searched around and I haven't been able to find a way to have the mouse click a random number of times. How can I do this?
I have searched around and I haven't been able to find a way to have the mouse click a random number of times. How can I do this?
Just do Mouse a number of random times.
Ie do the procedure Random(10) times.
Thanks, I thought I tried that... Anyway thanks a lot!
Example:
SCAR Code:var i : Integer;
begin
for i:= 1 to Random(10) do
begin
Mouse(x, y, 0, 0, True);
end;
end;
just for future referance if there s=is only one line there doesn't have to have a begin and end as well with a conditional statement
eg.
yea thats how you should do it though.SCAR Code:var i : Integer;
begin
for i:= 1 to Random(10) do
begin
Mouse(x, y, 0, 0, True);
end;
end;
begin
for i:= 0 to random(10) do
mouse(x,y,0,0,true);
//this wouldn't do anything if there was something here
end;
edit: 500th post
Just wondering, what you going to use that for?
[CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
[CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]
[CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]
There are currently 1 users browsing this thread. (0 members and 1 guests)