Chryma
2013-03-31 20:15:13
I'm very new to this language, and I'm still a beginner at Java, but I understand most programming concepts. I'm trying to add to a script. I want it to right click buy on certain items/coordinates. What's the best way to do this? MMouse and then what? Also, what is required of MMouse? I can't input only x and y, because it tells me that it has an invalid amount of parameters.
example: Mouse(43, 545, 3, 3, true); 43, 545 . coordinates picked out with the color picker from Simba.
Chryma
2013-04-01 03:49:59
Hmm I was testing stuff today, trying to make it right click and then buy 5 times, this is what I have, but the 3rd begin highlights and says syntax error:
procedure BuyItems;
var
x, y:integer;
begin
MMouse(x, y, 262, 436);
wait(100)
ClickMouse2(mouse_left);
begin
wait(100)
MMouse(x, y, 91, 13);
wait(50)
ClickMouse2(mouse_right);
wait(100)
MMouse(x, y, 273, 207);
wait(100)
ClickMouse2(mouse_left);
if count = 5 THEN;
{
end
}
if
{
count := count+1;
repeat
}
begin
wait(100)
MMouse(x, y, 282, 87);
wait(50)
ClickMouse2(mouse_right);
wait (100)
MMouse(x, y, 264, 157);
wait(100)
ClickMouse2(mouse_left);
if count = 5 THEN;
{
count = 0
end
}
else
{
count := count+1;
repeat
}
end
begin
wait(100)
MMouse(x, y, 185, 87);
wait(50)
ClickMouse2(mouse_right);
wait (100)
MMouse(x, y, 181, 160);
wait(100)
ClickMouse2(mouse_left);
if count = 5 THEN;
{
count = 0
end
}
else
{
count := count+1;
repeat
}
end
begin
wait (100)
MMouse(x, y, 486, 41);
wait(100)
ClickMouse2(mouse_left);
end