Lock your mouse in. Create an invisible border, e.g. if you want to use a info display and prevent accidentally moving the mouse to it.
C#
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.vs
LockinMouse
MouseKeyboardLibrary
LICENSE
LockinMouse.sln
LockinMouse.v12.suo
README.md
icon.ico

README.md

LockInMouse

Lock your mouse in. Create an invisible border, e.g. if you want to use a info display and prevent accidentally move the mouse to it.

You can freely set any (invisible) border for your mouse. Useful if you have a multi monitor setup and tend to accidentally move the mouse to a monitor you barely use.

There are solutions out there, but they only let you limit your mouse to your primary monitor. With LockInMouse you can set any screen coordinates.

How to use

  • Set coordinates (Top/Bottom/Left/Right Limits) to stop your mouse
  • Click "Show Mouse Position" to help you determining the coordinates
  • If specific border should not be present, choose coordinate outside of your screen (max 999999)
  • Press Pause Hotkey (Default Ctrl+Alt) to temporary disable the borders
  • Borders will be reactivated automatically if you once move outside and in again

Basic information

This is my very first project and also my first try with C#. Created because I was in the need of such a tool but couldn't find one.

Please report any issues and if you want to help and improve the code you're very welcome!

3rd party

Global Mouse and Keyboard Library by Brian Geiman, Licensed under The Code Project Open License (CPOL) (see LICENSE.htm in MouseKeyboardLibrary Folder) https://www.codeproject.com/Articles/28064/Global-Mouse-and-Keyboard-Library

License

GNU General Public License v3.0 (LICENSE.md for more information)