I'm making a bot that lvls up a skill after it has enough xp gathered.
This is what the screen looks like:
I want to make the bot to click the button when it turns yellow.
This is what I did so far:
Code:
program AutoSkillRIA;
{$I srl-6/srl.Simba}
Procedure LvlUp;
var
X,Y:Integer;
Begin
if Findcolor(x,y,1101540, 21, 367, 266, 532) then
begin
writeln('Leveling up a skill');
MouseSpeed :=15;
Mouse(x, y);
end
else
writeln('Nothing to level up');
wait(500);
end;
begin
repeat
LvlUp()
until(false);
end.
This finds the yellow button, but it doesn't click it
and the message "Nothing to level up" isn't displayed.
What am I doing wrong?