Cursor Lock

Windows 2000/XP, Windows 9x, Windows Vista/7

Cursor Lock is a utility program that confines the mouse cursor to a selected area on the screen. This is most useful in multi-monitor setups, addressing a common oversight in some applications (mostly games) whereby they allow the mouse cursor to drift into other unwanted screens. In video games, this can also lead to minimizing the game window if the cursor has drifted into another screen and the mouse is clicked accidentally. Cursor Lock can also overcome cursor drifting problems in windowed applications and games.

Here’s a list of games that Cursor Lock is reported or confirmed to fix.

Features

  • Locking only when focused–requires no special user interaction, nor does it interfere with task switching between screens
  • Uses a superior method of capturing the cursor compared to other solutions (e.g. MouseTrap)
  • Ability to open one program and lock another allows Cursor Lock to work well with launcher programs
  • Can confine the cursor to window borders, in addition to a whole screen
  • Customizable hotkeys allow for complete control of locking in any situation
  • Alternate locking modes that run in the background for full user control and special circumstances
  • Intuitive GUI support program for quick setup of Cursor Lock shortcuts
  • Integrated help system for shortcut setup program
  • Highly optimized and efficient locking program that uses practically no memory or CPU

Tutorial

Screenshots

Download

79.4K

Cursor Lock

221 kB - EXE

Contribute

Donate

via Paypal

If Cursor Lock has fixed a game or two for you, consider supporting development with a donation.

Or you can help by translating Cursor Lock into one of the following languages: French, Spanish, Portuguese, German, Italian, Russian, Mandarin Chinese, Japanese, Korean, Hindi, or Arabic.  Download the following file for more information.

Cursor Lock Translation Template (1206 downloads)

Changelog

230 Responses to Cursor Lock

  1. fattzilla USA says:

    Windows 10; latest version of chrome, keep getting error that a virus was detected and I can’t install.

    halp!

    • Snake USA says:

      I think someone else mentioned this recently on youtube comments as well. It looks like it’s probably overzealous anti-virus software. I assure you there is no infection with the file that is hosted here. I even double-checked if the downloaded MD5 matched the original installer and it did. BTW, it’s a14529624223a1f4e483b07957ed7b60 for version 2.6.1, in case anyone is paranoid.

      • Connor Ross USA says:

        I looked into it when it gave me the same error, and windows security essentials displays it as a trojan virus.

        • Snake USA says:

          Well, that is interesting but still inaccurate.

          From this this virus scan report: “There are strong indicators suggesting that this file is safe to use.”

          Some other developers using the same (popular) NSIS installer that Cursor Lock does are also reporting false positives, so I expect this to be rectified eventually.

  2. Jerah USA says:

    Works on Subnautica… i havent tried other games yet but im curious if anyone knows how to fix this issue ive had since i rid my computer of a nasty virus… of course i had the issue with the mouse going out of the games (even in fullscreen) mostly because the screen would flicker my desktop everytime i clicked… if i click to fast (rapid clicking) then it ends up clicking stuff on my desktop or minimizing or closing the game… this screen flickering is the root of my issues with my mouse going outside game walls and i cant seem to fix it myself… i now play most games in windowed mode as that seems to slightly stop it from clicking out of the game but it still flickers and sometimes even acts unresponsive after a single click (that is random) and sometimes it screws me over by clicking out of game (i assume its doing that to cause this next issue) and if i was moving forward with “W” then my character keeps going even after i let go of it! i have o hit “W” again for them to stop… same with other buttons, even clicks. this doesnt happen every time but press a button or click but its pretty frequent. i am also having a constant issue with an error coming up saying my display driver has stopped but successfully recovered…. if that happens in game the screen then freezes but i can hear myself still in the game, but the screen remains frozen on what ever was happening in game when the error came up….. any fixes for these issues? you guys seem computer savy so i hope i can get some sort of help. thanks in advance.

    computer is 2014 Dell Inspiron 15-3537 running Windows 10. Processor: Intel Core i5-4200U CPU 1.60GHz 2.30GHz.

    • Snake USA says:

      What you describe sounds a lot like how a mouse cursor acts when it isn’t “locked” or “captured” by a program window. Other than that, I’m not sure what you’re getting at, although I would suggest updating your video card drivers.

  3. Garrett USA says:

    Where would you find the “Open Program Args” numbers for an Origin game?

  4. Yodamoo CAN says:

    Does this work with Windows 10? I am having an issue. the cursor is sort of locked to the screen but not very well. It keeps going past the edge but then bouncing back to the edge. Makes panning very choppy and pretty much impossible. Also you still have the chance to click off the screen for the half second the cursor is over there before bouncing back.

  5. k4njin ITA says:

    It possible to lock (when playing league of legends) the mouse only to the center screen in nvidia surround?

    • Snake USA says:

      I assume setting the lock region to screen instead of window would do what you want, unless Nvidia Surround makes the independent screens appear as one screen to Windows.

  6. McFrugal USA says:

    I tried to use this on Windows Vista and it does nothing. There is no evidence that CursorLock.exe ever successfully runs, as it’s not in the processes tab in Task Manager.

    • Snake USA says:

      Enable logging to help you figure out why Cursor Lock might be closing prematurely. The most common cause, though, is with Program Mode if the program to lock opens and then closes for some reason, causing Cursor Lock to also open and close. It can happen so fast that you can’t even see it in Task Manager.

      When in doubt, just use User Mode.

  7. Ed USA says:

    Hi. I have two (hopefully easy) feature requests that wouldn’t seem too intuitive at first but I guarantee they’d make this program the ultimate thing.

    Request one – Optional horizontal and vertical mouse wrap-around within a locked window
    Request two – Hiding the windows mouse cursor.

    Reason: Not sure if you’re familiar with the program known as ‘Splashtop’ but it’s basically a PC remote control program that’s *almost* perfect for remote gaming. Where they are almost perfect is in the area of mouse control for FPS games. With this program and those two feature additions you’d be a god among Splashtop users.

    • Snake USA says:

      Interesting ideas, but I think they’re out of the scope of Cursor Lock. I can’t think of any applications for cursor wrapping; most FPS games read raw input and don’t care where the cursor is on the screen. Hiding the cursor is certainly doable, but again I don’t know of any applications where you’d want to do this (and also use Cursor Lock) and I’m sure there are tools to do this already.

      From my brief inspection, Splashtop doesn’t seem to be a unique bit of software. Lots of companies are working on remote access tools and specifically ones for gaming. I’d suggest that your problems need to be addressed by the remote access application.

  8. Thomas C USA says:

    Hi! I’m on windows 7, playing Quest for Glory 2 VGA remake, 640×480 window mode, using User Mode with locking Window Interior.

    When I’m on the farthest edge, the regular window cursor appears it doesn’t register clicks inside the game. I made an animated gif recording of this:

    https://gyazo.com/2e0000848888873d35648fb91b2b7cc9

    Hm that’s strange. The screen capture shows the mouse all the way out of the window interior, but it’s really not. When I’m not recording it, the mouse cursor is inside the border.

    Anyway, yeah, it’s not registering clicks when I’m on the farthest edge. Is there any way to fix it? Thanks :)

    • Snake USA says:

      Interesting. It looks like it might be due to the Windows theme that the program is using, such that Windows thinks the game window dimensions are different than the game thinks they are. And since the “window interior” region is based on what Windows is reporting, that might cause your problem. You might try fiddling with compatibility settings for the program. Otherwise, I’m not sure how you might further explore what the problem is except with a developer tool like Spy++.

  9. daldaren USA says:

    So I installed this for trying something with Baldur’s Gate Enhanced Edition on Windows 10. Tested what I needed to, and then tried to uninstall. It wasn’t listed as an Application in the windows 10 Program’s list, so I searched here an saw it mentioned to manually delete the program.

    Unfortunately, Windows 10 didn’t like that. I now have a blank listing in my Start -> All Apps, and when I open the file location, it just goes no where. Kind of annoying, so I tried ccleaner to just delete the extension. Nope.

    Any thoughts on how I can fix this, because this is going to give me Windows 10 PTSD.

    • Snake USA says:

      The start menu is just a special directory. In Windows 10, it should be located at %ProgramData%\Microsoft\Windows\Start Menu\Programs. Failing that, you might just need to refresh the start menu somehow. Had a zombie shortcut on my start menu recently, and that one did have an uninstaller.

  10. Kat USA says:

    Confirmed working for Star wars The Old Republic. Thank you so much for this. It’s awesome. Working as intended and makes gaming SO MUCH EASIER!

  11. fairfolk1 USA says:

    Hello. What would I do if I wanted to lock onto a window that was forced into window mode through adding -win to the target?

    • Snake USA says:

      All you have to do is use lock region of window interior. If you need to know more, read the manual.

      • fairfolk1 USA says:

        I’ve done so, and it doesn’t detail what to do if you forced it into windows mode. I’ve tried to do what you said for Warcraft 3 below (Adding -window to args), tried targetting the original file and shortcuts, but whenever I open the cursorlock shortcut it is resumes back to fullscreen.

        Another problem is when I target another game I get the error “unable to init draw”. I’m guessing this is game side and it’s just not compatible with Cursorlock, but worth an ask anyways.

        • fairfolk1 USA says:

          Urgh, ignore the top one…I went back and realized there’s a checkbox next to args. I’m an idiot. Unable to init draw still stands though.

          • Snake USA says:

            AFAIK, Cursor Lock has no incompatibilities with any other programs. It works on a level that games don’t even know it’s there. I would guess it has more to do with Warcraft 3. I fact, I remember having problems myself when I tried to play it on Windows 7 recently, so maybe google a bit on it.

  12. Bobby USA says:

    Hello, first of all I would like to thank the developers of this software! However, I have noticed a slight nuisance that I believe is not working correctly on my Windows 8.1 machine. I am trying to create a “user strict” mode in which TAB is used to lock/unlock the screen and ESC is used to stop the program so that TAB will no longer act exclusively as the screen lock. TAB works fine, but I am noticing that ESC is not killing the process, is this what the “Close lock program/unlock hotkey” checkbox is supposed to complete?

    • Snake USA says:

      I’m surprised that Tab alone can be used as a hotkey. I wouldn’t recommend using either tab or esc as hotkeys as they can often interfere with existing program functions. You should always use a modifier key like shift, ctrl, alt, or win when specifying hotkeys for Cursor Lock.

  13. Need something to lock my cursor for Fallout: New Vegas. This app worked once before, but now will not lock the cursor to the game window, either with a program shortcut or with “user mode strict”. With the latter, it will work for other program windows, but not with the game.

    • Snake USA says:

      Well, I have Fallout NV, so I can confirm that Cursor Lock works with it. Make sure FalloutNV.exe is set as the lock program. If you still can’t get it to work, consult the log file.

  14. Chester Honn USA says:

    I’ve been successful with the software working for most of my games, but I’m confused on how to get this to work with Minecraft. Is it possible?

Leave a Reply