A tool to enable or disable active window tracking, raising and also the delay in milliseconds. This is known as x-mouse behavior.
When multiple programs are running on a Windows operating system, the default mode of operations is that you click one window after another to give them focus for keyboard inputs. With the x-mouse settings that click is not necessary - the only thing needed is to move your cursor over the window for it to become active.
This behavior has been possible, but disabled, in different versions of Windows for years. It is usually enabled through Windows accesiblity settings or a wide variety of tools, most notably Tweak UI found in Microsoft PowerToys. However, Tweak UI does not run on Windows Vista/Windows Server 2008/Windows 7/later, which is why I created this tool.
The main window
Enable to give focus to windows by moving your cursor over them. Obeys the delay described below.
If disabled (default) a click is required to activate a window.
Enable to automatically make the active window the topmost window.
If automatic window raising is disabled (default) it allows the user to type text or give commands in one window without changing the order of the other windows.
The delay, in milliseconds, until the window focus changes. This program allows settings from 0 milliseconds (instant focus) to 2500 milliseconds (very long delay).
Saves the settings and applies them to your system. The settings should come in effect right away.
Joel Purra is a coder and webmaster, working mainly on webshops and sometimes on his hobby projects. His prefered programming languages are JScript for classic ASP and C# for .NET-development. He is available for consulting work.
The code relies on API calls to user32.dll, not direct edititing of the registry (as it's considered a bad thing). The following words are only here to help searching for this tool: HKEY_CURRENT_USER\Control Panel\Mouse\ActiveWindowTracking, HKEY_CURRENT_USER\Control Panel\Desktop\ActiveWindowTracking, HKEY_CURRENT_USER\Control Panel\Desktop\ActiveWndTrkTimeout, HKEY_CURRENT_USER\Control Panel\Desktop\UserPreferencesMask, REG_DWORD, REG_BINARY, TweakUI, xmouse.
X-Mouse settings do not "stick" [Thank you Joel Purra (e-mail removed)!]: TweakUI's Mouse tab -> "Activation follows mouse (X-Mouse)" box checked, and: TweakUI's General tab -> "X-Mouse AutoRaise" and "Mouse hot tracking effects" boxes checked. This can be fixed in some cases (reminiscent from the old XMouse MS Power Toy 95) by adding/changing these Win.ini entries under the [XMouse] section:
[XMouse] BringWindowToTop=1 ConsoleWindowsOnly=1 Delay=1
Edit Win.ini (located in your Windows folder) with Notepad or Sysedit. Change any of these lines from 1 to 0 or back, and then restart Windows to see if it works. See "ACTIVE WINDOW TRACKING" in REGISTRY.TXT (included) to learn how to properly activate/fix X-Mouse settings used by TweakUI.