Hey i'm trying to update an old script and i'm not sure wat to change this to Mouse(558, 187, 5, 5, True)
any ideas?
Hey i'm trying to update an old script and i'm not sure wat to change this to Mouse(558, 187, 5, 5, True)
any ideas?
SRL still uses Mouse, but whats it clicking the coordinates for? Like is it clicking on the compass or? If its using the compass use RadialWalk;
If you want to click on a thing that moves, get a color from it, if it has text in the left corner try
SCAR Code:procedure thisthing;
begin
if FindObjCustom(x, y, ['Upper left text'], [Color], 15) then
Mouse(x, y, 5, 5, true);
end;
if it doesn't have up text do
SCAR Code:begin
if FindColorTolerance(x, y, Color, msx1, msy1, msx2, msy2, 15) then
Mouse(x, y, 5, 5);
end;
Some more info on it what the script is trying to do would help.
Yes i already had the colour... i just didnt add that but the reason i asked this is that when ever i use Mouse(586, 187, 5, 5, True)
i get the error: unknown identifier 'Mouse' in script
Then you either don't have the newest SRL or your not including SRL.
Get subversion, read a tutorial from this part of the forum http://www.srl-forums.com/forum/srl-...tory-f275.html
To include SRL go
SCAR Code:{.include SRL/SRL.scar}
Right under the program;
An example would be for when you open the script it would look like:
SCAR Code:program new;
begin
end.
Change it to:
SCAR Code:program new;
{.include SRL/SRL.scar}
begin
end.
There are currently 1 users browsing this thread. (0 members and 1 guests)