{"id":10513,"date":"2011-06-02T07:00:00","date_gmt":"2011-06-02T07:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2011\/06\/02\/how-do-i-control-x-mouse-settings-active-window-tracking\/"},"modified":"2011-06-02T07:00:00","modified_gmt":"2011-06-02T07:00:00","slug":"how-do-i-control-x-mouse-settings-active-window-tracking","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20110602-00\/?p=10513","title":{"rendered":"How do I control X-Mouse settings (active window tracking)?"},"content":{"rendered":"<p> For quite some time, Windows has had a setting officially called <i>active window tracking<\/i> but which informally goes by the name X-Mouse, because that was the name of the PowerToy which first exposed the feature. (The PowerToy was in turn so-named because it made the mouse behave in a manner similar to many X window managers.) The setting is exposed to end users in Windows&nbsp;7 on <a href=\"http:\/\/windows.microsoft.com\/en-US\/windows7\/Make-the-mouse-easier-to-use\"> <i>Make the mouse easier to use<\/i><\/a> under <i>Activate a window by hovering over it with the mouse<\/i>. <\/p>\n<p> If you want to write your own PowerToy to control this setting, you can do so by calling the <code>SystemParametersInfo<\/code> function. There are three settings which collectively control the X-Mouse feature: <\/p>\n<ol>\n<li><code>SPI_SETACTIVEWINDOWTRACKING<\/code>:     This is the master switch which enables the behavior. <\/li>\n<li><code>SPI_SETACTIVEWNDTRKZORDER<\/code>:      This controls whether the window is brought to the top     when it is activated by active window tracking. <\/li>\n<li><code>SPI_SETACTIVEWNDTRKTIMEOUT<\/code>:     This controls how long the mouse has to be in a window     before it is auto-activated. <\/li>\n<\/ol>\n<p> Note that X-Mouse is a user preference. Applications should not change the setting without the user&#8217;s permission. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>For quite some time, Windows has had a setting officially called active window tracking but which informally goes by the name X-Mouse, because that was the name of the PowerToy which first exposed the feature. (The PowerToy was in turn so-named because it made the mouse behave in a manner similar to many X window [&hellip;]<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[25],"class_list":["post-10513","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-code"],"acf":[],"blog_post_summary":"<p>For quite some time, Windows has had a setting officially called active window tracking but which informally goes by the name X-Mouse, because that was the name of the PowerToy which first exposed the feature. (The PowerToy was in turn so-named because it made the mouse behave in a manner similar to many X window [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/10513","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=10513"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/10513\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=10513"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=10513"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=10513"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}