Dumpin
11-08-2007, 04:58 PM
Quick made a Function that clicks with right mouse button or the left mouse button in random order..
Didn't test it but it should work in theory I think...
function RandomClick(Option: string; active : boolean): boolean;
var
ClickStyle, x, y : integer;
begin
if (active) then
begin
for ClickStyle := 1 To 2 Do
begin
Case Clickstyle of
1: Mouse(x, y, 3, 3, true);
2: ChooseOption(Option);
end;
result := true;
end;
end;
end;
fill it in as:
RandomClick('ttack', true)
'ttack' is right mouse option
true should be true, otherwise it won't click :)
gl
Didn't test it but it should work in theory I think...
function RandomClick(Option: string; active : boolean): boolean;
var
ClickStyle, x, y : integer;
begin
if (active) then
begin
for ClickStyle := 1 To 2 Do
begin
Case Clickstyle of
1: Mouse(x, y, 3, 3, true);
2: ChooseOption(Option);
end;
result := true;
end;
end;
end;
fill it in as:
RandomClick('ttack', true)
'ttack' is right mouse option
true should be true, otherwise it won't click :)
gl