Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Computer question - Window Focus

Cross Lament
Loose-brained Vixen
Join date: 20 Mar 2004
Posts: 1,115
10-13-2004 15:02
Does anybody have any ideas on how to prevent different program windows, in the Windows 2000 or XP operating systems, from stealing focus?

There's a registry hack floating around, changing a window-focus-change timeout value or something like that... doesn't do squat, anymore. Poop. :P

Personally, I don't think a window should ever steal focus from another, for any reason whatsoever. Okay, I might forgive it if it were warning me that there were flames shooting out of my HD or something... but I think the fact that my pants were on fire would probably warn me just as well. :D
_____________________
- Making everyone's day just a little more surreal -

Teeple Linden: "OK, where did the tentacled thing go while I was playing with my face?"
Tito Gomez
Mi Vida Loca
Join date: 1 Aug 2004
Posts: 921
10-14-2004 13:18
I never had this issue, but I found a site that provides two .vbs programs to edit (one to change and one to undo) the registry in order to fix this issue. I looked at them and did not see any malicious code, but use at your own risk. I guess you could also look at the code and do the registry changes manually (backup the registry first).

http://www.kellys-korner-xp.com/xp_tweaks.htm

Just search for focus on the page.

-tito

VBS code for registry change follows, in case any one cares to review it:



Option Explicit

Dim WSHShell, n, MyBox, p, itemtype, Title

Set WSHShell = WScript.CreateObject("WScript.Shell";)
p = "HKEY_CURRENT_USER\Control Panel\desktop\"
p = p & "ForegroundLockTimeout"
itemtype = "REG_DWORD"
n = 200000

WSHShell.RegWrite p, n, itemtype
Title = "Applications are Prevented from Stealing Focus." & vbCR
Title = Title & "You may need to Log Off/Log On" & vbCR
Title = Title & "For the change to take effect."
MyBox = MsgBox(Title,4096,"Finished";)
_____________________
Cross Lament
Loose-brained Vixen
Join date: 20 Mar 2004
Posts: 1,115
10-14-2004 14:27
That's actually the registry change that I was referring to in the first post. Ah well. :)

Thank you anyway, Tito. :D
_____________________
- Making everyone's day just a little more surreal -

Teeple Linden: "OK, where did the tentacled thing go while I was playing with my face?"