SRL Archive - Other Scripts

Auto Comp Shut Down


jakeyboy29

2008-08-17 12:28:11

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.

Freddy1990

2008-08-17 17:40:11

You're including SRL and not using it, that's a waste of time and resources…

Mr.Klean

2008-08-17 23:32:52

Umm, isn't keydown(92); just a backslash?

Wait, nvm :P

Got it now…