[TOOL] Warcraft III Mouse Clipper

General discussion about Warcraft III and Enterprise.
User avatar
B4rt0
Aura Tree
Posts: 38
Joined: Sun Feb 09, 2014 2:25 pm
Location: Wroclaw, Poland
Has thanked: 2 times
Been thanked: 10 times
Contact:

[TOOL] Warcraft III Mouse Clipper

Postby B4rt0 » Wed Oct 28, 2015 10:26 pm

Image

Info
This tiny C++ console application automatically locks mouse inside Warcraft III window everytime it is active.
By default it hides the console window and closes itself after you close W3.
It supports both RoC and TFT, and should work on all Windows OS, both 32 and 64-bit.
It will not open if Warcraft III window is not present and will prevent from running multiple instances.

How to use
Open Warcraft III, then open the application to lock mouse inside the window.
To deactivate it you have to ALT+TAB from W3 window.
To activate it again you have switch back to W3 window by selecting it from taskbar or ALT+TAB back to it.
To close it, you have to close the game or End Task in Task Manager (Ctrl+Shift+ESC). Currently there is no other way. I forgot - you can set silent mode to 0 and then you can close it by closing console window.

Settings
You can customize settings such as clipping area offset, frequency of checking and console window hiding in INI file.
Spoiler!

Code: Select all

[ClipAreaOffset]
; If your cursor is too far from edges you should lower the values, otherwise you should increase them.
offsetTop=31
offsetLeft=8
offsetRight=-8
offsetBottom=-8

[GeneralSettings]
; Frequency [ms] in which program checks window state; default value is 500
refreshRate=500
; If set to 1, console window will not show. If set to 0 console window will be displayed.
silentMode=1


Source Code
Code licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/)
Source Code

Download
Direct download
Dropbox
Last edited by B4rt0 on Thu Oct 29, 2015 9:03 am, edited 1 time in total.

User avatar
Lee-XIII
Aura Tree
Posts: 30
Joined: Thu Dec 12, 2013 11:48 pm
Has thanked: 2 times
Been thanked: 1 time

Re: [TOOL] Warcraft III Mouse Clipper

Postby Lee-XIII » Thu Oct 29, 2015 4:26 am

This only works windows mode?

User avatar
Halibel
Forest Walker
Posts: 121
Joined: Fri Nov 29, 2013 7:22 pm
Has thanked: 13 times
Been thanked: 20 times

Re: [TOOL] Warcraft III Mouse Clipper

Postby Halibel » Thu Oct 29, 2015 4:55 am

Lee-XIII wrote:This only works windows mode?


Yes of course.

I play WC3 on window mode only so it's helpful, thanks :).

User avatar
B4rt0
Aura Tree
Posts: 38
Joined: Sun Feb 09, 2014 2:25 pm
Location: Wroclaw, Poland
Has thanked: 2 times
Been thanked: 10 times
Contact:

Re: [TOOL] Warcraft III Mouse Clipper

Postby B4rt0 » Thu Oct 29, 2015 11:02 am

Lee-XIII wrote:This only works windows mode?

What's the use of locking mouse in fullscreen mode while it's already been locked by the game.It only makes sense for windowed mode.

User avatar
Lee-XIII
Aura Tree
Posts: 30
Joined: Thu Dec 12, 2013 11:48 pm
Has thanked: 2 times
Been thanked: 1 time

Re: [TOOL] Warcraft III Mouse Clipper

Postby Lee-XIII » Fri Oct 30, 2015 9:55 am

cursor lock still better than this, it navigate the mouse.


Return to “General Discussions”

Who is online

Users browsing this forum: No registered users and 12 guests