Monday, December 8, 2008

Prevent Programs from Stealing Focus in WinXP

How many times has this happened to you: you're typing furiously and out of the corner of your eye you see an alert box from somewhere pop up and disappear. Because you were in the middle of madly hitting keyboard keys, you've accidentally ok'd, denied, or "something else'd" a request or alert from some program, and you have no idea of figuring out what just happened.


Well, I finally had enough and sought out the solution to this problem. Here it is (you'll be editing your registry, be careful not to screw up your computer):
  1. Click on Start and then Run.

  2. Type regedit and click OK.

  3. Locate the HKEY_CURRENT_USER and click on it to expand the folder.

  4. Continue to expand folders until you reach the HKEY_CURRENT_USER\Control Panel registry key.

  5. Select the Desktop key under Control Panel.

  6. On the right-hand side of the screen, locate and double-click on the ForegroundLockTimeout DWORD.

  7. In the Edit DWORD Value window, set the value data: field to 30d40.

    Note: Be sure the Base option is set to hexadecimal when entering the DWORD value. If you'd prefer to use "decimal," set the value to 200000.

  8. Click OK and then close Registry Editor.

  9. Reboot your PC.

  10. Reclaim control of your PC's pop-up alerts!

No comments: