I couldn't figure out why Desi used a timer so I made my own version.
Took me a while to get it to work to my satisfaction, so I thought I'd share it.
How it's different from Desi's is that it doesn't try to lock the mouse to the game screen, but any clicks outside the game are sent into the game (only time it moves the mouse). Works for both left and right mouse buttons. No configuration needed.
Should work for other games too, if you change the #IfWinActive part.
Here's the readme:
Prevents clicks in AVWW outside the screen in multi monitor setups
Designed to work with the game running on your primary monitor and in full screen mode
Windows Key + Backspace to terminate script or right click on the icon in system tray and click 'Exit'
Script executes only when AVWW is running and active
You can place the script in your windows startup folder and have it running 24/7 without it affecting your computer performance in any way
No configuration necessaryDownload AVVV MouseLock here