Solved

hotkey to set power to standby?

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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
RemoteApp Printing 5 108
windows xp sp3 too old to do anything?  How to update it? 24 131
MS-Access 2002 error (Win XP on Win7Pro) 19 133
IPC$ Password 13 53
It is only natural that we all want our PCs to be in good working order, improved system performance, so that is exactly how programs are advertised to entice. They say things like:            •      PC crashes? Get registry cleaner to repair it!    …
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…
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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

751 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