I'd like to prevent / restrict the amount of times an applications flashes in my task bar.

For example, messenger chat windows. If I ignore them, they keep flashing. Ideally, what I'd like to do is only allow any given application to flash in the task bar 3 times and then stop.

How might I do this?


To clarify I do need a Vista solution.

ForegroundFlashCount is already set to 3, so is this setting is ignored in Vista?

4 Answers 4


In this case, which chat program are you using? If you are using Digsby, it ignores the flag and will flash the window forever. I use Digsby myself and that is the most annoying "feature" of the program! If it is Digsby that has the problem, you can find some information on controlling on their forums at http://forum.digsby.com/viewtopic.php?id=3361.

If it isn't Digsby, the best thing to do is contact the developer of the application and ask them to follow the Windows settings rather than forcing Windows to flash constantly.


EDIT: my "solution" below is not correct. It does the opposite:

0 = taskbar button flashes until you click it

This sample chapter from the book "Microsoft® Windows® XP Registry Guide" contains some information related to focus:

The settings in the Focus category prevent that scenario by causing applications to flash their taskbar buttons to get your attention rather than stealing focus from the application in the foreground.

The default value for ForegroundLockTimeout is 0x00030D40, or 200000. This value is the time in milliseconds before Windows XP allows an application to steal the focus from the foreground application. To convert 200000 to seconds, divide it by 1000 (200 seconds). You see the value ForegroundFlashCount in the table twice, because setting it to 0 causes the taskbar button to flash until you click it; otherwise, the taskbar button flashes the number of times you set in ForegroundFlashCount.

HKCU\Control Panel\Desktop

  • Prevent applications from stealing focus: ForegroundLockTimeout
  • Flash taskbar button until I click on it: ForegroundFlashCount
  • Flash taskbar button N times: ForegroundFlashCount

There is a registry setting in:

HKCU\Control Panel\Desktop
     ForegroundFlashCount (DWORD)

Try to set it to 0.

Warning: be careful when you edit the Windows Registry.

  • note the tag...
    – Dani
    May 18, 2009 at 9:41

w/o messing with the registry, and providing wealth of other useful enhancements TweakUI

EDIT: I've noticed the tag; this is for Windows XP only.

  • I would have said "TweakUI" myself, but he explicitly asked for a Windows Vista solution - at least it was tagged "vista".
    – splattne
    May 18, 2009 at 9:41

Some things I've read only for this issue suggest that turning off the Aero UI will allow Vista to use the ForegroundFlashCount setting.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .