SRL Archive - First Scripts

Google's Simple autotyper.


Google It

2012-03-21 22:49:39

program new;
procedure google;
begin
typesend('test');
end;
begin
google;
end;

Could somebody tell me if this is a good first script? I just made it today, and I want to learn to code in Simba as fast as possible.

Joe308watson

2012-03-21 23:01:30

Well I would say that a bad first script is impossible.

Google It

2012-03-21 23:03:38

Heh. You made me laugh. :P. Going to post a new script in a lil bit.

brandon8081

2012-03-21 23:54:07

Just letting you know this is in the wrong section.

Vinyl Scratch

2012-03-22 00:46:32

Brandon, tell me how it's in the wrong section? He posted his first script, in the First Scripts section. Please, just read before you post. Thank you.

eduardo230

2012-03-22 00:54:02

oo ti think he is saying that because it says runescape first sripts, btw very nice first script XD my first script detected the colors of the youtube play buuton and click it, so i had to click play in simba and the video started. hahah now i do more complex things but its cool to play a bit at first

Vinyl Scratch

2012-03-22 01:02:27

Yeah, I Really is, My first script was an autotyper. I was VERY proud of it.

Main

2012-03-22 01:09:52

This is very good, you should also read the srl include. It's like looking into wonderland, looks fantastic.

Abu

2012-03-22 02:31:36

This is in the wrong forum: SRL-Forums > SRL Public Forum > Runescape Scripts > First Scripts

It is not a first Runescape Script

It should be here instead: http://villavu.com/forum/forumdisplay.php?f=451


Anyway, if you think about it it is a very simple script - which is good.

hope to see longer ones from you in future :)

brandon8081

2012-03-22 04:14:32

From: xXTrollXx
Brandon, tell me how it's in the wrong section? He posted his first script, in the First Scripts section. Please, just read before you post. Thank you.


Does this look like a Runescape script? There is another section that's labeled Other Scripts.

masterBB

2012-03-22 04:37:21

You made a few mistakes, which will make the code unable to run.

TypeSend is part of the SRL include. You have to include it and set it up.

You forgot that the last end of your program will be like end. instead of end;

I also fixed the standards a bit.

program new;
{.include srl/srl.simba}

procedure Google;
begin
TypeSend('test');
end;

begin
SetupSRL;
Google;
end.

Jagex_Fagex

2012-03-22 06:19:43

Looks good. Keep trying for bigger and better things! One of the most important things when you're learning i think, is to make sure you get your standards right from the beginning, it's a hell of a habit to change later on, and it's a pain to go through 1k+ lines of code to fix it up. Have a look here - http://villavu.com/forum/showthread.php?t=60288

I also agree with Main, reading code, like the SRL include will help you immensly, however, it can be quite daunting at first. Check out some tutorials to help you get used to it. I head YoHoJo's video tutorials are pretty great, and they take you step by step making rs scripts :)

[offtopic]Guys, this uses SRL which is an include FOR RS. Type send is for human typing, so you don't get banned on RS. SendKeys, would be for everything else. Please don't try and back seat moderate if you have no idea what you are talking about.[/offtopic]

Vinyl Scratch

2012-03-23 08:56:31

Thank you, J_F. You ninja'd me about the Typesend and Sendkeys. Lol, anyways, like some other people have mentioned, 1. Standards, 2. Include SRL. Hey, MasterBB, can you still use "{.include blah blah blah}" or do you have to use "{$i Blah Blah Blah}"?

masterBB

2012-03-23 09:30:42

From: xXTrollXx
Thank you, J_F. You ninja'd me about the Typesend and Sendkeys. Lol, anyways, like some other people have mentioned, 1. Standards, 2. Include SRL. Hey, MasterBB, can you still use "{.include blah blah blah}" or do you have to use "{$i Blah Blah Blah}"?


That is a matter of preference. Personally I don't understand why anyone would you use the ugly $i tag, but oh well, not everyone is as great as me.

Vinyl Scratch

2012-03-23 18:50:28

Nope. They sure aren't. Anyway, thanks for telling me that you can still use those. I don't like the "$i" tag either. This will make my scripts more sexy.