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.
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.