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).
Settings
You can customize settings such as clipping area offset, frequency of checking and console window hiding in INI file.
Spoiler!
Source Code
Code licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/)
Source Code
Download
Direct download
Dropbox