ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > ProcessTamer

ForegroundLockTimeout Value

(1/3) > >>

Scott:
I noticed that the install of the Process Tamer 2.0 beta changed my HKEY_CURRENT_USER\Control Panel\Desktop\\ForegroundLockTimeout value to 0 (from 200000).  This causes annoying problems with application windows not grabbing focus when opened.

Is it necessary for ForegroundLockTimeout to be set to 0 for Process Tamer to work properly or optimally?

mouser:
scott -

i was just about to tell you that there is no code in process tamer that sets this, until i rechecked and discovered that indeed there is.

here is the code:
   // F*CKING MICROSOFT SHOULD BURN IN HELL
   // this code is nesc. to allow pop up to get foreground focus
   #ifndef SPI_SETFOREGROUNDLOCKTIMEOUT
      #define SPI_SETFOREGROUNDLOCKTIMEOUT 0x2001
   #endif
   SystemParametersInfo(SPI_SETFOREGROUNDLOCKTIMEOUT, 0, (LPVOID)0,SPIF_SENDWININICHANGE | SPIF_UPDATEINIFILE);

evidently i added it at some point in a pique of anger because a popup message from the tray tool was showing up behind other windows; the new process tamer doesnt use popups though, and uses tray balloons, so i am going to remove this code.

see:
http://support.microsoft.com/?kbid=886217


now, the question is, should new versions of process tamer now revert this back to 200000 for users of prior versions?  im thinking yes.

Scott:
OK, I'm confused.  According to this MSKB article, setting the value of ForegroundLockTimeout to 0 is how you correct issues with windows not taking focus when expected.  But...  I don't think I ever had this problem until the value was set to 0.  Maybe I'm just nuts.

Thanks for the reply.  You replied while I was hacking out my own.   :)

mouser:
yes well,
MS says to set it to 0 to fix problems.
which is what i did.
and it seemed to help.

of course we shouldn't be surprised that given its from MS, it has some side effects.
i guess you were experiencing one of the side effects..
regardless, it's not needed any more by process tamer so i'm removing it.


new version is up on members page.
this version forces the value back to its default of 200000; in a couple more versions i will remove this forcing.

Scott:
I sure wasn't blaming you, no problems on my end...  I could have worked around it by setting it back to 200000 at each shutdown.  :)

I agree that it should be set back to 200000 by PT.  That would probably be appropriate for 99%+ of users.

Navigation

[0] Message Index

[#] Next page

Go to full version