Results 1 to 12 of 12

Thread: Auto Pc Shut-Down

  1. #1
    Join Date
    Oct 2007
    Location
    The deep web
    Posts
    2,496
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Auto Pc Shut-Down

    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.
    Did someone say GDK?

  2. #2
    Join Date
    Dec 2007
    Location
    UK
    Posts
    479
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Have You tested this using smart? If so, i will use
    I don't play runescape. I auto it

  3. #3
    Join Date
    Oct 2007
    Location
    The deep web
    Posts
    2,496
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    no, give it a go... ahhh i dout it will work with smart tho
    Did someone say GDK?

  4. #4
    Join Date
    Dec 2007
    Location
    UK
    Posts
    479
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yea, thought not, i messed around with a similar thing but to no avail with smart. Good try tho
    I don't play runescape. I auto it

  5. #5
    Join Date
    Jun 2007
    Posts
    100
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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?

  6. #6
    Join Date
    Oct 2007
    Location
    The deep web
    Posts
    2,496
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    i have a way of turning off my comp after a certain lenght of time.
    Did someone say GDK?

  7. #7
    Join Date
    Jul 2007
    Location
    Norway.
    Posts
    1,938
    Mentioned
    3 Post(s)
    Quoted
    0 Post(s)

    Default

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

  8. #8
    Join Date
    Dec 2007
    Location
    UK
    Posts
    479
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You sure evil chicken? I tried that aswell, you tested?
    I don't play runescape. I auto it

  9. #9
    Join Date
    Jul 2008
    Posts
    907
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    same


  10. #10
    Join Date
    Jul 2008
    Location
    Canada
    Posts
    1,612
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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~

  11. #11
    Join Date
    Apr 2007
    Posts
    374
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    cant get to work.

  12. #12
    Join Date
    Jan 2008
    Location
    California
    Posts
    88
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by jakeyboy29 View Post
    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.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. shut down pc
    By sidishere in forum OSR Help
    Replies: 23
    Last Post: 11-03-2007, 06:43 AM
  2. Internet Shut Off. :(
    By Lokito in forum News and General
    Replies: 5
    Last Post: 10-10-2007, 10:49 PM
  3. Driger1592.com shut down
    By Jornak in forum News and General
    Replies: 12
    Last Post: 10-09-2006, 10:44 AM

Posting Permissions

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