SRL Archive - Other Scripts

Lock Your Computer


SKy Scripter

2007-04-12 17:17:04

hey, look you can kind of… lock your computer
check it out………….

program Lock;
// by : Sky Scripter


var
MainForm : TForm;
MainImage: TImage;
Edit: TEdit;
Close : TBUTTON;
PassWord : String;


Procedure Declineclose(Sender:TObject; Var Close: TCloseAction);
begin
If (Not( MainForm.MODALRESULT = mrOk )) then
Close:= caNone
end;

Procedure AcceptPassword(Sender:Tobject);
begin
if (Trim(LowerCase(Edit.TEXT)) = PassWord) then
begin
MainForm.MODALRESULT:= mrOk;
GetSelf.WINDOWSTATE:= wsNormal;
end;
end;


procedure InitForm;
Var
W, H:Integer;
begin
MainForm := CreateForm;
MainForm.POSITION:= poDesktopCenter;
MainForm.BORDERSTYLE:= BsNone;
MainForm.Align:= alClient;
MainForm.ONCLOSE:= @Declineclose;
MainForm.FORMSTYLE := fsStayOnTop;
GetSelf.CAPTION:= 'Computer Locked';
GetClientDimensions(W, H);

MainImage:= TImage.Create(MainForm);
MainImage.parent:=MainForm;
MainImage.SetBounds(0, 0, W, H);
SafeCopycanvas(GetClientCanvas, MainImage.CANVAS, 0, 0, W, H, 0, 0, W, H);
MainImage.CANVAS.Font.Size:= 15;
MainImage.CANVAS.TextOut(W / 2 - 100, H / 2 - 50, 'PassWord');

Edit:= TEdit.Create(MainForm);
Edit.Parent := MainForm;
Edit.SetBounds(W / 2 - 120, H / 2 - 20 , 120, 20);
Edit.PASSWORDCHAR:= '*';

Close := TButton.Create(MainForm);
Close.Parent:= MainForm;
close.SetBounds(W / 2 + 10, H / 2 - 20 , 75, 20);
close.CAPTION:= 'Close';
close.ONCLICK:= @AcceptPassword;

MainForm.ShowModal;
end;

procedure SafeInitForm;
var
v: TVariantArray;
begin
setarraylength(V, 0);
ThreadSafeCall('InitForm', v);
end;



begin
try
PassWord:= Trim(LowerCase(Readln('Please Type In a Quick PassWord')));
GetSelf.WINDOWSTATE:= wsMinimized;
Wait(1000);
if (PassWord = '') then
Begin
Writeln('Set a Password Please :)');
GetSelf.WINDOWSTATE:= wsMaximized;
TerminateScript;
end;
SafeInitForm;
finally
FreeForm(MainForm)
except
Writeln('ERROR: With Loading');
end;

end.

Farno Productions

2007-04-13 09:16:08

Is this like a virus or is it for protection on your computer?

Jason2gs

2007-04-13 09:31:07

Oooh, sweet :D

Task manager >>> Process scar.exe >>> End process

Still, nice :)

SKy Scripter

2007-04-13 11:27:24

Is this like a virus or is it for protection on your computer?

no it just like blocks your computer..


Oooh, sweet

Task manager >>> Process scar.exe >>> End process

Still, nice


lol , yah not everyone knows it….

syberium

2007-04-15 01:20:17

Unknown identifier 'GetSelf' ?

lordsaturn

2007-04-15 01:27:12

From: syberium
Unknown identifier 'GetSelf' ?



You have to use it in SCAR 2.0.3, doesn't work in SCAR 3.0.

Haha Sky scripter, you're the best at making awesome shit like this! =]

R0b0t1

2007-04-15 21:46:46

If you have an auto-hide task bar that beats it.

SKy Scripter

2007-04-15 23:33:10

If you have an auto-hide task bar that beats it.

lol, i didn't that….. :p

Haha Sky scripter, you're the best at making awesome shit like this! =]

Thanks :p

R0b0t1

2007-04-18 20:57:53

I'm not one to post quickly, but this is a good idea in general. Maby theres a better way in 3.0, maby not.

SKy Scripter

2007-04-19 01:24:06

I'm not one to post quickly, but this is a good idea in general. Maby theres a better way in 3.0, maby not.


lol.. this is nothing dude :D i could make greater things in DEVI
but i am way busy i have to catch up on SRL..
Im Trying To Make RS Scripts Know :D

Edit: 2 more post tell 200 kool !

rslider

2007-04-21 23:10:12

If you wanna make the Scar.exe thing harder in the task manager, just rename the file Scar.exe in C:\Program Files\Scar\Scar.exe thing to SVCHOST.EXE(sometimes not in caps)

SmarterChild

2007-04-24 10:21:07

Haha, this is pretty cool. I am going to have some fun with this :)

Sp0rky

2007-04-24 12:11:26

I made something in delphi for all those wanting to disable their task manager and hide thier taskbar.

Enjoy.

SKy Scripter

2007-04-24 13:43:57

thats pretty cool, spOrk-eh

Sp0rky

2007-04-24 14:14:10

lol ty.

Made an updated version and added to my sig.

Im loving that script though.

newguy45

2007-05-15 10:48:34

"windows key + L" :P

Hugolord

2007-05-15 11:44:11

erm… i wonder if it would be possible to make it just lock ur pc's mouse and keyboard and still be able to run scar scripts? cz my brothers are always touching mouse when i'm autoing or testing something for hours

SKy Scripter

2007-05-15 12:39:59

erm… i wonder if it would be possible to make it just lock ur pc's mouse and keyboard and still be able to run scar scripts? cz my brothers are always touching mouse when i'm autoing or testing something for hours


lol just see if you can unplug your mouse…
just like when i auto i turn my monitor off… so nobody knows im autoing…

Hugolord

2007-05-16 01:38:51

oh it would still run and keyboard unplugging too? Thanx

sherlockmeister

2007-05-16 16:42:48

can you make the screen turn black? this would be useful to run while running another script so your dont have your sister or some1 messing it up…

SKy Scripter

2007-05-17 01:16:16

can you make the screen turn black? this would be useful to run while running another script so your dont have your sister or some1 messing it up…


err.. no i dont think so… just unplug your computer monitor, heheheh…. ;)
looks black enough for me…

Hugolord

2007-05-18 13:57:46

From: SKy Scripter
err.. no i dont think so… just unplug your computer monitor, heheheh…. ;)
looks black enough for me…


rofl looks black enough to me lmao