You need Mercuryus's useDLL file (might of misspelled his name) but I got one off a mate of mine and it works great.
Its a script which calls on Window functions to cage the cursor within the game window.
Search Mercuryus and message him, it might help.