Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4927
  • Last Modified:

hotkey to set power to standby?

I want to set up a hotkey to put my computer in standby mode.  I want to leave the sleep button set to hibernate.

I'm using XP Pro SP2.

Is there a command line that I could attach to a hotkey in one of those freeware hotkey progams?
0
bluesofa
Asked:
bluesofa
  • 3
  • 2
3 Solutions
 
callrsCommented:
www.nirsoft.net/utils/nircmd.html     NirCmd - Freeware command-line tool
To put your computer in 'standby' mode:  nircmd.exe standby  
"26/05/2005 1.61 : New commands: qboxcom, beep, stdbeep, cdrom, urlshortcut, monitor, screensaver, standby, and hibernate."
0
 
callrsCommented:
But this has the complete answer! : )
http://www.pcworld.com/howto/article/0,aid,120796,00.asp     PCWorld.com - Windows Tips: Top Techniques for Putting Windows on Hold >
The simplest way to get to standby mode is to convert your PC's power button into a button that goes directly there: In the Address bar in any Windows Explorer or Internet Explorer window, type control panel\power options and press <Enter>. Then click the Advanced tab in the Power Options Properties dialog box. Under Power Buttons, click the drop-down list labeled 'When I press the power button on my computer' and choose Stand by (see Figure 1).

If you're a laptop user, you're likely to see additional options, such as a drop-down list labeled 'When I close the lid of my portable computer' that lets you send the system into standby with that simple gesture (see Figure 2).

Some PCs even have their own sleep button (or a sleep function that you activate by holding down a <Fn> key, as in the case of many IBM ThinkPads). Configure this button by using the 'When I press the sleep button on my computer' drop-down list. For a more secure standby mode, click the Advanced tab and make sure Prompt for password when computer resumes from standby is checked in the Options section. On the other hand, if you want to go right back to work without the password bother, remove the check mark. When you're done, click OK. From now on, pressing the power button on your machine will force the PC into standby mode--it will not shut off all power.

But what about when you really want to power down? Most computers automatically turn off when Windows exits, so that shouldn't be a problem. But if exiting Windows doesn't shut off the power to your PC, you may want to plug your PC, monitor, and so on into a power strip. That way, you'll be able to cut the power to your system--after exiting Windows--even though your PC's reconfigured power button no longer handles that job.

Custom shortcuts: If you don't want your PC's power switch to be your standby trigger, create a shortcut that does the same thing, provided that you log on to your computer as an administrator. The easiest way to do this is to run PsShutdown, a freeware command-line utility from the swell folks at Sysinternals. Get the utility from PCWorld.com's Downloads library. After you've finished downloading the file, simply extract psshutdown.exe from its .zip file and move it to the folder of your choice.

Now you need to create your desktop shortcut...<
0
 
callrsCommented:
http://www.sysinternals.com/Utilities/PsShutdown.html     Sysinternals Freeware - PsShutdown
That does it all...

Now for hotkeys...
ttp://searchwinsystems.techtarget.com/tip/1,289483,sid68_gci1138258,00.html     Free hotkey program supports multimedia keyboards
"... If you want to create your own key shortcuts, however, that's more difficult without support from third-party applications.
HoeKey goes a long way toward solving that problem. This freeware program, a mere 12K (!) in size, lets you assign key combinations to many different actions in Windows, including actions involving specific applications"
0
 
bluesofaAuthor Commented:
Brilliant answers - thank you all!


0
 
bluesofaAuthor Commented:
All answers were useful, so I added extra points to the question for the other answers.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now