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
Solved

hotkey to set power to standby?

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Tasks remote computer 12 150
netsh interface ip show interface in Windows XP 4 134
Windows startup/shutdown date/time log 7 147
Map drive keeps removing itself 9 84
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

856 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