How can I find out which application is stealing focus in Vista?

This question is little different from preventing an application from stealing focus, rather how can I find out what the heck is stealing focus?

It goes like this. I'll be typing something in Firefox on Vista (as I am now). Every few minutes something else is stealing focus. It's not because a window is moving to the foreground. The change is somewhat subtle in window in the foreground takes on the attributes of a de-selected window (e.g., menus slightly dimmed), but it's most notable when typing, as the keys I type are no longer sent to that window. It also makes it extremely annoying.

How can I track this bugger down so I can remove it?


Try Sysinternals ProcessExplorer. It's a task manager replacement tool which accurately tracks every tiny little process that pops up.

Leave it running and return to your app. When the problem occurs alt-tab to Procexp and you may be able to catch what is grabbing all the attention.

Edit: I have literally just found this: Auslogics TaskManager Which would almost certainly help you identify what's going on, with a more intuitive interface and a wealth of more easily accessible information than Procexp.


I have the same problem as the poster. I've tried to Alt-Space to bring up the window menu. This definitly shows that there is a "hidden" window present (0x0 in size) that has focus. Using the move menu option to move it around doesn't reveal what it belongs to. Trying to choose the Close menu option does absolutely nothing. Seems like the program ignores the close window event.

I was thinking about a debugger which would be able to add a menu to the window menu of all windows that would allow it to attach to a debugger during runtime. Anyone know of a program that does this?

Update: After it happening again I actually tried the "Minimize" menu option, and loe and behold, it is the AVG Free 9.0 Web Browser window that appears. But why is it hidden and why does it grab focus approx. every 5-10 minutes?

Update2: It seems like AVG has a fix for the problem. http://forums.avg.com/cz-en/avg-free-forum?sec=thread&act=show&id=41015#post_41015