/
Default.aspx
198 lines (197 loc) · 10.7 KB
/
Default.aspx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server" xml:lang="sv" lang="sv">
<title>joelpurra.se/Projects/X-Mouse Controls by Joel Purra</title>
<link rel="stylesheet" href="Design/01/CSS/Main.css" type="text/css" />
</head>
<body>
<div id="wrapper">
<img src="Design/01/Images/X-Mouse-Controls-01.gif" id="logo" alt="X-Mouse Controls logotype, an active window on top of a greyed out window." />
<h1>
X-Mouse Controls</h1>
<p>
A tool to enable or disable active window tracking, raising and also the delay in
milliseconds. This is known as x-mouse behavior.
</p>
<h2>
What is x-mouse behavior?</h2>
<p>
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.
</p>
<p>
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 <a href="http://www.microsoft.com/windowsxp/downloads/powertoys/xppowertoys.mspx">
Microsoft PowerToys</a>. However, Tweak UI does not run on Windows Vista/Windows Server 2008/Windows 7/later,
which is why I created this tool.</p>
<h2>
Screenshots</h2>
<p>
<img src="Screenshots/x-mouse_controls_main_window_2010-04-03_1155_01.png" alt="Screenshot of the main window of X-Mouse Controls" /><br />
The main window
</p>
<h2>
Features</h2>
<div id="features">
<div class="feature">
<h3>
Active window tracking</h3>
<p>
Enable to give focus to windows by moving your cursor over them. Obeys the delay
described below.
</p>
<p>
If disabled (default) a click is required to activate a window.
</p>
</div>
<div class="feature">
<h3>
Active window raising</h3>
<p>
Enable to automatically make the active window the topmost window.
</p>
<p>
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.
</p>
</div>
<div class="feature">
<h3>
Active tracking delay</h3>
<p>
The delay, in milliseconds, until the window focus changes. This program allows
settings from 0 milliseconds (instant focus) to 2500 milliseconds (very long delay).
</p>
</div>
<div class="feature">
<h3>
Apply</h3>
<p>
Saves the settings and applies them to your system. The settings should come in
effect right away.
</p>
</div>
</div>
<h2>
Notes</h2>
<ul>
<li>Some applications, especially those with a <a href="http://en.wikipedia.org/wiki/Multiple_document_interface">
Multiple Document Interface</a>, may raise their own window even though the feature
is disabled. See work-around below.</li>
<li>Some menus do not like the x-mouse behavior and close before you are able to reach
or click any menu alternative. See work-around below.</li>
<li>One way to avoid window raising and menu problems is to click and hold your left
mouse button on an empty (unresponsive) area, drag the cursor to where you want
to focus and let go.</li>
<li>Requires at least <a href="http://en.wikipedia.org/wiki/.NET_Framework_3.0#.NET_Framework_3.5">
.NET Framework 3.5</a> due to the fact that this was a small test to try out <a href="http://en.wikipedia.org/wiki/Windows_Presentation_Foundation">
Windows Presentation Foundation.</a></li>
<li>The releases do not require installation apart from unpacking. Please use <a
href="http://www.7-zip.org/">7-Zip</a> to unpack .7z files.</li>
<li>Developed for Windows Vista/Windows Server 2008/Windows 7/later.
If you use a version of Windows released prior to Windows Vista, it is recommended
to use Tweak UI, found in <a href="http://www.microsoft.com/windowsxp/downloads/powertoys/xppowertoys.mspx">
Microsoft PowerToys</a>.</li>
<li>Please link back to this page, <a href="http://joelpurra.se/Projects/X-Mouse_Controls/">
http://joelpurra.se/Projects/X-Mouse_Controls/</a> if you like and use this program.</li>
</ul>
<h2>
Source code</h2>
<p>
I've release the full sourcecode, including this webpage and original graphics under the <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>. You can find the <a href="http://joelpurra.github.com/xmouse-controls/">source code on github</a>. Contributions are welcome!
</p>
<h2>
History and downloads</h2>
<dl>
<dt>2012-08-12 20:30 1.0.1.0 <a href="http://joelpurra.github.com/xmouse-controls/">Source</a></dt>
<dd>
No changes, but the <a href="http://joelpurra.github.com/xmouse-controls/">source code is now release on github</a> under the <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>.<br />
</dd>
<dt>2010-04-03 11:55 1.0.1.0 <a href="Files/2010-04-03_1155/x-mouse_controls_2010-04-03_1155_release.7z">
Release</a> <a href="Files/2010-04-03_1155/x-mouse_controls_2010-04-03_1155_debug.7z">
Debug</a> <a href="Files/2010-04-03_1155/x-mouse_controls_2010-04-03_1155_source.7z">
Source</a></dt>
<dd>
Allows for manual input of the delay, new web site links, using more bindings.<br />
</dd>
<dt>2007-12-27 16:19 1.0.0.1 <a href="Files/2007-12-27_1644/x-mouse_controls_2007-12-27_1644_release.7z">
Release</a> <a href="Files/2007-12-27_1644/x-mouse_controls_2007-12-27_1644_debug.7z">
Debug</a> <a href="Files/2007-12-27_1644/x-mouse_controls_2007-12-27_1644_source.7z">
Source</a></dt>
<dd>
Disables the active window raising checkbox and delay slider when the active window
tracking checkbox is not checked.<br />
</dd>
<dt>2007-12-27 14:04 1.0.0.0 <a href="Files/2007-12-27_1404/x-mouse_controls_2007-12-27_1404_release.7z">
Release</a> <a href="Files/2007-12-27_1404/x-mouse_controls_2007-12-27_1404_debug.7z">
Debug</a> <a href="Files/2007-12-27_1404/x-mouse_controls_2007-12-27_1404_source.7z">
Source</a></dt>
<dd>
First version, initial release.<br />
</dd>
</dl>
<h2>
About the author</h2>
<p>
<a href="http://joelpurra.se/">Joel Purra</a> 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.
</p>
<h2>
Other stuff</h2>
<h3>
Search engine fodder</h3>
<p class="minorImportance">
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.</p>
<h3>
Excerpt from <a href="http://members.aol.com/axcel216/newtip98.htm">AXCEL216's MAX Speeed
Windows 98/98 SE + DOS 7.10 ©Tricks, Secrets, BUGs + FIXes</a></h3>
<p class="minorImportance">
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:
</p>
<pre>
[XMouse]
BringWindowToTop=1
ConsoleWindowsOnly=1
Delay=1
</pre>
<p class="minorImportance">
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.
</p>
<div id="footer">
<a href="http://joelpurra.se/Projects/X-Mouse_Controls/">X-Mouse Controls</a>. Originally
coded a late night in December of 2007 by Joel Purra, <a href="http://joelpurra.se/">
http://joelpurra.se/</a>.
</div>
</div>
<script type="text/javascript">
//<![CDATA[
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-15653943-1']);
_gaq.push(['_trackPageview']);
(function ()
{
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
//]]>
</script>
</body>
</html>