Here2help
2012-05-21 19:48:10
Mouse(x, y, 0, 0, False);What do the 0's and the False at the end mean?
2012-05-21 19:48:10
Mouse(x, y, 0, 0, False);2012-05-21 19:50:08
2012-05-21 19:51:19
2012-05-21 19:53:17
begin
GetMousePos(x, y);
mouse_Left; //not sure if the ";" is needed there or not.
Wait(500+random(250));
Exit;
end;2012-05-21 19:56:44
From: Here2help
Thanks for the replies.
CephaXz how does this look?begin
GetMousePos(x, y);
mouse_Left
Wait(500+random(250));
Exit;
end;
?
2012-05-21 19:59:14
From: CephaXz
What are you trying to do with those codes?
If you want to just click the mouse, use Clickmouse2(mouse_Left);
If you want to move and click, use Mouse(x, y, 4, 4, mouse_Left);
The randomness of axis x and y is up to you, but I usually use 3-5.
function
var
MyTPA : TPointArray;
MyPoint : TPoint;
x, y, i : Integer;
begin
FindColorsTolerance(MyTPA, 'range/stove color', MSx1, MSy1, MSx2, MSy2, 10);
for i := 0 to High(MyTPA)do
begin
MyPoint := MyTPA[i]
MMouse (MyPoint.x, MyPoint.y, 3, 3);
if (IsUpTextMultiCustom(['ange', 'Range'])) then
begin
GetMousePos(x, y);
Mouse(x, y, 4, 4, mouse_Left);
Wait(500+random(250));
Exit;
end;
Wait(350+random(350));
end;
end.
2012-05-21 20:02:33
function ClickRange: Boolean;
2012-05-21 20:04:32
From: abu_jwka
The above function looks fine, but you have to actually name your function and say what it will return…sofunction ClickRange: Boolean;
2012-05-21 20:04:40
From: Here2help
Trying to make it go from lefting clicking an item in my inventory, to left clicking the stove.
Here's the code so fare.function
var
MyTPA : TPointArray;
MyPoint : TPoint;
x, y, i : Integer;
begin
FindColorsTolerance(MyTPA, 'range/stove color', MSx1, MSy1, MSx2, MSy2, 10);
for i := 0 to High(MyTPA)do
begin
MyPoint := MyTPA[i]
MMouse (MyPoint.x, MyPoint.y, 3, 3);
if (IsUpTextMultiCustom(['ange', 'Range'])) then
begin
GetMousePos(x, y);
Mouse(x, y, 4, 4, mouse_Left);
Wait(500+random(250));
Exit;
end;
Wait(350+random(350));
end;
end.
2012-05-21 20:06:01
From: CephaXz
Just like what abu said. Should work fine, if you didn't copy and paste it from others scripts lol.
2012-05-21 20:15:31
2012-05-23 06:16:23
From: CephaXz
Should work if you know what you're doing.
Function must return something, so it will always have something behind the name of the function.
In your case, I think you can use Procedure. Procedure only need a name. Example:
Procedure ClickStove;