SRL Archive - RS3 Outdated / Broken Scripts

Auto Pc Shut-Down


jakeyboy29

2008-08-17 17:26:39

this will shut down the comp, or stand by.

add this line to the const

const
ShutDownPC2 = true; // ShutDown your PC when the script is done? (will hibernate if possible for your computer)

this is the procedure


procedure ShutDownPC;
begin
WriteLn('Shutting Down Your PC.');
Wait(2000);
KeyDown(92);
KeyUp(92);
wait(1000);
sendkeys('u');
sendkeys('t'); // "t means turn off, if u want to stand by turn it to "S"".
end;


add this to the main loop

if ShutDownPC2 then
ShutDownPC;
end.

for the last one ill give an example,

until NoMorePlayers;
if ShutDownPC2 then
ShutDownPC;
end;
end.


hope this helps for naggy parents.

0wn 4 skill

2008-08-17 17:32:57

Have You tested this using smart? If so, i will use :p

jakeyboy29

2008-08-17 17:33:48

no, give it a go… ahhh i dout it will work with smart tho

0wn 4 skill

2008-08-17 17:38:50

Yea, thought not, i messed around with a similar thing but to no avail with smart. Good try tho :D

mager guy

2008-08-18 10:59:14

Couldn't you put that in a separate scar file and say wait x amount of time. Like wait for 6 hours so that you can leave on half of the night? So smart is running and a separate scar file is running?

jakeyboy29

2008-08-19 08:28:06

i have a way of turning off my comp after a certain lenght of time.

EvilChicken!

2008-08-19 10:04:53

procedure Terminate;
begin
if not ShutDown then TerminateScript;
WriteLn('Shutting down your PC, to stop it go to:');
WriteLn('Start -> Run -> type in "shutdown -a"');
PlaySound('C:\WINDOWS\Media\ringin.wav'); // Just to notify (or wake up :p) user..
Wait(500);
PlaySound('C:\WINDOWS\Media\ringout.wav');
Wait(500);
PlaySound('C:\WINDOWS\Media\ringin.wav');
Wait(500);
PlaySound('C:\WINDOWS\Media\ringout.wav');
ResetDC; // AHIHI.
Wait(1000);
KeyDown(92);
Wait(200);
KeyDown(82);
Wait(200);
KeyUp(82);
Wait(200);
KeyUp(92);
Wait(2000);
SendKeys('%windir%\System32\shutdown.exe -s -f -t 00');
Wait(1000);
KeyDown(13);
Wait(200);
KeyUp(13);
WriteLn('Goodbye.');
Wait(5000);
TerminateScript;
end;


ResetDC; resets the DC and works with both SMART and non-SMART scripts.


E: 350th can of spam. :) EWW SPAM :(

0wn 4 skill

2008-08-19 20:08:52

You sure evil chicken? I tried that aswell, you tested?

Magiic

2008-08-24 11:09:07

same :p

Smarter Child

2008-09-02 19:17:33

Just get Genius Auto Computer Shutdown then it can wait cerain amount of time and it will be able to 'Switch User','Logoff', ETC.

Leather Cock~

kensaurus

2008-09-02 21:12:37

cant get to work.

BanditX

2008-12-01 22:42:25

From: jakeyboy29
i have a way of turning off my comp after a certain lenght of time.


In the power management area, right next to where you select your screen saver, you can tell the computer to shut down after X hours. There is really no point in having scar shut down the computer, unless you could somehow save the proggie, but no one's suggesting that… and I don't think you could anyways.