Go Back   Steam Users' Forums > Steam Game Discussions > D - G > Dark Souls

Reply
 
Thread Tools Display Modes
Old 08-23-2012, 07:15 PM   #1
Desi
 
Join Date: Sep 2010
Reputation: 155
Posts: 2,400
Lock cursor to game (Also, hide the cursor!)

  1. Download CursorLock.
  2. Open CursorLockSetup.exe.
  3. Under the Shortcut tab, select Program Mode.
  4. Set DARKSOULS.exe from your Steamapps folder in the Open Program field.
  5. Set DATA.exe (it's in the same folder as DarkSouls.exe) in the Lock Program field.
  6. Click Create Shortcut in the bottom-right and save your shortcut anywhere. I had problems saving to the Desktop, so just try different folders.
  7. Run Dark Souls using this shortcut.

Also a fix for hiding the cursor! Courtesy of ELITEeNergizer:
Quote:
Originally Posted by ELITEeNergizer View Post
I made this autohotkey script using http://www.autohotkey.com/community/...hlight=nomousy

1. Download Autohotkey and install it http://www.autohotkey.com/
2. Right click in a folder to bring up the context then click"New" -> then clicking "Autohotkey Document"
3. Right click the file and click "Edit Script"
4. Copy paste my script
5. Save the file
6. Execute and enjoy. To use it, just execute the script and push Shift and ~ together. ~ is below the escape key.

Code:
#Persistent
SetTitleMatchMode, 3

toggleCursor := 0

#IfWinActive, DARK SOULS
{
	;The "shift+`" key toggles the visibility for your cursor
	~::
		if toggleCursor < 1
		{
		Run, nomousy.exe /hide ;hide cursor
		toggleCursor := 1
		}
		else
		{
		Run, nomousy.exe ;show cursor
		toggleCursor := 0
		}
	Return
}

Last edited by Desi: 08-23-2012 at 09:44 PM.
Desi is offline  
Reply With Quote
Old 08-23-2012, 07:25 PM   #2
TheMetal
 
Join Date: Nov 2009
Reputation: 0
Posts: 101
This needs to be stickied.
TheMetal is offline   Reply With Quote
Old 08-23-2012, 07:25 PM   #3
Wallpaper
 
 
 
Join Date: Aug 2012
Reputation: 0
Posts: 8
thank you good man
Wallpaper is offline   Reply With Quote
Old 08-23-2012, 07:29 PM   #4
Desi
 
Join Date: Sep 2010
Reputation: 155
Posts: 2,400
Yes, I hope this gets stickied.
Desi is offline   Reply With Quote
Old 08-23-2012, 07:43 PM   #5
Sneed
 
Join Date: Feb 2010
Reputation: 0
Posts: 18
It Doesn't work for me
Sneed is offline   Reply With Quote
Old 08-23-2012, 07:43 PM   #6
Ardbug
 
Join Date: Mar 2007
Reputation: 534
Posts: 2,255
Quote:
Originally Posted by Sneed View Post
It Doesn't work for me
Same here, pointer is still moving all over the place.
Ardbug is offline   Reply With Quote
Old 08-23-2012, 07:52 PM   #7
BloodyHypocrite
 
Join Date: Nov 2011
Reputation: 4
Posts: 66
Thanks! Any idea of a way to hide the cursor?
BloodyHypocrite is offline   Reply With Quote
Old 08-23-2012, 07:54 PM   #8
ELITEeNergizer
 
Join Date: Mar 2010
Reputation: 5
Posts: 164
I made this autohotkey script using http://www.autohotkey.com/community/...hlight=nomousy

This doesn't lock your mouse but instead hides your mouse.

Here's my autohotkey script:
Quote:
#Persistent

toggleCursor := 0

;See if the active window is DarkSouls
CheckDarkSouls()
{
result := false
WinGet, active_id, ProcessName, A
if active_id = DATA.exe
{
result := true
}
else
result := false
Run, nomousy.exe ;show cursor
toggleCursor := 0
return result
}

#If CheckDarkSouls()




;The "shift+`" key toggles the visibility for your cursor
~::
if toggleCursor < 1
{
Run, nomousy.exe /hide ;hide cursor
toggleCursor := 1
}
else
{
Run, nomousy.exe ;show cursor
toggleCursor := 0
}
Return
To use it, just execute the script and push Shift and ~ together. ~ is below the escape key.




Please put this in the OP.
ELITEeNergizer is offline   Reply With Quote
Old 08-23-2012, 08:00 PM   #9
Stigandr
 
Join Date: Jan 2010
Reputation: 4
Posts: 9
Thanks to both of you! You resolved the one big issue I have with this game.
Stigandr is offline   Reply With Quote
Old 08-23-2012, 08:07 PM   #10
Stigandr
 
Join Date: Jan 2010
Reputation: 4
Posts: 9
Actually, I can't seem to figure out how I'm supposed to run that script. Would you be so kind as to write out a step by step of how to get that script up and running?
Stigandr is offline   Reply With Quote
Old 08-23-2012, 08:12 PM   #11
Desi
 
Join Date: Sep 2010
Reputation: 155
Posts: 2,400
Quote:
Originally Posted by ELITEeNergizer View Post
I made this autohotkey script using http://www.autohotkey.com/community/...hlight=nomousy

This doesn't lock your mouse but instead hides your mouse.
...
Please put this in the OP.
Done, I love Autohotkey.

Quote:
Originally Posted by Stigandr View Post
Actually, I can't seem to figure out how I'm supposed to run that script. Would you be so kind as to write out a step by step of how to get that script up and running?
You download and install Autohotkey, then paste the contents of the script into a new text file with the extension .ahk. Place that script into the same location as NoMousy (another thing you download), and then double-click the script to run it.

Last edited by Desi: 08-23-2012 at 08:15 PM.
Desi is offline   Reply With Quote
Old 08-23-2012, 08:17 PM   #12
ELITEeNergizer
 
Join Date: Mar 2010
Reputation: 5
Posts: 164
Quote:
Originally Posted by Stigandr View Post
Actually, I can't seem to figure out how I'm supposed to run that script. Would you be so kind as to write out a step by step of how to get that script up and running?
1. Download Autohotkey and install it http://www.autohotkey.com/
2. Right click in a folder to bring up the context then click"New" -> then clicking "Autohotkey Document"
3. Right click the file and click "Edit Script"
4. Copy paste my script
5. Save the file
6. Execute and enjoy



Make sure to add this in the OP as well for the newbies.
ELITEeNergizer is offline   Reply With Quote
Old 08-23-2012, 08:18 PM   #13
Stigandr
 
Join Date: Jan 2010
Reputation: 4
Posts: 9
I figured that much out, but every time I try to run the script it says:

Error at line 21.
Line text: #If CheckDarkSouls()
Error: This line does not contain a recognized action.
The program will exit.
Stigandr is offline   Reply With Quote
Old 08-23-2012, 08:19 PM   #14
KariHunter
 
Join Date: Jun 2009
Reputation: 0
Posts: 10
The Cursorlock thing doesn't seem to be working for me, cursor still can wander over to my second monitor.

EDIT : nvm, turns out i put the programs in the wrong way round.

Last edited by KariHunter: 08-23-2012 at 08:23 PM.
KariHunter is offline   Reply With Quote
Old 08-23-2012, 08:20 PM   #15
ELITEeNergizer
 
Join Date: Mar 2010
Reputation: 5
Posts: 164
Quote:
Originally Posted by Stigandr View Post
I figured that much out, but every time I try to run the script it says:

Error at line 21.
Line text: #If CheckDarkSouls()
Error: This line doesnot contain a recognized action.
The program will exit.
You can get rid of that line if you want. That only makes it so it only executes the hiding cursor function when you're in-game. If you get rid of that line, you can execute the hide cursor function without being in-game.
ELITEeNergizer is offline   Reply With Quote
Reply

Go Back   Steam Users' Forums > Steam Game Discussions > D - G > Dark Souls


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -7. The time now is 09:16 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site Content Copyright Valve Corporation 1998-2014, All Rights Reserved.