mouse movement script moves mouse way too fast

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Tactical Shrimp
Posts: 31
Joined: 11 Nov 2015, 22:29

mouse movement script moves mouse way too fast

09 Jul 2016, 18:11

Code: Select all

Gui, Add, DropDownList, w370 vDDL_Text gDDL_Changed, none|Solstice|Pulsar C|Orion
Gui, Show, x356 y116 h452 w373, New GUI Window
Return
#SingleInstance, Force
 
;BlockInput Off
SetDefaultMouseSpeed, 4
 
GuiClose:
ExitApp
 
 
DDL_Changed:
Gui,Submit,Nohide
{
	if (DDL_Text = "Solstice")
	{
		Hotkey,~LButton,Solstice,On
		
	}
	else if((DDL_Text = "Pulsar C"))
	{
		
	
	
	}
	else if((DDL_Text = "Orion"))
	{
		
		
		
	}
	else
	Hotkey,~LButton,Solstice,Off
	return
	
	Solstice:
	while(GetKeyState("LButton", "P"))
	;                                    
	DllCall("mouse_event",uint,1,int,-1,int,1,uint,0,int,0)
	;                                            
	
	return
	
	
	
}
so this script works well however the main function is to have different selections change the mouses speeds in certain directions however with this DLL"mouse event" you cant go under 1 or it wont move however 1 moves this script way too fast and i need it to be slower is there a variable in that line that changes the speed or do i have to use a different method the thing is i had a mouse move function but it doesn't work in my situation being a videogame in windowed fullscreen

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Mateusz53, MrHue, mstrauss2021, Rohwedder, Spawnova and 300 guests