JSI Tip 2909. How do I control the number of taskbar flashes, when a background task wants focus?

Windows 2000 doesn't allow a backround task to instantly steal focus. Two REG_DWORD values control the process. Use Regedt32 to navigate to:

HKEY_CURRENT_USER\Control Panel\Desktop

ForegroundLockTimeout defaults to 200000 milliseconds. It specifies that time period, after user input, during which the system will NOT allow an application to force itself into the foreground.

ForegroundFlashCount is the number of flashes the system will use to notify you that a backround tasks wants focus. If ForegroundLockTimeout has elapesed since the last user input, the window will automatically be brought to the foreground.

NOTE I suggest that you select the Decimal radix when viewing or entering data in these value names.


Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish