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

exe Download Cursor Lock (220.76 kB)

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.

txt Download Cursor Lock Translation Template (7.48 kB)

Changelog

169 Responses to Cursor Lock

  1. Dr_Pizza CAN says:

    Hey I don’t know if it’s been answered but I’ve spent quite a long time trying to get Diablo 2:LOD working windowed with cursor lock. I’ve tried pointing it to open to both Diablo 2.exe and game.exe but it dosent seem to work. For open program args i have -w so its windowed. Is there a solution i missed?

    • Dr_Pizza CAN says:

      Edit: So I decided to try messing around with it again and for some reason pointing it to Game.exe seems to be working now. Works great except when trying to hold teleport and go downwards :p Thanks for the cool program dude~

  2. vlykarye USA says:

    Hello. I’ve recently needed to use a program like this. I’ve found a few, and each of them has it’s pros and cons. I like your program for the most part, but it seems to be buggy and unstable. I was wondering if you’d consider letting someone else work on the project to try to sort out some of the problems that come up for Windows 8 users. If so, please send me an email.

    • Snake USA says:

      Nope, it will remain closed-source. If you want to help, you can tell me what all these bugs are, because I don’t know of any confirmed Windows 8 bugs.

      • vlykarye USA says:

        Fair enough. It was worth a shot, though.
        The main problem I am having is wierd. At first, the hotkey feature was working, and now it isn’t. As for as I know, nothing changed inbetween except making a new shortcut. So, as for as that goes, I doubt you’d be able to help with it, as it’s probably a one-off error with my system. But, if you’ve heard of this problem with others, then I can try to clean install and recreate the problem.

        • Snake USA says:

          I’ve experienced myself at least one game that overrides all hotkeys. When the game had focus, no hotkeys; when the game was minimized, hotkeys worked again. Why a game would do this, I have no idea, but maybe you’re experiencing this, too.

          Play around with it some more, maybe you’ll figure something out. Like maybe use different keys. Or just restart Windows in case some other program is conflicting.

          • vlykarye USA says:

            Ah, ok. That sounds like what’s happening. I’ll try messing with it and see if I can get it to work. Thanks for the replies.

  3. Kond3P FIN says:

    Could you possibly make a feature that would allow to lock the cursor to a specific area? Currently there is screen, window and window interior. My provlem is that the cursor escapes behind the window, although it still is inside the window. It makes Team Fortress 2 lag horribly every time i move the cursor. The further away the cursor escapes from the middle of the screen, the more lag i get.

    • Snake USA says:

      Sounds more like you might not have Cursor Lock setup quite right for TF2. Don’t have the game so I can’t say with any certainty, but there should be no cursor escaping regardless.

      • Kond3P FIN says:

        I had the same lag before I tried Cursor Lock. I hoped it would eliminate the problem, which it did half way. Before I would click out of window during the lag, but the lag problem still persitsts

      • Kond3P FIN says:

        In further testing I noticed that the cursor barely moves from behind the middle of the window before a certain amount of time after a computer restart. I play in borderless windowed mode, but changing to fullscreen has no effect.

  4. Neinn USA says:

    Hello,

    i got 1 more question: is it possible to change the format of the screen (arguments)? Warcraft 3 is a little bit small for my 24″.

  5. nghia tang AUS says:

    does it work for League of legends? im a getting a custom pc soon and would like to know so i would be able to connect dual monitors and have one open for web seaches while playing the game. Thanks in advance

    • Snake USA says:

      I’ve heard that it works fine with LoL, although I can’t confirm it myself. Usually when people want to game on one screen while doing something else on the other, it requires running the game in windowed mode and toggling the cursor lock with hotkeys when you want to switch.

  6. Neinn USA says:

    How do i open Warcraft 3 in windowed mode + lock the mouse there? i really dont know where to put which link in….

  7. Sowsix FRA says:

    I’ve downloaded this for GTA IV
    Using the launcher et the gta exe

    “C:\Program Files (x86)\Cursor Lock\CursorLock.exe” /O:”C:\Program Files (x86)\Rockstar Games Social Club\1_1_3_0\RGSC.exe” /A:”E:\Jeux\Grand Theft Auto IV\GTAIV.exe”

    and it works fine !!
    Thanks a lot !!!!

  8. Mick AUS says:

    Hmmm.
    Whenever i try to open it straight away goes to Cursor Lock has stopped working. Any idea?

    • Snake USA says:

      I’ll need more information. Like what errors (specific error codes, line numbers, or stack traces) it’s giving and what version of Windows you’re using.

      • Mick AUS says:

        Windows 7 Home Premium 64 bit.
        No error codes or anything.
        As soon as i double click on cursorlock or cursorlock setup just comes up with a new window saying it has stopped working with the windows is checking for a solution message then it closes.

        I have no idea lol

        • Snake USA says:

          Yeh, windows isn’t ever going to automatically find a solution, and instead, obfuscates the actual error. Well, unless you can provide more info on the error, all I can recommend is installing or reinstalling .Net 3.5 or maybe try running as admin.

  9. Joseph CAN says:

    Im trying to use Uplay and i cant fine the Appcurser Number is there a path i can use or a number that relates to all the games in Uplay Plaz help and this is for Assassin’s Creed 2 and uplay

  10. highstrike ROU says:

    hi,

    cool program but how do i uninstall it?
    it doesn’t appear in ‘uninstall a program’ list like the other programs i have installed

    thanks

    • Snake USA says:

      this has been asked before. there is no uninstaller. if you want to remove the program, just delete its folder and start menu shortcuts.

  11. /hello PHL says:

    Stopped working

    Problem signature:
    Problem Event Name: CLR20r3
    Problem Signature 01: cursorlocksetup.exe
    Problem Signature 02: 2.6.1.0
    Problem Signature 03: 5230eb33
    Problem Signature 04: CursorLockSetup
    Problem Signature 05: 2.6.1.0
    Problem Signature 06: 5230eb33
    Problem Signature 07: d
    Problem Signature 08: e0
    Problem Signature 09: System.InvalidOperationException
    OS Version: 6.1.7601.2.1.0.256.48
    Locale ID: 1033

    Happens when I open Setup Cursor Lock.

    • Snake USA says:

      Well, based on what you posted, I would say that this is a problem on your end. I would suggest making sure you have .Net 3.5 installed.

  12. kable USA says:

    I cannot get cursor lock to work with watch dogs going threw uplay only if you know how to get the ap id or a way around the ap id I think it would work uplay only NOT steam

  13. nakedfury PRI says:

    Cant make it work for Uplay-Watch Dogs.

    I even tried in user mode and it wont still lock.

    I cant also save the settings since each time I close the program they reset.

    • Snake USA says:

      Can’t really help much with Uplay, unfortunately, as I don’t have it (nor do I want to). I’ve heard that maybe setting up the shortcut to have watchdogs as the “Lock Program” might work more effectively. But in that case, you’ll have to run the Cursor Lock shortcut before then running the game itself.

      I’m also interested in your report of settings not saving. Maybe you can tell me more about your system? Like what OS you are using? Where you installed Cursor Lock to? Whether or not you’re running on a limited account?

      • nakedfury PRI says:

        Windows 7 64bit
        Default install location for cursor lock(Did not change location)
        Did not know there was a special account so probably the most basic.

        I got Watch Dogs directly through Uplay, no steam launching, so I set the uplay launch exe as my Open program and watch dogs.exe as the lock program.

        Hotkeys on:
        ctrl+shift+z first option
        ctrl+shift+x second option

        Default options:
        Lock region: Window

        Creating the shortcut helps launch the launcher and it locks the cursor in a small window until the game starts but then for some reason it stops the lock.

        For user mode the same happens and since I cant seem to change the hotkeys I dont know if its toggled off at start.

        The first time I opened the cursor lock setup window I set the hotkeys on and only checked the first option for the tilde: `
        Now every time I open the setup it reverts back to that first hotkey.

        Also upon first using Start User mode I know the program works because my cursor is locked inside 1 monitor until the game starts after which it stops locking.

        Sorry for long post I wanted to cover every thing in detail.

  14. no_name_4_me USA says:

    Worked on fallout 3 GOTY Thanks

  15. jayrwafu USA says:

    THanks it works… on windowed warcraft 3 .. lock region must be window interior

Leave a Reply