Good try for your first script, but this script would get you banned. Never use MoveMouseSmooth, MoveMouse, MoveMouseSmoothEx or ClickMouse. They will all get you banned! Here, let me show you how you could make it a LOT less detectable (To learn about the commands I use, visit my tut (links in sig) Things the beginner tuts don't teach you)
SCAR Code:
program AutoLogin;
{.include Rswalker.txt}
const
Username='username';
Password='Password';
Begin
Mouse(470,291,5,5,true);
Mouse(470,291,5,5,true);
Wait(1000+random(500));
TypeSend(Username);
Wait(1000+random(500));
TypeSend(Password);
Wait(1000+random(500));
Mouse(304,321,5,5,true);
Wait(5000+random(1000));
Mouse(396,333,5,5,True);
End.
Much less detectability from Jagex there. See how I added randomness to your waits too? So it doesn't wait exactly 1 second each time, or exactly 5 seconds each time...etc. To learn about the other commands I used, like I said above this, visit my tut