SRL Archive - First Scripts

My simple autologger (Re-Build)


Floor66

2007-10-23 12:48:29

Since i had so much troubles, i re-made it.
This is after 1 Hour of Tutorial.
I added pretty much, and i havent read a SINGLE more line of the Tutorial.
Rate 1/5, FIRST Script.
Took me long to understand the
if (FindColor(x, y, BColor, 0, 0, 1280, 1024)) then
It was all hard for me, but i succeeded!


program Logger;
{.include SRL\SRL.scar}


procedure LogIn;
begin
Mouse(460, 293, 10, 10, true);
Mouse(294, 257, 1, 1, true);
TypeSend('Username');
Mouse(311, 278, 1, 1, true);
TypeSend('Password');
Mouse(303, 325, 10, 10, true);
end;

var
x, y: Integer;

const
BColor= 584;

procedure ClickButton;
begin
if (FindColor(x, y, BColor, 0, 0, 1280, 1024)) then
begin
Writeln('Found Red Button, Clicking now');
Mouse(390, 353, 10, 10, true);
end else
Writeln('Did not find the red button, Stopping');
Terminatescript;
end;

begin
SetUpSrl;
LogIn;
wait(2000+random(1000));
ClickButton;
end.

I made ALL the code, i read the tutorial once, until where i am now, i was creative and gone working.
I have learnt more then id ever thought!

I run on DiVi 3.12c SRL 4 #5.


How far i'd come on membership app.?
Suerly not 100%, maybe 15%? :P

Floor66

2007-10-23 13:04:18

30 mins ago everyone reply'd :P
Now its silent here..

Rikje

2007-10-23 13:07:44

be patient :p

it looks oke. you've putting some time in it :)

on how far i'll come on a apply :p
i think like 10%, but keep on learning ;)

proresearch

2007-10-23 13:10:18

looking good keep up the good work, and you will be sucessful, never give up.

Floor66

2007-10-23 13:35:15

Thanks :)

Lacky

2007-10-27 00:01:45

Just remember, with Mouse, you do not have to put, true. Mouse automatically moves and clicks for you. It's only with right clicks where you have to put a boolean (false).

Good job though!

Floor66

2007-10-27 10:59:33

I just finished my Powerminer, check it out in Mining section

Sir R. M8gic1an

2007-10-27 11:32:45

From: Lacky
Just remember, with Mouse, you do not have to put, true. Mouse automatically moves and clicks for you. It's only with right clicks where you have to put a boolean (false).

Good job though!


you do have to put true in.

floor66, it's a good start, i can see you're interested in becoming a good scripter and getting int srl members. i think that you should also start checking out the many srl functions there are then. open up your includes and just start looking through the files to get a general idea of what functions and procedures there are. then choose some sort of popular script that you could do, and start looking through other scripts of the same kind. for example you want to do a miner, start looking at power miners, learn the techniques other people use and if you don't understand them look for it in tutorials. Also make sure you check out the multiplayer functions because that's the biggest advantage of srl.

any questions at all that you have, you can pm me.

~RMagician

Vanessa

2007-10-27 13:00:35

Working perfectly. Tyvm. :)

fert

2007-10-27 14:30:55

great job

vac33

2007-10-27 17:27:53

Good job I love it if I ever make a scrip ill use it

Lacky

2007-10-27 22:18:01

From: Rasta Magician
you do have to put true in.

floor66, it's a good start, i can see you're interested in becoming a good scripter and getting int srl members. i think that you should also start checking out the many srl functions there are then. open up your includes and just start looking through the files to get a general idea of what functions and procedures there are. then choose some sort of popular script that you could do, and start looking through other scripts of the same kind. for example you want to do a miner, start looking at power miners, learn the techniques other people use and if you don't understand them look for it in tutorials. Also make sure you check out the multiplayer functions because that's the biggest advantage of srl.

any questions at all that you have, you can pm me.

~RMagician


No, you don't. That's the beauty of Mouse, it automatically clicks, so there is no reason to put True because it automatically clicks (left). For some reason now, Mouse is screwing up for me (even if you do put the boolean in) and comes up with parameters problem. I think there has been an update to Mouse or something and if you just type in "Mouse(" the info box comes up telling you some new stuff (I think).

Floor66

2007-10-28 02:59:26

Ah since SRL 4 #6 came out?

bth8

2007-10-29 01:52:52

good job it works really well (at least for me)

Lacky

2007-10-29 04:10:56

From: floor66
Ah since SRL 4 #6 came out?


Nah…it's been crapping up on me like a fag for ages…dunno why though. But it's only with the Findcolor function though.