Ok here's the my first script, It's not the first one i've ever made, but the first one I actually think is cool and the first I actually put on the forums, it's SCAR not SRL....
SCAR Code:
{|/////////////////////////////////////////////////////////////////////|
/|/////////////////////////////////////////////////////////////////////|
/|////////////////////This Is My First Script//////////////////////////|
/|//////////////////////////By: FrOgY//////////////////////////////////|
/|/////////Draw a picture in Paint With Some Of These Colors///////////|
/|////////////Dark Blue, Dark Yellow, Red, Black, or White/////////////|
/|/////////Go To The Setup and Type the color you drew with////////////|
/|////////Assign Scar to the Paint Window, then run the Script/////////|
/|//The Script Will Erase or Draw Over all of the color you drew with//|
/|/////////////////////////////////////////////////////////////////////|
/|///////////////Make The Image At Least 10x10/////////////////////////|
/|///////Use The Large Brush Tool or Eraser not pencil/////////////////|
/|/////////////////////////////////////////////////////////////////////|
/|////Start the Mouse By where you want it to start on the picture/////|
/|//////////////////and use ctrl+alt+s to start////////////////////////|
/|/////////////////////////////////////////////////////////////////////|}
program New;
var x,y,w,h: integer;
const
blue = 16711680;
red = 255;
yellow = 65535;
black = 0;
white = 16777215;
// Setup Section
color= blue; //type One Of Above Colors Here
// End Of Setup
procedure ClickColor;
begin
FindColorSpiral(x,y,color,3,3,w-1,h-1);
MoveMouseSmooth(x,y);
ClickMouse(x,y,true);
end;
begin
GetClientDimensions(w,h);
GetMousePos(x,y);
repeat
ClickColor;
until(false)
end.
I actually had to debug the code many times to get it to work good
Notice the
FindColorSpiral(x,y,color,3,3,w-1,h-1);
w and h are the client max dimensions, but since the move mouse jumped out a little to far sometimes the script would try to erase the frame and the Paint program itself, but by putting -1 on the xe and ye it stopped it from doing so...
This script takes a while sometimes (especially if your using it as an inverter that changes more than 50% of the color to another one)
I really like using this with mazes of Blue that are on a different color background, it will follow the lines if they are made with a pencil...
Note: You can draw stuff with the pencil, you just cant erase with it
Note: Stop the program with Ctrl+Alt+S
Note: The Drawing starts wherever your mouse is when you hit Ctrl+Alt+R