SRL Archive - RS3 Outdated / Broken Scripts

auto shutdown


kaustav_002

2007-08-24 13:48:02

Can someone make this? a Script that automatically shut down any other running scripts and the windows xp system .

so e.g. I run a script like wizzups ess miner, and after a set time this script will terminate wizzup? srl miner and shut down windows xp with the normal alt+f4 or thru shutdown.? can this be done? Can someone do it?
:D :D :D thx:D :D :D

ZephyrsFury

2007-08-24 22:41:20

Boreas posted this on my RM Runner thread so you should credit him for it.


procedure Shutdown;
begin
KeyDown(92);
Wait(200);
KeyDown(82);
Wait(200);
KeyUp(82);
Wait(200);
KeyUp(92);
Wait(200);
SendKeys('shutdown -s -f -t 00' + Chr(13));
end;

All this does is go into 'run' on the start menu and types in the windows command to shut down. It should stop any running scripts as well.

So as a script:


program New;
{.include SRL\SRL.scar}
var Timer: integer;

const TimeToWait = 60; //Time in minutes.

procedure Shutdown;
begin
KeyDown(92);
Wait(200);
KeyDown(82);
Wait(200);
KeyUp(82);
Wait(200);
KeyUp(92);
Wait(200);
SendKeys('shutdown -s -f -t 00' + Chr(13));
end;

begin
MarkTime(Timer);
repeat
if (TimeFromMark(Timer) > TimeToWait * 60 * 1000) then
Shutdown;
Wait(1000);
until(false);
end.



stin0

2007-08-26 07:36:53

theres a program called switch off for turning off your computer, you say what time and date and he does

kaustav_002

2007-08-26 15:45:48

yathanks zephyr it even works:D :D