1. #1
    hackerman1 is offline Moderator
    Join Date
    Dec 2008
    Location
    Sweden
    Posts
    1,525

    Default Program to put computer in sleep mode, without any password

    Hi !


    Here is a program to put your computer in sleep-mode


    Ive seen many requests for this, and a few solutions,
    but they need to be "run as admin" which means you have to enter a password each time.

    This works with a normal USER-account !
    You do not need to "run as admin", and it does not need any password.

    Code:
    KEYSTACK /W18 CTRL-ESC /W18 RIGHT /W18 RIGHT /W18 S
    EXIT
    
    save it as fx. "Sleep.btm"
    create a shortcut (icon) on your desktop

    If you fx. add 2 lines it can also automatically reconnect to internet when it "wakes up"
    Im using a dial-up connection so the command is "Rasphone -D" followed by the name of the connection, "3".
    Replace the command if you use some other type of connection.

    Code:
    KEYSTACK /W18 CTRL-ESC /W18 RIGHT /W18 RIGHT /W18 S
    BEEP 0 900
    RASPHONE -D "3"
    EXIT
    

    A short decription of the program

    "Keystack" puts keystrokes in a buffer, and then executes them
    /W18 is a delay, in this case 18 "ticks" = 1 second.
    If it doesnt work properly adjust the delay, you might need more delay between keystrokes, try 36 or more
    BEEP 0 900 is a delay, the first digit is frequency in Hz (0=none), followed by delay, 900 is "ticks" = 50 seconds, to let the computer "wake up" properly before dialing out.
    You can try other delays, but on my computer 900 (or more) is needed.
    RASPHONE is a dial-up command
    EXIT closes the window


    And, since this is a BTM-file and not a BAT-file, you will need TCC/LE, the FREE version of Take Command,
    software available here: #1 Windows Command Prompt | Windows Console CMD Command Line

    Personally i prefer TCC over CMD since it has more commands, is more user-friendly and lets you do more advanced programming.
    Do not ask me how to do this in CMD...



    TCC/LE is safe software.
    The company behind it (JPSOFT) started many years ago, and their software is wellknown.
    JPSOFT is the company behind 4DOS, the commandline replacement for command.com that was very popular in the "old days" when "everybody" used MS-DOS
    Last edited by hackerman1; 4th August 2013 at 02:19.

  2. #2
    Matrix's Avatar
    Matrix is offline Senior Member
    Join Date
    Jul 2009
    Posts
    367

    Default

    I don't get it. My laptop does not ask me for a password to put it to sleep.

  3. #3
    hackerman1 is offline Moderator
    Join Date
    Dec 2008
    Location
    Sweden
    Posts
    1,525

    Default

    Neither do mine when using the startmenu...

    But, if you are using a USER-account (which you should do for safety reasons)
    there is no command to put the computer in sleep-mode without entering an ADMIN-password.
    My program makes it possible to do that by fx. just clicking an icon on the desktop.
    You can also let a batch-file do some work and have my program as last command, putting the computer to sleep after finishing the work.
    Last edited by hackerman1; 4th August 2013 at 13:44.

  4. #4
    hackerman1 is offline Moderator
    Join Date
    Dec 2008
    Location
    Sweden
    Posts
    1,525

    Default

    Hi !

    TCC/LE is safe software.

    The company behind it (JPSOFT) started many years ago, and their software is wellknown.
    JPSOFT is the company behind 4DOS, the commandline replacement for command.com,
    that was very popular in the "old days" when "everybody" used MS-DOS....

Posting Permissions

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

Log in

Log in

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22