SRL Archive - OSR Help

Timed Clicker


Magic Oreo

2012-05-15 22:48:45

I need help making a script that clicks a color if found every 30 seconds.
I searched and found something so this is my current script, it just holds the mouse in a certain place and doesn't actually click anything.

program Colour;
{.include SRL/SRL.simba}
var
x, y : integer;
begin
If FindColorTolerance(x, y, 7422390, 0, 0, 772, 502, 35) Then
Mouse(x, y, 1, 1, True);
wait(30000);
end.

Help?

I also recieve the error
[Hint] C:\Simba\Includes\SRL/SRL/core/animation.simba(257:3): Variable 'X' never used at line 256
[Hint] C:\Simba\Includes\SRL/SRL/core/animation.simba(257:3): Variable 'Y'

every time i compile it

Awkwardsaw

2012-05-15 23:01:04

You need to use loops,


program Colour;
{.include SRL/SRL.simba}

const
count = 100;// how many times to check. this will make the script loop 100 times
var
x, y, i : integer;
begin
repeat
If FindColorTolerance(x, y, 7422390, 0, 0, 772, 502, 35) Then
Mouse(x, y, 1, 1, True);
wait(30000);
inc(i);
until i > count;
end.

also that's not an error, some silly dev forgot to remove those variables before committing to the repository

Magic Oreo

2012-05-16 00:48:46

it's functional but the mouse speed is ridiciously slow, you can see it move every pixel… How do i speed that up to make it almost instant?

nvm added a line.

CephaXz

2012-05-16 00:58:42

Did you setupsrl?

John

2012-05-16 00:58:54

From: Magic Oreo
it's functional but the mouse speed is ridiciously slow, you can see it move every pixel… How do i speed that up to make it almost instant?

Add this to your script setup:
MouseSpeed:= 35;
You may need to take out the ":" for it to compile.

xdarkshadowx

2012-05-21 21:06:37

From: CephaXz
Did you setupsrl?


This is undoubtedly your problem. either that or you really messed with your mousespeed somehow. which doesn't seem possible. try setupsrl.