Home

Awesome

AutoCursorLock

icon

Locks the cursor to a specified window or monitor while an application is in focus.

Description

When playing certain games with multiple monitors you may find your cursor leaves the game window and enters the other monitor(s).

This program will detect when a program like CS:GO is in focus and lock the cursor to the game. The cursor will automatically unlock when you Alt-Tab and relock when the game comes back into focus. There is also a hotkey to disable/enable the auto-locking.

Games that accidentally allow the cursor to leave the game window.

Screenshot

How does this program compare to other cursor-locking programs?

Usage

Start the program and select an item from the automatically populated processes list. Click the Add button to start automatically locking on that process' windows. The selections are saved to %appdata%/AutoCursorLock/settings.json and loaded automatically on program start.

Press your configured hotkey to toggle auto locking when a selected process is in focus, or alternatively use Alt+Tab to focus on a window that you did not configure to lock the cursor.

FAQ

Why do some applications have a question mark icon?

This probably means AutoCursorLock experiences a permission denied error when inspecting the process. This is a flag that processes can set and there is nothing AutoCursorLock can do to resolve this. The good news is that other than the icon and application path missing, AutoCursorLock should work as usual.

I have an issue, where are the logs?

If you are experiencing technical issues with AutoCursorLock, please include logs in your GitHub issue. The application logs can be found in %appdata%/AutoCursorLock/log.txt.

Planned Features

Contributing

Go for it! Always happy to have help.