Showing posts with label windows. Show all posts
Showing posts with label windows. Show all posts

Tuesday, August 18, 2009

Creating windows shortcut for "Stand by"

If you are a laptop user and prefer to go "Stand by" instead of "Hibernate" or "Log Off" to save time, the quickest way to do is to use the keyboard shortcuts on the laptop keyboard (for my Dell laptop its Fn+Esc) which I use very often. However if you use external keyboard (with dock station) you are deprived of the direct laptop keyboard access and hence the only way I figure out so far is to go through Start->Shut Down and then select "Stand by" option there which I found quite irritating because of the no of clicks.

You can create a desktop shortcut and even assign a keyboard shortcut to achieve the same. Here is what you need to do:

- Right click on the desktop and click on New->Shortcut

- In the "Create Shortcut" dialog, type the following and click Next:

%windir%\System32\rundll32.exe powrprof.dll,SetSuspendState

- Give a name to this shortcut (ex StandBy) and click Finish.

You will see a new shortcut on the desktop which you can double click to get you laptop/system in Stand by mode. If you want to assign some keyboard shortcut, right click on the shortcut and select Property. In the "Shortcut key" text box, select the shortcut that you want to be used for ex. Ctrl + Shift + Atl + S.

Ever wondered why your .CHM file(s) does not work?

I had couple of .CHM files, specially for C# .NET related stuff and I saw some of the chm files when I open them I see "This page cannot be displayed" error. Finally I figured out that there could be two reasons for this:

[Option 1 courtesy chan.chawla from the posted comment, adding as the first option to be tried out before going any further]

1. Double click the .chm file. It will open a security dialog. Uncheck "Always ask after opening this file". Alternatively, right click on the file you want to open, click Properties and then click Unblock. This should do the trick.

2. If you chm file name or the path contains '#' character, just get rid of that and I guess you would be able to start viewing your chm files again.

3. If nothing works, try this.

Because of a Microsoft Service Pack, the chm files does not have enough permissions (by default). This case is usually when you try to open .chm files over network. The resolution for this is as follows:

  • Click Start, click Run, type regedit, and then click OK.
  • Locate and then click the following subkey: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\HTMLHelp\1.x\ItssRestrictions [If this registry subkey does not exist, create it]
  • Right-click the ItssRestrictions subkey, point to New, and then click DWORD Value.
  • Type MaxAllowedZone, and then press Enter.
  • Right-click the MaxAllowedZone value, and then click Modify.
  • In the Value data box, type 1, and then click OK.
  • Quit Registry Editor.

For more information check http://support.microsoft.com/kb/896358.