SRL Archive - Other Scripts

Signature Awesome Detector!! Flawless, Unbiased


LordGregGreg

2007-07-17 03:39:53

This will detect how awesome your signature is, and others.

It is 100% accurat and will give you a tangable percent of how awesome your signatiure is!

It is based on a 100% scale (0-100!!!)

[h]BE SURE TO DRAG THE SCAR TARGETING THING ON TO URE BROWSERS TITLE BAR[/h]

Enjoi

CHANGES
1. no more negaitve
2. less lag


PROGRAM GregsSigAwesomenessDetection;

{.include srl/srl.scar}

VAR
x1, y1, x2, y2,R,G,B,points: INTEGER;
RedCount:Extended;
// makeGregForm variables.
EndmakeGregForm: BOOLEAN;
GregsForm: TForm;
Label1, Label2, Label3, Label4, Label5, Label6,
Label7: TLabel;
Bevel1, Bevel2: TBevel;
Edit1, Edit2, Edit4, Edit3: TEdit;
Button1, Button2, Button3, Button4: TButton;
tcolor: LONGINT;

PROCEDURE Clear(Sender: TObject);
BEGIN
Edit1.Text := IntToStr(0);
Edit2.Text := IntToStr(0);
Edit3.Text := IntToStr(0);
Edit4.Text := IntToStr(0);
label7.Caption := '0% Awesome';
END;

PROCEDURE Judge(Sender: TObject);
BEGIN
x2:=strtoint(edit3.text);
y2:=strtoint(edit4.text);
points:=0;
RedCount:=0;
for x1:=strtoint(edit1.text) to x2 do
for y1:=strtoint(edit2.text) to y2 do
begin
points:=points+1;
ColortoRGB(getColor(x1,y1),R, G, B);
//if(NOT (((((R)-((G+B)/2))))=255))then
//writeln('R'+inttostr(R)+' G'+inttostr(G)+'B'+inttostr(R));
RedCount:= RedCount+((((R)-((G+B)/2))));
if(points mod 1200 = 0) then
begin
Button3.Caption:='Red is :'+floattostr(RedCount);
Button4.refresh;
end
end;
Button3.Caption:='Judge Sig';
writeln('Red Count was '+floatTostr(redCount));
writeln('points was '+floatTostr(points));
writeln('red over p was '+floatTostr(redCount/points));
label7.caption:=floattostr((((RedCount*100)/(points*255))+100)/2)+'% Awesome!';
addToReport('Sig is '+floattostr((((RedCount*100)/(points*255))+100)/2)+'% Awesome!');


END;

PROCEDURE clicked1(Sender: TObject);
BEGIN
REPEAT
wait(1);
UNTIL (NOT (ismousebuttondown(True)));
tColor := edit1.Color;
edit1.Color := clRed;
edit2.Color := clRed;
REPEAT
wait(1);
getmousepos(x, y);
Edit1.Text := IntToStr(x);
Edit1.refresh;
Edit2.Text := IntToStr(y);
Edit2.refresh;
UNTIL (ismousebuttondown(True));
BEGIN
getmousepos(x, y);
wait(10);
Edit1.Text := IntToStr(x);
Edit2.Text := IntToStr(y);
edit1.Color := tColor;
edit2.Color := tColor;
END;
END;

PROCEDURE clicked2(Sender: TObject);
BEGIN
REPEAT
wait(1);
UNTIL (NOT (ismousebuttondown(True)));
tColor := edit3.Color;
edit3.Color := clRed;
edit4.Color := clRed;
REPEAT
wait(1);
getmousepos(x, y);
Edit3.Text := IntToStr(x);
Edit3.refresh;
Edit4.Text := IntToStr(y);
Edit4.refresh;
UNTIL (ismousebuttondown(True));
BEGIN
getmousepos(x, y);
wait(10);
Edit3.Text := IntToStr(x);
Edit4.Text := IntToStr(y);
edit3.Color := tColor;
edit4.Color := tColor;
END;
END;

// When the form is closed, this code will be executed.
PROCEDURE makeGregFormOnClose(Sender: TObject;
VAR Action: TCloseAction);
BEGIN
IF (NOT (GregsForm.ModalResult = 1)) THEN
EndmakeGregForm := True;
END;

// This form was parsed using: DFM Form Parser v.23 by Ron.
PROCEDURE makeGregForm;
VAR
TimemakeGregForm: INTEGER;
BEGIN
TimemakeGregForm := GetSystemTime;
GregsForm := CreateForm;
WITH GregsForm DO
BEGIN
OnClose := @makeGregFormOnClose;
Position := poScreenCenter;
BorderStyle := bsSingle;
BorderIcons := [biMinimize, biSystemMenu];
ClientWidth := 211;
ClientHeight := 197;
Caption := 'Greg'#39's Judge';
Color := clWhite;
Font.Color := clWindowText;
Font.Height := -11;
Font.Name := 'MS Sans Serif';
Font.Style := [];
ShowHint := True;
PixelsPerInch := 96;
END;
Label1 := TLabel.Create(GregsForm);
WITH Label1 DO
BEGIN
Parent := GregsForm;
Left := 36;
Top := 32;
Width := 124;
Height := 16;
Caption := 'Sig Awesomeness Detector';
Color := clMaroon;
Font.Color := clMaroon;
Font.Height := -13;
Font.Name := 'Nyala';
Font.Style := [];
ParentColor := False;
ParentFont := False;
END;
Label2 := TLabel.Create(GregsForm);
WITH Label2 DO
BEGIN
Parent := GregsForm;
Left := 71;
Top := 4;
Width := 48;
Height := 28;
Caption := 'Greg'#39's';
Font.Color := clMaroon;
Font.Height := -24;
Font.Name := 'Perpetua';
Font.Style := [fsItalic];
ParentFont := False;
END;
Label3 := TLabel.Create(GregsForm);
WITH Label3 DO
BEGIN
Parent := GregsForm;
Left := 6;
Top := 57;
Width := 50;
Height := 13;
Caption := 'Top Left X';
Font.Color := clMaroon;
Font.Height := -11;
Font.Name := 'MS Sans Serif';
Font.Style := [];
ParentFont := False;
END;
Label4 := TLabel.Create(GregsForm);
WITH Label4 DO
BEGIN
Parent := GregsForm;
Left := 96;
Top := 57;
Width := 7;
Height := 13;
Caption := 'Y';
Font.Color := clMaroon;
Font.Height := -11;
Font.Name := 'MS Sans Serif';
Font.Style := [];
ParentFont := False;
END;
Label5 := TLabel.Create(GregsForm);
WITH Label5 DO
BEGIN
Parent := GregsForm;
Left := 3;
Top := 89;
Width := 71;
Height := 13;
Caption := 'Bottom Right X';
Font.Color := clMaroon;
Font.Height := -11;
Font.Name := 'MS Sans Serif';
Font.Style := [];
ParentFont := False;
END;
Label6 := TLabel.Create(GregsForm);
WITH Label6 DO
BEGIN
Parent := GregsForm;
Left := 107;
Top := 89;
Width := 7;
Height := 13;
Caption := 'Y';
Font.Color := clMaroon;
Font.Height := -11;
Font.Name := 'MS Sans Serif';
Font.Style := [];
ParentFont := False;
END;
Bevel1 := TBevel.Create(GregsForm);
WITH Bevel1 DO
BEGIN
Parent := GregsForm;
Left := 1;
Top := 49;
Width := 192;
Height := 28;
END;
Bevel2 := TBevel.Create(GregsForm);
WITH Bevel2 DO
BEGIN
Parent := GregsForm;
Left := 1;
Top := 81;
Width := 195;
Height := 32;
END;
Label7 := TLabel.Create(GregsForm);
WITH Label7 DO
BEGIN
Parent := GregsForm;
Left := 6;
Top := 146;
Width := 166;
Height := 35;
Hint := 'How Awesome Your Signature is';
Caption := '0% Awesome!';
Font.Color := clMaroon;
Font.Height := -24;
Font.Name := 'Jokerman';
Font.Style := [];
ParentFont := False;
ParentShowHint := False;
ShowHint := True;
END;
Edit1 := TEdit.Create(GregsForm);
WITH Edit1 DO
BEGIN
Parent := GregsForm;
Left := 61;
Top := 53;
Width := 34;
Height := 21;
TabOrder := 8;
Text := '0';
END;
Edit2 := TEdit.Create(GregsForm);
WITH Edit2 DO
BEGIN
Parent := GregsForm;
Left := 104;
Top := 53;
Width := 32;
Height := 21;
TabOrder := 9;
Text := '0';
END;
Edit4 := TEdit.Create(GregsForm);
WITH Edit4 DO
BEGIN
Parent := GregsForm;
Left := 114;
Top := 85;
Width := 30;
Height := 21;
TabOrder := 10;
Text := '0';
END;
Button1 := TButton.Create(GregsForm);
WITH Button1 DO
BEGIN
Parent := GregsForm;
Left := 136;
Top := 51;
Width := 49;
Height := 25;
Caption := 'Choose';
Font.Color := clMaroon;
Font.Height := -11;
Font.Name := 'Lucida Handwriting';
Font.Style := [];
ParentFont := False;
TabOrder := 11;
Onclick := @clicked1;
END;
Button2 := TButton.Create(GregsForm);
WITH Button2 DO
BEGIN
Parent := GregsForm;
Left := 144;
Top := 83;
Width := 49;
Height := 25;
Caption := 'Choose';
Font.Color := clMaroon;
Font.Height := -11;
Font.Name := 'Lucida Handwriting';
Font.Style := [];
ParentFont := False;
TabOrder := 12;
onclick := @clicked2;
END;
Edit3 := TEdit.Create(GregsForm);
WITH Edit3 DO
BEGIN
Parent := GregsForm;
Left := 76;
Top := 85;
Width := 30;
Height := 21;
TabOrder := 13;
Text := '0';
END;
Button3 := TButton.Create(GregsForm);
WITH Button3 DO
BEGIN
Parent := GregsForm;
Left := 11;
Top := 116;
Width := 91;
Height := 25;
Caption := 'Judge This Sig';
TabOrder := 14;
onclick := @judge;
END;
Button4 := TButton.Create(GregsForm);
WITH Button4 DO
BEGIN
Parent := GregsForm;
Left := 110;
Top := 116;
Width := 63;
Height := 25;
Caption := 'Clear';
TabOrder := 15;
Onclick := @Clear;
END;
WriteLn('makeGregForm compiled in ' +
IntToStr(GetSystemTime - TimemakeGregForm) +
' milliseconds!');
END;

PROCEDURE SafemakeGregForm;
VAR
V: TVariantArray;
BEGIN
SetArrayLength(V, 0);
ThreadSafeCall('makeGregForm', V);
END;

PROCEDURE ShowmakeGregFormModal;
BEGIN
GregsForm.ShowModal;
END;

PROCEDURE SafeShowmakeGregFormModal;
VAR
V: TVariantArray;
BEGIN
SetArrayLength(V, 0);
ThreadSafeCall('ShowmakeGregFormModal', V);
END;

PROCEDURE MainmakeGregForm;
BEGIN
SafemakeGregForm;
SafeShowmakeGregFormModal;
FreeForm(GregsForm);
END;

BEGIN
ClearDebug;
ClearReport;
ActivateClient;
GetSelf.WindowState := wsMinimized;
MainmakeGregForm;
GetSelf.WindowState := wsNormal;
IF (EndmakeGregForm) THEN
TerminateScript;
END.


BobboHobbo

2007-07-17 03:55:07

Lol its awesome. i got 41 on ur siggy :)

ROFL i froze scar using it

LordGregGreg

2007-07-17 03:59:12

Glad you liked it :)

I JUST updated it,
no more negatives
0-100%

ZephyrsFury

2007-07-17 04:02:09

Woot my sig got a -4.4% :D

Greg, yours got a 16% when I tested it.

EDIT: Second time yours got 61%

LordGregGreg

2007-07-17 04:04:51

its updated now, Be sure you drag the scar cursor over ure browswers title bar

duh

my sig is 66.1826650331849% Awesome!

Here

2007-07-17 04:53:19

Does this just count the amount of red in a sig, and is that why yours is so awesome? CUZ IT AIN'T!

Harharhar.

I'm just going to count the amount of times it says Here on a sig, and give that an automatic 100. Time to modify…

Rikje

2007-07-17 05:15:55

funny script greg.
Sig is 56,6308922226609% Awesome!

Meanage

2007-07-17 05:27:04

56.57%, woot, thats very cool BTW.

Pentti

2007-07-17 05:37:04

Guys guys!
You gotta check out this sign, it got 100%!
Signature is attached down there

GoF

2007-07-17 05:52:38

Wow.. That sig is.. Awesome :)

teuneboon

2007-07-17 07:24:41

what will it think of my "sig" :P

LordGregGreg

2007-07-17 10:08:41

pentii is right, most awesome sig ever. Cept that yiu have to be brazy awesome to acutaly pull it off as a signature.

Worse sig ever, is tuquise ish.

@here, you know your just jealous :P bbut i finaly gave you solig evidence that your other sig is better

Harry

2007-07-17 12:15:49

Hmm.. mine is: Sig is 52.3555162320162% Awesome! (I think it's my big red words on the first line ;) )

LordGregGreg

2007-07-17 13:13:06

Yep, thats right. Dont forget that white is about (255,255,255) too, so ure getting a little bit of credit there (because i made it not go negative).

People should start structuring their sigs off this, it is undenably the most acuratly judgment, and completly avoids all this "subjective" jusgment you find in
threads like "rate my sig please".

Computer>Human when it comes to opinions, and this little thingy proves it.

Here

2007-07-17 13:54:01

From: lordgreggreg
Computer>Human when it comes to opinions, and this little thingy proves it.


Of course, because it'll never change.

mamoth95

2007-07-17 15:15:45

ye my sigg is awsome almost as awsome as yours greg!
and so what if it serches for red thats wat makes sigs awsome!

LordGregGreg

2007-07-17 15:28:03

yep, and if you really look at the wordls i am choosing like "unbiased" and stuff. Im sure you find this prety funny and ironic :) It realtes to a few other things I have been dealing with.

No longer fighting against "the man".
now we fight against "the machine".

lolpie

2007-07-17 17:17:07

Anyone want to run the script on my sig? I don't have admin rights on this computer. If I get below 80% I will be severely depressed.

Infantry001

2007-07-17 17:35:28

I bet my sig would be the worst sig ever =)

LordGregGreg

2007-07-17 18:04:47

Sorry lolpie, your sig is only 55.1579818688705% Awesome!

Infinitry, your sig is 42.1793824992684% Awesome!

lordsaturn

2007-07-17 18:45:15

What version of SCAR is this made for? I'm getting an error…

Here

2007-07-17 18:50:12

From: lordsaturn
What version of SCAR is this made for? I'm getting an error…


EDIT: The post above used to just be ZOMG.

Completely pointless response made to improve post count?

Back on topic, I like the idea, but you should expand it to include more colors.

LordGregGreg

2007-07-17 18:56:50

its made for scar divi.

it will not work with scar 2.03 it HAS to be scar divi

lolpie

2007-07-17 19:23:28

This program is broken, there's no way my sig only gets 55% :(

mamoth95

2007-07-17 21:48:06

is your siggy coverd in redness?…omg i have a idea just make a big red block the shape of the average siggy picture and see what it gets! lol

LordGregGreg

2007-07-17 21:48:40

From: lolpie
This program is broken, there's no way my sig only gets 55% :(

I am very sorry lolpie, i thought mine would do better too. But theres just no arguing with it, its 100% correct, and theres is really nothing more to say. I do like you sig, but no quite as much as mine, so at least I follow what the program sais. Even if i didnt thouhg, that just means I am biased.

@here Expand it for more colors? Hypocrazy! If i did it on diferent colors, it would have no bassis to what is aweosme ore not. this program is built off of the very ERSSENCE of awesomeness.

@mamoth. Yes, that may work, but i dought you are awesome enough to actually pull that off as your signature … i can;t even :(

mamoth95

2007-07-17 22:45:38

might look stupid but it would get a high score of awsomnes.

Here

2007-07-17 22:54:29

Pentti's already GOT the high score of perfect.

LordGregGreg

2007-07-17 22:57:52

he h4x0r

but no, you cant keepo the score unles you use it as your signature.

which mean i have the high score.

mamoth95

2007-07-17 23:08:55

lol im gona test it on a plain red block and see what i get lol…. bwahaha 100% lol!!

Dunceiam

2007-07-17 23:16:07

Not very nice. Blue should count as well…blue's a sexy color.

Now without negatives, what's my sig? I seem to remember it being -35%. :(.

-Dunceiam

LordGregGreg

2007-07-17 23:16:37

yep yep, this was covered in earlier posts :P

and turquise (00rffgffb) wil get you 0%

Dunciman==37.13% awesome

and no, the scirpt is un arguable flawless, blue just doenst seem to be the color of awesome. i am very sorry :(

mamoth95

2007-07-17 23:31:22

hey dunceiam your sigg has a cool pattern thing but you just need to make it red then it be even awsomerer

Here

2007-07-18 00:26:22

I'm sorry, but Blue is not just AWESOME, but it's FRICKIN AWESOME.

LordGregGreg

2007-07-18 00:30:06

here… i am sorry. but there is just no arguing wiht it.

mabey ill add in a way to detect how stupid a sig is, and then you can just imagin it says "freaking aweosme" instead/.

Here

2007-07-18 00:32:09

From: lordgreggreg
here… i am sorry. but there is just no arguing wiht it.

mabey ill add in a way to detect how stupid a sig is, and then you can just imagin it says "freaking aweosme" instead/.

No, I'm just going to change awesome to stupid in YOUR script, then release it as MINE! HAHAHA!

rkroxpunk

2007-07-18 03:11:52

48%! That's bull tooshy. my sig owns urs :P

lolpie

2007-07-18 12:49:07

I have to agree with Greg here, red > blue.

Here

2007-07-18 14:47:56

We'll agree on a neutral color then. White? Or black?

Smartzkid

2007-07-18 15:29:14

Black.

Though in my opinion, a signature coolness detector shouldn't count the amount of black, though, but the lack of white. That way, sigs with little white and lots of color would do well…

HSL would work well for that…

Here

2007-07-18 23:42:49

Actually, it should just check color solidarity. The more colors, the worse it gets. Or just plain out bad colors.

the scar noob

2007-07-22 15:07:10

LOL!! Nice ;)

LordGregGreg

2007-07-22 15:29:27

From: Smartzkid
Black.

Though in my opinion, a signature coolness detector shouldn't count the amount of black, though, but the lack of white. That way, sigs with little white and lots of color would do well…

HSL would work well for that…


No no, see , i knew that the basic of signature awesome nesss would be a thing of debate.

Whtich is why, when i started coding it. I just closed my eyes, and told myself (mentally) "create the algorithm to detect the true aweosmeness of a signature."

my fingers started moving, my eyes still closed tight, contantly willing them to make the perfect detection, in order to be as unbiased as possible.

my fingers stoped, and after a ffew moments i opened my eyes. Fixed a few bugs, and it compiled, then i realsed it here.

it is 100% true detection of signature aweosmeness, and , i know you may not like it. But it is based on how much low frequency light that can be realsed from it (that is eye detectable ofcourse).

Now, you can blame it on god, but that frequncy happens to be red. so srry :(

lolpie

2007-07-23 14:16:35

Include yellow/brown. Then my sig will be at 100% awsomeness

Haxor

2007-07-27 20:59:46

nice one dude. great idea.

haxor

RS Rebel

2007-07-27 21:46:22

woot…awesome script…56%

Sp0rky

2007-08-02 10:50:24

haha, thats really good greg. Some great creativity and programming. Gj.

LordGregGreg

2007-08-02 10:54:36

From: Sp0rk-eh
haha, thats really good greg. Some great creativity and programming. Gj.


He he, thanks. I think i was on a sugar high when i started making it.

I made some bogus quote about an algorithm to detect a signatures awesome ness….

then it kinda got out of control and i made a chalange against myself to make a script that owould do that.

lol

Sp0rky

2007-08-02 10:56:12

lol, the mad ideas are always the best.

warrockownz

2007-08-14 06:31:50

i got 49.99999999999%