Applications stealing focus - reg key no longer fixes

Anonymous
2010-04-08T18:42:59+00:00

I want to prevent any applications from stealing focus in windows 7 (and Vista).  Tweakui used to modify the below Registry key to 0.  Then there was a key that affected the number of flashes a "want to steal focus" window would make in the taskbar.

ForegroundLockTimeout

HKEY_CURRENT_USER\Control Panel\Desktop

This reg key is apparently no longer working.  Focus stealing is a major problem, from canceling/oking window that pop-up, to getting virus's from IE windows.  Applications are still written to do this, including MS Office 2007.  If you are typing an email something can pop up and get the next key stroke.  I need to fix this.  Any ideas, or has Windows completely removed a needed feature.

tags: steal focus apps active regedit

Windows for home | Previous Windows versions | Apps

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
Anonymous
2011-10-23T11:13:03+00:00

I solved the problem in this way:

I noticed that just before the focus was "stolen", the PC got "busy" for a second (beside the mouse appeared the small circle indicating the processor is working hard on sth).

So I started the Task Manager and gave a close look at the processes. I noticed that one process took over a relevat percentage of CPU usage exactly an instant before the focus was stolen from the task manager window.

Since it was a process that I don't need to be active all the time (sth about Vodafone Mobile connection, which I rarely use) I just stopped the process and then didn't allow the process to be started every time I turn on the PC. I did this last step using Piriform's free software  "CCleaner", but I'm sure you can find different tools for this...

This was enough to fix it ...

Hope this helped!

Bye!

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

166 additional answers

Sort by: Newest
  1. Anonymous
    2011-11-03T02:28:14+00:00

    Thanks for creating this form. I just filled it out.

    Stealing focus really is a constant annoyance. Today it escalated to the point where I read all 11 pages in this thread hoping and praying for a fix. I happened to be restarting Photoshop several times in a row just now and Photoshop stole the focus every time, each time interrupting what I was doing.

    And while I'm venting my Windows frustrations, here's one that has been bugging me ever since Windows 3.0. Why, oh why, can't I interrupt a program while it's launching; i.e., cancel the launch? In 1976 I could immediately interrupt any process running under RSTS/E on a PDP-11. This was running from a terminal connected over a 2400-baud RS-232 connection. All I had to do was simply press Ctrl+C. With all the memory and processor power now available (and a keyboard connected directly to the motherboard) maybe Microsoft could find a way to reproduce this useful feature of 35 years ago.

    Pretty please with sugar on top?

    David Salahi

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2011-10-28T14:37:08+00:00

    I created this form to try to gather some information and identify a trend.  Please contribute, even if you don't have this issue (although obviously anyone participating in this discussion will I'm sure).

    If you can think of any pertinent info that I'm not capturing here, let me know :)

    https://docs.google.com/spreadsheet/viewform?hl=en_US&formkey=dFVUeEVCZFl3XzQ0Z3BqbFNCaFV1WXc6MQ#gid=0

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2011-10-28T05:34:22+00:00

    Shawn,

    Thanks for chiming in from the perspective of a moderator and Microsoft MVP. Aside from the Outlook reminder example stated, and ignoring the restart prompts for Windows updates, my users in the OpenText FirstClass client get reminders that steal focus when such a reminder is scheduled to occur. The focus stealing action will result in one of three possible outcomes:

    1. The user is not present. The reminder steals focus and is visible before the user inputs keystrokes. Acceptable "feature" in FirstClass.
    2. The user is present and not actively typing. The reminder steals focus and is visibly in the way of a prior engagement. Written off as an annoyance but not a deal breaker.
    3. The user is actively entering keystrokes when the reminder steals focus. Herein lies the rub. As much as the user desires to be reminded, s/he does not necessarily connect the dots between a reminder stealing focus and the ramification of keyboard entry. A spacebar, for example, is tantamount to a "dismiss" button clicked via the mouse. This may sound like  a technicality or a user education scenario but in practice it is neither. It is a design flaw. And not a flaw of the application, one of the underlying operating system. Windows 2008 Server does not seem to suffer from the same weakness, so I am convinced it can be fixed at the OS level.

    What would be acceptable in this situation is the OS interpreting a focus stealing attempt as a taskbar pulse attempt, and then delivering the taskbar pulse. I love Microsoft product. It goes without saying that I could love them more.

    Best,

    Justin

    Was this answer helpful?

    0 comments No comments