Stealing focus


Go Back   Computer Help Articles > Windows XP Customize
User Name
Password
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #21  
Old 01-05-2006, 03:59 PM
Hans L
 
Posts: n/a
Default Re: Stealing focus

Trevor L. wrote:

> Hans L wrote:
> > David, see interspersed comments:
> >
> > David Candy wrote:
> > > cmd /k reg query "HKEY_CURRENT_USER\Control Panel\Desktop" /v
> > > "ForegroundLockTimeout"
> > >
> > > Put above in a shortcut in startup.

> >
> > I do not understand how to put it in a shortcut in startup.
> > "startup", I assume, is "Startup" in start--All programs--Startup,
> > but how do I put the text above in a shortcut? And what will the
> > result be (what, when, where).

>
> I think this one is fairly straightforward.
>
> Using UltraEdit, create a text file fred.bat (or any name) with
> contents (all on one line, I assume) cmd /k reg query
> "HKEY_CURRENT_USER\Control Panel\Desktop" /v "ForegroundLockTimeout"
>
> Place it in
> C:\Documents and Settings\Hans\Start Menu\Programs\Startup (change
> Hans to your username) or
> C:\Documents and Settings\All Users\Start Menu\Programs\Startup
>
> This should work. Or you could put a shortcut in this location and
> point it to to fred.bat



Thank you, Trevor. I may not need it -- see message I just posted.
But if I do, I now know what to do.

Hans L
--

Reply With Quote
  #22  
Old 01-05-2006, 03:59 PM
David Candy
 
Posts: n/a
Default Re: Stealing focus

HKEY_USERS\.DEFAULT\Control Panel\Desktop
This is the user settings when noone is logged in. This is the user (ie noone) whose screensaver activates at the welcome screen. Query does not write. It is reading only. It is not your setting. Don't confuse it with the Default User. This is a user who never does anything (unlike ..Default)but all created users are based on it (when created).

Your settings are at
HKEY_USERS\S-1-5-21-1757981266-1592454029-725345543-1003\Control Panel\Desktop
[That number is a user from my computer - your number is different] which are mirrored at
HKEY_CURRENT_USER\Control Panel\Desktop
for the current user (who ever happens to be logged in).

HKEY_CURRENT_USER (a mirror of HKEY_USERS\S-1-5-21-1757981266-1592454029-725345543-1003) and HKEY_CLASSES_ROOT (combined from HKEY_USERS\S-1-5-21-1757981266-1592454029-725345543-1003\Software\Classesand HKEY_LOCAL_MACHINE\SOFTWARE\Classes) don't actually exist. They show current almagamated settings for the current user. When user and machine setting are the same user normally take precedence.

If you had pro one could remove yourself from being allowed to write to this key. Then the program can't either as it uses your security.
--
--------------------------------------------------------------------------------------------------
Goodbye Web Diary
http://margokingston.typepad.com/har....html#comments
=================================================
"Hans L" <fakeascanbe@evenfakier.com> wrote in message newsO-dnZiX7OE-JyHenZ2dnUVZ_tWdnZ2d@adelphia.com...
> David Candy wrote:
>
>> It is reading that from the system settings (for when noone is logged
>> on). Seems rather irrelevent as you will not see the window in the
>> first place.
>>
>> 748 is the process ID (easy to get the program's number - much harder
>> [meaning more work] to get it's name). Look in Task Manager process
>> tab. Queryvalue means it is being read only, not written.
>>
>> cmd /k reg query "HKEY_CURRENT_USER\Control Panel\Desktop" /v
>> "ForegroundLockTimeout"
>>
>> Put above in a shortcut in startup. What make you think it happens at
>> startup rather than shutdown.
>>
>> Create a new administrator account. Fix FLT to what you want it to
>> be. Log out of your account. Log in to new account. Type regedit in
>> Start Run, read help on loading hives. Load your hive.
>>
>> the new temporary path to your FLT is
>>
>> HKU\<the name you chose when loading the hive>\Control Panel\Desktop
>>
>> Has it changed since you logged off.
>>
>> Give auditing a go. Note Read Help carefully. It is a two stage
>> thing. Turn auditing on for Objects. Then set the object (the desktop
>> regkey) to be audited.
>>
>> Also regmon has filters. I would have entered ForegroundLockTimeout
>> as the filter (on edit menu) and if there was only one read I would
>> see only 1 line (not 90 000 of them).

>
>
>
> I think I found the culprit:
>
> 1430443: WinDates.exe:3036 SetValue HKCU\Control
> Panel\Desktop\ForegroundLockTimeout SUCCESS 0x2710
>
>
> WinDates is a calendar app. If I am right, I am going to flogg the
> developer -- at least with a wet noodle.
>
> I did a very low-tech check. When the computer was starting up, I went
> into the registry with regedit several times. At one point, the value
> changes from 0x00000000(0) to 0x00002710(10000), and it looked as if it
> was Firefox that was the culprit. However, now, when I ran the login
> function a little longer, I got the line above (1430443).
>
> However, the very first occurence of ForegroundLockTimeout is this:
>
>
> 97006: winlogon.exe:752 QueryValue HKU\.Default\Control
> Panel\Desktop\ForegroundLockTimeout SUCCESS 0x30D40
>
> Where in the dickens does the default value 0x30D40 come from? I guess
> that it only shows the default value, but that whatever I have changed
> it to will show up later, e.g.,
>
> 139991: winlogon.exe:752 QueryValue HKCU\Control
> Panel\Desktop\ForegroundLockTimeout SUCCESS 0x0
>
> So, now I will not start WinDates at startup, and see what happens.
>
> I'll be bakk!
>
> Hans L
>
>
> --
>
>
>
>
>
>

Reply With Quote
  #23  
Old 01-05-2006, 03:59 PM
Hans L
 
Posts: n/a
Default Re: Stealing focus

Hans L wrote:

> Hello:
>
> I know, I am weird. I want newly opened applications to steal focus.
> I know I am weird, because tons of articles on the web is about how
> not to steal focus, no articles on the opposite. It seems to be a
> cardinal sin to steal focus. Worse than gluttony, equal to pride.
>
> Now, having confessed, I expect you to do the same. You are stealing
> my 0x000000000(0) (in ForegroundLockTimeout) and replacing it with a
> value that makes my apps not steal focus.
>
> First, I thought it was Tweak IU, but I uninstalled it, and my
> ForegroundLockTimeout value still changes.
>
> Admit it, it is you :-)
>
> Okay, maybe it is not you, but would you have any idea what in my XP
> Home Dell Dim XPS T700 (yeah, it is a little old) does change the
> value of ForegroundLockTimeout?
>
> Regards,
>
> Hans L



Mystery solved.

The culprit was indeed WinDates by Rockin' Software. When I went to
the website to 'confront' the developer, here is what I found:

"The WinDates calendar software is no longer available for sale. I
have accepted a position with "xxx" Corporation [I'll be darned if I am
going to advertise his new position], the developer of the online "X"
Calendar service. In order to avoid a conflict of interest, I must
discontinue development and further sale of the WinDates calendar
software.

I apologize for any inconvenience this may have caused ...

Sincerely,
Dan Hickman
Rockin' Software"


And so it ends. I will chuck this app, and find a new one (doesn't
Firefox or Mozilla have one). But it was an interesting investigation,
and I want to thank you all who helped and also encouraged me to work
very close to the limit of my knowledge and skills regarding these
things.

All the best, and have a great 2006!

Hans L

PS. The app only changed the ForegroundLockTimeout the first time I
started it. The second time, when I had set the value to 0 again,
nothing happened.



--

Reply With Quote
  #24  
Old 01-05-2006, 03:59 PM
David Candy
 
Posts: n/a
Default Re: Stealing focus

You need to know what I wrote to interpret regmon. It shows the underlying key sometimes.

All HKCR are shown as HKCU\whatever (but mean HKCU\Software\Classes\whatever) and hklkm\whatever (but mean HKLM\Software\Classes\whatever) - they leave out the software\classes part.

HKCU\whatever may be shown somtimes as HKU\long number\whatever.
--
--------------------------------------------------------------------------------------------------
Goodbye Web Diary
http://margokingston.typepad.com/har....html#comments
=================================================
"David Candy" <.> wrote in message news:uWuDALcEGHA.916@TK2MSFTNGP10.phx.gbl...
HKEY_USERS\.DEFAULT\Control Panel\Desktop
This is the user settings when noone is logged in. This is the user (ie noone) whose screensaver activates at the welcome screen. Query does not write. It is reading only. It is not your setting. Don't confuse it with the Default User. This is a user who never does anything (unlike ..Default)but all created users are based on it (when created).

Your settings are at
HKEY_USERS\S-1-5-21-1757981266-1592454029-725345543-1003\Control Panel\Desktop
[That number is a user from my computer - your number is different] which are mirrored at
HKEY_CURRENT_USER\Control Panel\Desktop
for the current user (who ever happens to be logged in).

HKEY_CURRENT_USER (a mirror of HKEY_USERS\S-1-5-21-1757981266-1592454029-725345543-1003) and HKEY_CLASSES_ROOT (combined from HKEY_USERS\S-1-5-21-1757981266-1592454029-725345543-1003\Software\Classesand HKEY_LOCAL_MACHINE\SOFTWARE\Classes) don't actually exist. They show current almagamated settings for the current user. When user and machine setting are the same user normally take precedence.

If you had pro one could remove yourself from being allowed to write to this key. Then the program can't either as it uses your security.
--
--------------------------------------------------------------------------------------------------
Goodbye Web Diary
http://margokingston.typepad.com/har....html#comments
=================================================
"Hans L" <fakeascanbe@evenfakier.com> wrote in message newsO-dnZiX7OE-JyHenZ2dnUVZ_tWdnZ2d@adelphia.com...
> David Candy wrote:
>
>> It is reading that from the system settings (for when noone is logged
>> on). Seems rather irrelevent as you will not see the window in the
>> first place.
>>
>> 748 is the process ID (easy to get the program's number - much harder
>> [meaning more work] to get it's name). Look in Task Manager process
>> tab. Queryvalue means it is being read only, not written.
>>
>> cmd /k reg query "HKEY_CURRENT_USER\Control Panel\Desktop" /v
>> "ForegroundLockTimeout"
>>
>> Put above in a shortcut in startup. What make you think it happens at
>> startup rather than shutdown.
>>
>> Create a new administrator account. Fix FLT to what you want it to
>> be. Log out of your account. Log in to new account. Type regedit in
>> Start Run, read help on loading hives. Load your hive.
>>
>> the new temporary path to your FLT is
>>
>> HKU\<the name you chose when loading the hive>\Control Panel\Desktop
>>
>> Has it changed since you logged off.
>>
>> Give auditing a go. Note Read Help carefully. It is a two stage
>> thing. Turn auditing on for Objects. Then set the object (the desktop
>> regkey) to be audited.
>>
>> Also regmon has filters. I would have entered ForegroundLockTimeout
>> as the filter (on edit menu) and if there was only one read I would
>> see only 1 line (not 90 000 of them).

>
>
>
> I think I found the culprit:
>
> 1430443: WinDates.exe:3036 SetValue HKCU\Control
> Panel\Desktop\ForegroundLockTimeout SUCCESS 0x2710
>
>
> WinDates is a calendar app. If I am right, I am going to flogg the
> developer -- at least with a wet noodle.
>
> I did a very low-tech check. When the computer was starting up, I went
> into the registry with regedit several times. At one point, the value
> changes from 0x00000000(0) to 0x00002710(10000), and it looked as if it
> was Firefox that was the culprit. However, now, when I ran the login
> function a little longer, I got the line above (1430443).
>
> However, the very first occurence of ForegroundLockTimeout is this:
>
>
> 97006: winlogon.exe:752 QueryValue HKU\.Default\Control
> Panel\Desktop\ForegroundLockTimeout SUCCESS 0x30D40
>
> Where in the dickens does the default value 0x30D40 come from? I guess
> that it only shows the default value, but that whatever I have changed
> it to will show up later, e.g.,
>
> 139991: winlogon.exe:752 QueryValue HKCU\Control
> Panel\Desktop\ForegroundLockTimeout SUCCESS 0x0
>
> So, now I will not start WinDates at startup, and see what happens.
>
> I'll be bakk!
>
> Hans L
>
>
> --
>
>
>
>
>
>

Reply With Quote
  #25  
Old 01-05-2006, 03:59 PM
David Candy
 
Posts: n/a
Default Re: Stealing focus

Type msconfig in Start Run and find WinDates on the startup tab and see if it has a parameter.

If you want to keep using it I can make a program that resets FLT in realtime. But see if it has a parameter that installs it or something in MSConfig.

I don't know why he would set such a thing in his program. He shouldn't be changing it but he is and I can't see any advantage to him in doing so.
--
--------------------------------------------------------------------------------------------------
Goodbye Web Diary
http://margokingston.typepad.com/har....html#comments
=================================================
"Hans L" <fakeascanbe@evenfakier.com> wrote in message news:gL-dnf1gp7SXXyHenZ2dnUVZ_t6dnZ2d@adelphia.com...
> Hans L wrote:
>
>> Hello:
>>
>> I know, I am weird. I want newly opened applications to steal focus.
>> I know I am weird, because tons of articles on the web is about how
>> not to steal focus, no articles on the opposite. It seems to be a
>> cardinal sin to steal focus. Worse than gluttony, equal to pride.
>>
>> Now, having confessed, I expect you to do the same. You are stealing
>> my 0x000000000(0) (in ForegroundLockTimeout) and replacing it with a
>> value that makes my apps not steal focus.
>>
>> First, I thought it was Tweak IU, but I uninstalled it, and my
>> ForegroundLockTimeout value still changes.
>>
>> Admit it, it is you :-)
>>
>> Okay, maybe it is not you, but would you have any idea what in my XP
>> Home Dell Dim XPS T700 (yeah, it is a little old) does change the
>> value of ForegroundLockTimeout?
>>
>> Regards,
>>
>> Hans L

>
>
> Mystery solved.
>
> The culprit was indeed WinDates by Rockin' Software. When I went to
> the website to 'confront' the developer, here is what I found:
>
> "The WinDates calendar software is no longer available for sale. I
> have accepted a position with "xxx" Corporation [I'll be darned if I am
> going to advertise his new position], the developer of the online "X"
> Calendar service. In order to avoid a conflict of interest, I must
> discontinue development and further sale of the WinDates calendar
> software.
>
> I apologize for any inconvenience this may have caused ...
>
> Sincerely,
> Dan Hickman
> Rockin' Software"
>
>
> And so it ends. I will chuck this app, and find a new one (doesn't
> Firefox or Mozilla have one). But it was an interesting investigation,
> and I want to thank you all who helped and also encouraged me to work
> very close to the limit of my knowledge and skills regarding these
> things.
>
> All the best, and have a great 2006!
>
> Hans L
>
> PS. The app only changed the ForegroundLockTimeout the first time I
> started it. The second time, when I had set the value to 0 again,
> nothing happened.
>
>
>
> --
>

Reply With Quote
  #26  
Old 01-05-2006, 03:59 PM
Hans L
 
Posts: n/a
Default Re: Stealing focus

David Candy wrote:

> Type msconfig in Start Run and find WinDates on the startup tab and
> see if it has a parameter.
>
> If you want to keep using it I can make a program that resets FLT in
> realtime. But see if it has a parameter that installs it or something
> in MSConfig.
>
> I don't know why he would set such a thing in his program. He
> shouldn't be changing it but he is and I can't see any advantage to
> him in doing so.



David, no parameter in MSConfig for WinDate.

Since the app is no longer supported, and I had another issue with it
too, I will simply find another app.

I read on another list somewhere that one developer had put a change of
FLT in his app for some technical reason, and when that reason was no
longer relevant, he had forgotten that he had reset FLT, and it caused
problems for users. Now, for WinDate, it is a moot point.

I thank you again for your kind assistant, which made the late night
yesterday and the "foggy" morning today worthwhile.

Thanks to Mungo and Trevor too.

Hans L

--

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
IE6 loses focus Lolik Internet Explorer 6 0 01-05-2006 04:30 PM
IE windows battling for focus Tim C Internet Explorer 6 1 01-05-2006 04:26 PM
Window gains focus but does not come to front tim.creech@gmail.com Internet Explorer 6 0 01-05-2006 04:21 PM
Apps stealing focus... __XXX__ Windows XP Customize 0 01-05-2006 06:34 AM
Apps stealing focus __XXX__ Windows XP Customize 0 01-05-2006 06:34 AM


All times are GMT. The time now is 10:38 AM.


Powered by vBulletin Version 3.5.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd. SEO by vBSEO 2.3.2 © 2005, Crawlability, Inc.

Stealing focus