Solved

hotkey to set power to standby?

Posted on 2006-07-01
5
4,904 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
  • 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

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 …
Sometimes people don't understand why download speed shows differently for Windows than Linux.Specially, this article covers and shows the solution for throughput difference for Windows than a Linux machine. For this, I arranged a test scenario.I…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now