142850-automatic-mouse-look-beta-cursor-re-center

== Content ==
			Does anyone else think it would be a good idea to add an option to default the cursor back to the center of the screen when toggling in and out of "Automatic Mouse Look" I keep loosing my cursor at the side of the screen when trying to place teather's ( I play a stalker ) and im sure this is an issue for other class abilities as-well.	
----
			
Yes please. Sometimes it hovers over a tooltip before reengaging which is problematic.
 
I'd also like a "Toggle On/Off" button not a "disable while held" key like in the now defunct addon Steer.	
----
			
{| class="blockquote"
I'd also like a "Toggle On/Off" button not a "disable while held" key like in the now defunct addon Steer.
----
			
I've found a workaround using AutoHotkey.
 
1. Download and open the Executable (link below)
 
2. Start Wildstar
 
3. Re-Bind your "Surpress Mouse Look Toogle" in the options / keybinds menu to "Scroll Lock" this will not be the key you are using but it is important.
 
4. Assign your ground targeted action or spell to the "number 1" keybind
 
5. Use CAPSLOCK to toggle "Surpress Mouse Look Toogle" and "number 1" on the keyboard for your ground targeted action or spell.
 
The script is on a 2 stage toggle so if you're screen jumps about in a jittery manner when using it then it's probably on the wrong toggle state. ( it will still work however, just not as smoothly ) Press escape and hit the Capslock then press escape again to return to the game to resolve this.
 
To use your capslock in game press shift+capslock.
 
p.s. If any mods are reading this im aware that Autohotkey is technically against the Eula if you're using it to gain an unfair advantage or do something you couldn’t normally do without it. As you can easily re-center the mouse yourself without this script I think I should be ok. It's more of a quality of gameplay adjustment.
 
Link to the Executable
https://mega.nz/#!eBNhDI6D!rfLuyUzX28O06wFV4lcHAq3nsSX1EpSQriRsCOE01F0
(select download through your browser option)
 
also here is the code for anyone that's interested in modifying / improving it.
 
SetTitleMatchMode, RegEx#IfWinActive, ^WildStar .*{    +CapsLock::CapsLock    n=0    return    CapsLock::    {        n:=!n        if n=1            {          WinGetPos,,, width, height,A        center_x:=width/2        center_y:=height/2        MouseMove,center_x,center_y        SendInput {ScrollLock}            }        else            {          SendInput {ScrollLock}        WinGetPos,,, width, height,A        center_x:=width/2        center_y:=height/2        MouseMove,center_x,center_y        return            }    return    }    1::    {    SendInput {1}    SendInput {ScrollLock}      WinGetPos,,, width, height,A    center_x:=width/2    center_y:=height/2    MouseMove,center_x,center_y    SendInput {ScrollLock}                        }    return}#NoTrayIcon
			
				
	Edited October 15, 2015 by Si1ic0	
----