ub3r |<1||3r*1337*
04-14-2006, 08:44 PM
ok, this tutorial is designed to be easily read by people that do not know how to script! You need at least grade 7 math to do this and know integers
DO NOT POST AUTO-LOGIN SCRIPTS!!! NOBODY WILL LIKE IT IF U DO
ok, first, we will be making an auto-Login, how do you do that you say? well, it is quite simple, first comes a program name...
Program new;
Begin
End.that is what would come up if you just opened up scar, so, delete begin and end. then, if you like, replace 'new' with a program name of your choice(no spaces and no other characters except letters) or just delete everything from the screen.
before we do anything, we must setup SRL! to do this, type {.include SRL\SRL.scar} or wherever the SRL folder is located
ok, now, variables hold key things like for egsample:
var
x,y:integer; Integer means a whole number like 1,2,3,4, etc. so, x and y are numbers (but they arent numbers yet!). these are not neccesary when using SRL, and not neccesary when not finding colors. ok, you get that right? read everything again to understand...
now, the most important thing for auto logins, you need...
Const just after your variables, then type whatever you'd like... for example
Const
User ='';
Pass =''; (you always need semi colons after each line) now this is telling SCAR that User and Pass are strings, in between the '', thats where the pass goes! simple.
now for the more tricky part, we need to put procedures! example...
procedure procedurename;(where procedurename is written, thats your name of the procedure) after that, you have to write 'begin' after it to start the procedure. example
procedure whatever;
beginafter that, you'd have to use mouse. clickmouse is used to click the mouse at cerrtain coordinates but at not the same place.example
mouse(x,y,1,1,True)the x,y means to put the numbers in those places.the 1, 1 means to move randomly away from your coords at that radius. True means it will click the left mouse button, false means right button.example
mouse(563,753,1,1True)x,y can be located by using the color-picker. there you go! you made it click at the coordinates you wanted!
we will then have to type in our username and password! to do this, in the procedures, right after our clickmouse, we put in
sendkeys(User)as you can see, 'User' is our Const! this means, whatever has been put in '' in the Const section, will be typed there(not where (user) has been entered. ok now, we have username down! now we have to make it press enter.example
sendkeys(chr(13))that is the next code that presses enter. there are more codes for other keys hidden in these forums... 13 means enter.for the next line, our last line for typing, we have to make it type our password. this is basically the same thing, except it is now typing our password. Try it!
after the typing commands, we have to get it to click on the login button. all you really have to do is the same thing as the other section (above the key commands) Try it!
ok, now that we have everything in our login procedure, we now have to end it! to do this,
End; that goes after every procedure. example
Procedure login;
Begin
mouse(123,123,1,1,True)
sendkeys(User)
sendkeys(chr(13))
sendkeys(pass)
mouse(123,123,1,1,True)
end; thats where the end would go
now for our main loop, the most important part, orders all our procedures and lets them run. ok, for the main loop, at the very end of the script, there should be a line with
Begin and then after that, you have to type in your procedures, example
Begin
login; our procedure has been put there and the script will run it. now we have to put in SetupSRL!
SetupSRL;that goes into our main loop right after begin. now, since that is all our procedures, we have to finish our script!example
Begin
login;
end.you must have a period after the last End of your script.
Congratulations! you now know the basics of SCAR scripting! (i hope)
if you dont get something, Just contact me on MSN!
DO NOT POST AUTO-LOGIN SCRIPTS!!! NOBODY WILL LIKE IT IF U DO
ok, first, we will be making an auto-Login, how do you do that you say? well, it is quite simple, first comes a program name...
Program new;
Begin
End.that is what would come up if you just opened up scar, so, delete begin and end. then, if you like, replace 'new' with a program name of your choice(no spaces and no other characters except letters) or just delete everything from the screen.
before we do anything, we must setup SRL! to do this, type {.include SRL\SRL.scar} or wherever the SRL folder is located
ok, now, variables hold key things like for egsample:
var
x,y:integer; Integer means a whole number like 1,2,3,4, etc. so, x and y are numbers (but they arent numbers yet!). these are not neccesary when using SRL, and not neccesary when not finding colors. ok, you get that right? read everything again to understand...
now, the most important thing for auto logins, you need...
Const just after your variables, then type whatever you'd like... for example
Const
User ='';
Pass =''; (you always need semi colons after each line) now this is telling SCAR that User and Pass are strings, in between the '', thats where the pass goes! simple.
now for the more tricky part, we need to put procedures! example...
procedure procedurename;(where procedurename is written, thats your name of the procedure) after that, you have to write 'begin' after it to start the procedure. example
procedure whatever;
beginafter that, you'd have to use mouse. clickmouse is used to click the mouse at cerrtain coordinates but at not the same place.example
mouse(x,y,1,1,True)the x,y means to put the numbers in those places.the 1, 1 means to move randomly away from your coords at that radius. True means it will click the left mouse button, false means right button.example
mouse(563,753,1,1True)x,y can be located by using the color-picker. there you go! you made it click at the coordinates you wanted!
we will then have to type in our username and password! to do this, in the procedures, right after our clickmouse, we put in
sendkeys(User)as you can see, 'User' is our Const! this means, whatever has been put in '' in the Const section, will be typed there(not where (user) has been entered. ok now, we have username down! now we have to make it press enter.example
sendkeys(chr(13))that is the next code that presses enter. there are more codes for other keys hidden in these forums... 13 means enter.for the next line, our last line for typing, we have to make it type our password. this is basically the same thing, except it is now typing our password. Try it!
after the typing commands, we have to get it to click on the login button. all you really have to do is the same thing as the other section (above the key commands) Try it!
ok, now that we have everything in our login procedure, we now have to end it! to do this,
End; that goes after every procedure. example
Procedure login;
Begin
mouse(123,123,1,1,True)
sendkeys(User)
sendkeys(chr(13))
sendkeys(pass)
mouse(123,123,1,1,True)
end; thats where the end would go
now for our main loop, the most important part, orders all our procedures and lets them run. ok, for the main loop, at the very end of the script, there should be a line with
Begin and then after that, you have to type in your procedures, example
Begin
login; our procedure has been put there and the script will run it. now we have to put in SetupSRL!
SetupSRL;that goes into our main loop right after begin. now, since that is all our procedures, we have to finish our script!example
Begin
login;
end.you must have a period after the last End of your script.
Congratulations! you now know the basics of SCAR scripting! (i hope)
if you dont get something, Just contact me on MSN!