Stop Windows XP applications from stealing focus [duplicate]

Solution 1:

As provided by this tips & tricks article:

To prevent applications from stealing the focus from the window you are working in:

  1. Start Regedit
  2. Go to HKEY_CURRENT_USER\Control Panel\Desktop
  3. Edit the key ForegroundLockTimeout
  4. Give it a value of 00030d40

You should have permission to modify this as a regular user (a corporate administrator could still lock down the setting if they really wanted to - I wouldn't see why, though). If editing the registry is not something you're comfortable with, you might also look at the program TweakXP and search for an option titled "Prevent other applications from stealing focus"