Results 1 to 4 of 4

Thread: auto shutdown

  1. #1
    Join Date
    Jul 2007
    Location
    Riding the escalator to heaven.
    Posts
    506
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default auto shutdown

    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?
    thx






  2. #2
    Join Date
    Apr 2007
    Location
    Perth, Australia
    Posts
    3,926
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

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

    SCAR Code:
    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:

    SCAR Code:
    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.

  3. #3
    Join Date
    Jul 2007
    Posts
    17
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

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

  4. #4
    Join Date
    Jul 2007
    Location
    Riding the escalator to heaven.
    Posts
    506
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yathanks zephyr it even works






Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Shutdown pc.
    By Johura in forum RS3 Outdated / Broken Scripts
    Replies: 18
    Last Post: 06-30-2008, 08:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •