X Mouse Button Control Windows Startup

Posted By admin On 12.09.21

The Button class represents the most basic type of button control. For info on other similar button controls that are more specialized, see HyperlinkButton or RepeatButton. Button interaction. When you tap a Button with a finger or stylus, or press a left mouse button while the pointer is over it, the button raises the Click event.

Obviously, this tool is not intended for users that view the computer mouse as a simple three-button pointing device.

The application is free of charge and, in our case, it did not attempt to push third-party software onto the system during the installation process.

Since X-Mouse Button Control is intended for functionality, looks are far from being impressive. The application window is straightforward and presents the options available in the program.

On one side, there are listed the profiles for applications and windows while on the other, you have the possibility to define actions for each mouse button and the scroll wheel, according to the active profile.

The list of actions is extremely large (over 60 commands) and allows you to instruct a button to execute a different command according to the active profile. Given that, X-Mouse Button Control offers as many as five sets of mappings (layers), thus making available a huge amount of tweaking.

You can switch between the layers in order to change the function of a button. Considering all this, a button can not only accomplish a different action according to the active profile, but also depending on the active layer.

A mouse button can handle quite a lot of actions that could otherwise be completed by pressing multiple keys at once. It can be mapped to allow you to activate the screensaver, perform cut/copy/paste operations, maximize window, switch between layers, lock the computer, activate Flip 3D, perform media related actions (stop, mute, volume up/down, move to next track), open Windows Explorer at a specific location, launch the email client or the web browser, start RUN, deploy an application, etc.

When adding a new profile, X-Mouse Button Control automatically shows all running applications, so you can easily pick between them, but it also provides the possibility to add an executable file of your choice.

Minecraft 1.9 free download full version for android. Furthermore, a window detecting tool (window finder) can help you narrow down the area that activates the profile. Alternatively, there is the possibility to edit the details (caption, handle, process) manually.

Personalization of the mouse goes even further, as the application provides contextual (per profile) options for the scroll wheel. These allow inverting scrolling (vertical and horizontal) or defining the number of lines per scroll.

Under the Advanced Window Scrolling section, there are five, more complex options for the mouse wheel. Each of them can be tweaked in terms of vertical lines and horizontal characters that should be skipped during the action.

Method four (Wheel Message) supports negative values; according to the documentation of the program, this is also the most reliable of the bunch, since the others either work with certain applications only (as is the case with method five – WPF Scroll Message, designed for usage with apps built on Windows Presentation Foundation) or fail to do their job at all times.

The configuration panel for X-Mouse Button Control is also quite rich in options. The developer thought of plenty of usage scenarios for the application and integrated the possibility to disable its functionality when running under remote desktop, or swap button number 4 with button number 5.

X Mouse Button Control Windows Startup

One of the options useful for many users is scrolling in windows just by hovering the mouse over them, without having to activate the program. This is a handy trick when there are multiple windows neatly arranged on the desktop because you do not have to click on them in order to scroll the page.

More experienced users can head to the “Advanced” tab and enable a delay between simulated keystrokes or change the process priority (default is “high”). The regular user on the other hand, should be okay with the default configuration of the application.

X-Mouse Button Control has support for global hotkeys that permit sending instructions regardless of the active program. The keyboard shortcuts that can be enabled allow moving to a different layer, saving the desktop icon layout and restoring it, or locking the X/Y axis. Modifier keys can be set for these actions, too.

Learning the ropes in X-Mouse Button Control is not a tough job. The application is intuitive and provides plenty of customization for such a simple device as the computer mouse, thus increasing its functionality manifold.

The Good

It is highly versatile in terms of the functions that can be assigned to a button. As such, a click can initiate different actions in multiple programs and even in the same program it can function differently, according to the current layer.

The Bad

Given the flexibility of the application, less experienced users may be overwhelmed by the possibilities offered.

The Truth

X-Mouse Button Control can totally upgrade a regular 3-button mouse to a device that can accomplish a myriad of functions depending on the environment it works in.

A more versatile device can be configured to achieve even more, especially in programs with lots of functions, such as image/video editing suites and even in games.

Windows utility to enable or disable active window tracking, raising and also the delay in milliseconds. This is known as x-mouse behavior or focus follows mouse.

Works on Windows 10, Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003. Might work on other versions as well.

X-Mouse Controls is competely free! If you like and use X-Mouse Controls, please tell your friends and link back to this page. Donations are also very much appreciated.

What is 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 and utilities, most notably Tweak UI found in Microsoft PowerToys. However, Tweak UI does not run on Windows Vista, Windows 7, Windows 8, Windows 10, Windows Server 2008, Windows Server 2012, and later versions, which is why I created this utility.


The main window, running on Windows 10


Active window tracking
Enable to give focus to windows by moving your cursor over them, known as focus follows mouse. Obeys the delay described below.
If disabled (default) a click is required to activate a window, known as clickfocus.
Active window raising
Enable to automatically make the active window the topmost window, known as autoraise.
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.
Active tracking delay
The delay, in milliseconds, until the window focus changes. This program allows settings from 0 milliseconds (instant focus) to 2500 milliseconds (very long delay). A value of 100—300 ms is recommend to avoid windows stealing focus too fast. See usage.
Saves the settings and applies them to your system. The settings come in effect right away, and stay even after rebooting.

Usage, tips, and workarounds

  • X-Mouse Controls does not require installation. You only need to run it once to change settings; all applied changes are persisted immediately.
  • If windows and menus disappear before using them, try increasing the delay. A delay of 100—300 is recommended, depending on how fast you move the mouse cursor.
  • To work around some window raising and menu problems, click and hold your left mouse button on an empty (unresponsive) area, drag the cursor to where you want to focus, and let go.
  • Active window raising can be problematic when some programs/windows completely overlap others, especially in combination with a low delay. Try turning off active window raising.


X-Mouse Controls is competely free! You even get the source code for free. To develop open source software is not without cost though — it takes technical knowledge, time, and effort.

You don't have to be a developer to support my open source work! If you want to receive personal support, or just feel all warm and fuzzy inside from helping open source development, donations are very welcome.

Open source Feel-good Extra feel-good Corporate feel-good
Active window tracking
Active window raising
Active tracking delay
Instant apply
Source code
Github support
Email support
Chat support
Phone support
Invoice for bookkeeping
Free! Donate $5 nowDonate $25 nowDonate $100 now


  • Report issues on github or contact the developer with questions directly.
  • In order to avoid X-Mouse Controls being buried below other windows while exprimenting with the settings, it will always stay on top of other windows. Minimize first to test window raising.
  • Uninstallation is easy — just delete the X-Mouse Control files. Optionally run the program to turn off active window tracking first, as the settings are persisted.
  • Some applications, especially those with a Multiple Document Interface, may raise their own window even though the feature is disabled. See usage.
  • What is known as x-mouse on Windows is different from Xmouse on other systems. On Windows, it is closer to the X Window System (X11) setting focus follows mouse (FFM) or focus follows pointer.
  • Requires Windows Presentation Foundation, which is included in .NET Framework 3.5 and .NET Framework 4. One of them is most likely already installed on your system.
  • If you use a version of Windows released prior to Windows Vista, it is recommended to use Tweak UI, found in Microsoft PowerToys and the related powertoy Microsoft Xmouse 1.2.

Source code

The source code, including this webpage and original graphics, has been released under the GNU General Public License. Contributions are most welcome! Please create pull requests against the develop branch, and follow the git-flow branching style.

To work on X-Mouse Controls, you need Microsoft Visual Studio. You can easily run a complete developer setup in a virtual machine, freely available from Microsoft. Please test any changes on at least Windows 7 and Windows 10, as both have a lot of users and high market share (September 2018).

  • Microsoft development environment — Windows 10 virtual machine with Visual Studio.
  • Microsoft test environment — Windows 7/8.1/10 virtual machines.

History and downloads

v1.1.0.0 (2018-10-06 19:30 CET)

What Is X Mouse Button Control

Download (pgp signature). See also Source code (pgp signature), Debug build (pgp signature).
  • Minimize the main window. Requested in #5 by bitofhope. Fixed in #6, thank you Nathan Phillip Brink!
  • Can run on Windows 10 without downloading .NET Framework 3.5. Both request in #11 and fixed in #12 by Nathan Phillip Brink, thank you!
  • More usage information and tips in the main window.
  • Reflect system settings changes in the X-Mouse Controls window.
  • Update icon to depict a focused window below an unfocused window (instead of a focused window on top of an unfocused window). Graphics were updated by Miroslava Jovičić, thank you!
v1.0.1.0 (2012-08-12 20:30 EST)
Source code
No changes, but the source code is now release on github under the GNU General Public License.
v1.0.1.0 (2010-04-03 11:55 CET)
Download (pgp signature). See also Source code (pgp signature), Debug build (pgp signature).
Allows for manual input of the delay, new web site links, using more bindings.
v1.0.0.1 (2007-12-27 16:19 CET)
Download (pgp signature). See also Source code (pgp signature), Debug build (pgp signature).
Disables the active window raising checkbox and delay slider when the active window tracking checkbox is not checked.
v1.0.0.0 (2007-12-27 14:04 CET)
Download (pgp signature). See also Source code (pgp signature), Debug build (pgp signature).
First version, initial release.

About the author

Joel Purra is a software engineer working on both commercial and open source projects. He is available for consulting work.

Search engine fodder

This section can be ignored by humans.

System calls

X-Mouse Controls is using system calls from SystemParametersInfo in user32.dll, especially SPI_GETACTIVEWINDOWTRACKING, SPI_GETACTIVEWNDTRKZORDER, SPI_GETACTIVEWNDTRKTIMEOUT.

Incoming links

  • Douglas Whitaker: Focus Follows Mouse in Windows
  • alternativeTo: X-Mouse Controls
  • superuser.com: How do you enable focus follows mouse in Windows 10 (answer)
  • superuser.com: How to make mouse in Windows 7 act the same as Windows XP (answer)
  • Ars Technicha: Help Request: How to enable 'focus-follows-mouse' in Windows 7 (comment)
  • Run like Hell: Windows 8: Configuring focus follows mouse and auto-raise behaviour (comment)
  • SevenForums: Windows 7: I need to prevent the focus window from coming to the top (comment)
  • AutoHotKey: Auto-raise / mouse hover (comment)
  • Beyond Windows 9: X-Mouse for W7+
  • Micha's Blog: Installing Windows 7
  • ReactOS JIRA: CORE-10046 Add an option for mouse-follows-focus behavior into control panel
  • Reddit /r/software: Ubuntu scrolling on windows 8.1
  • Reddit /r/buildapc: What programs do you use?
  • Shores of Hazeron — Massive Multiplayer Online Science Fiction: Construction Window Steals Focus

Windows Ease of Access Center (Windows 7)

The Windows control panel offers you to enable/disable x-mouse, but not to tweak it. Use X-Mouse Controls instead.

  • Enter Ease of Access Center (shortcut Win+U)
  • Click Change how your mouse works
  • Enable Activate a window by hovering over it with the mouse

X Mouse Button Control Windows Startup Tool

Registry hacks

Direct edititing of the registry for x-mouse values is considered a bad thing, as there are API calls which do this correctly and apply the results right away — with X-Mouse Controls there is no need to log out and in, or restart your computer. The following words are only here to help others searching for a tool that makes an inactive window active by hovering: HKEY_CURRENT_USERControl PanelMouseActiveWindowTracking, HKEY_CURRENT_USERControl PanelDesktopActiveWindowTracking, HKEY_CURRENT_USERControl PanelDesktopActiveWndTrkTimeout, HKEY_CURRENT_USERControl PanelDesktopUserPreferencesMask, REG_DWORD, REG_BINARY.

X Mouse Button Control Windows Startup Download

Windows 3.11, Windows 95, Windows 98

X Mouse Button Control Windows Startup Windows 10

Excerpt from AXCEL216's MAX Speeed Windows 98/98 SE + DOS 7.10 ©Tricks, Secrets, BUGs + FIXes

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:

X Mouse Button Control Windows Startup

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.