yahretzkee
2009-12-28 09:24:14
Hi everyone!
I've been a scripter about 2 years ago, made some nice scripts which were published and had a alot of downloads and active users.
Now, after 2 years I want to play around and see how do things look like now.
So here we are, I've made a really simple begginer's script, which should look for a color in the game area and automaticly click on it, when its found.
Then there is a simple command which informs us about that, and then the program waits for 5 seconds.
The problem is, nothing is happening. The script is running, it seems fine, but the mouse doesn't even move. Maybe i missed something, maybe after 2 years there are some new commands? I dont know. Anyway, I thought this forum is just for this - to help people, so here I am, waiting for help :)
Here's the code:
I've been a scripter about 2 years ago, made some nice scripts which were published and had a alot of downloads and active users.
Now, after 2 years I want to play around and see how do things look like now.
So here we are, I've made a really simple begginer's script, which should look for a color in the game area and automaticly click on it, when its found.
Then there is a simple command which informs us about that, and then the program waits for 5 seconds.
The problem is, nothing is happening. The script is running, it seems fine, but the mouse doesn't even move. Maybe i missed something, maybe after 2 years there are some new commands? I dont know. Anyway, I thought this forum is just for this - to help people, so here I am, waiting for help :)
Here's the code:
program Simple;
{.include SRL/SRL.scar}
var
x,y : Integer;
begin repeat
if FindColor(x,y,669001,1,1,600,600)=true then
begin
Mouse(x,y,1,1,true);
Wait(5000);
Writeln('Color Found!');
end;
until(false);
end.