Solved

hotkey to set power to standby?

Posted on 2006-07-01
5
4,923 Views
Last Modified: 2008-02-01
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
Comment
Question by:bluesofa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 30

Accepted Solution

by:
callrs earned 450 total points
ID: 17024688
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
 
LVL 30

Assisted Solution

by:callrs
callrs earned 450 total points
ID: 17024702
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
 
LVL 30

Assisted Solution

by:callrs
callrs earned 450 total points
ID: 17024714
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
 

Author Comment

by:bluesofa
ID: 17026050
Brilliant answers - thank you all!


0
 

Author Comment

by:bluesofa
ID: 17026052
All answers were useful, so I added extra points to the question for the other answers.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Can I legally transfer my OEM version of Windows to another PC?  (AKA - Can I put a new systemboard in my OEM PC?) Few of us are both IT and legal experts but we all have our own views of Microsoft's licensing rules and how they apply.  There are…
Can you find a fax from a vendor you saved a decade ago in seconds? Have you ever cursed your PC under your breath during an audit because you couldn’t find the requested statement or driver history?  If you answered no to the first question or yes …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question