I'm having an annoying problem of having a little popup internet window (which I want to be there) pushing its way in front of everything and stealing focus from the application I'm working on. I want the window to be there, but I don't want it to STEAL FOCUS as this is terribly terribly annoying. Every sixty seconds it refreshes (as it is designed to), but this apparently causes it to pop to the front of all my open windows.
I searched for answers and found that Tweak UI has a setting, "Prevent Applications from Stealing Focus". I installed it and checked this box. It solved the problem....
However, when I restart, the box magically unchecks itself, and I have to open TweakUI and check it again.
I did more research and found that the Registry key that TweakUI is changing when I click that box is called ForegroundLockTimeout, in the HKCU\Control Panel\Desktop section, and when you check the box, TweakUI sets this value to 200000 (which is apparently the XP default anyway, I dunno why it changed from the default in the first place). This number apparently is the number of milliseconds that Windows will not let focus be stolen from the application currently in use; i.e., for 200 seconds after you last click something in your current application, any other application trying to steal focus will not be allowed to.
But after restarting, this number is inexplicably set to 0. Which means that any other application trying to steal focus will be allowed to after zero milliseconds (in other words, immediately).
So I manually changed this value from zero within the registry (several times), and it worked, but when I restarted, the number still went back to zero.
I even searched for other instances of ForegroundLockTimeout within the registry, found about four or five, and changed them ALL from zero. But the one
in HKCU\Control Panel\Desktop is apparently the one that counts, and it changes back to 0.
So long story short...whenever I restart, the value of ForegroundLockTimeout reverts to 0. If I could get this number to STOP changing, the problem would be solved. Why won't Windows remember my stupid little setting?
Here I am at Experts Exchange, my last resort when I can't solve a problem on my own. If you guys can solve this, you guys are good. This is worth 500 simply because it's difficult TO ME, plus because you had to read all this. :-)