Jump to content

Hi, I was to have my game sensitivity increase while im RMB (aiming down sight) is pressed and revert back to normal once I let go.


specterbey

Recommended Posts

Posted (edited)

i want my mouse dpi or senstitivity to be lover when i press rmb.i dont have any knowledge on scripting or coding so any help would be great

 

my mouse is logitech g103 and i have ghub downloaded  

Edited by specterbey
  • Wizard
Posted

I did this years ago in Logitech Gaming Software, there it was possible to assign DPI Shift to the right button, then edit an XML file to also do a right click (since assigning the DPI Shift removes the right click).

However I'm not sure this is possible by editing the .db file the settings are stored in now.

Posted (edited)

I imagine you are the same person who asked in our discord, but this short script works for Logitech gaming software, I imagine it also works for G-Hub if it still has the Lua scripting.
If not you could downgrade to the LGS since you have an older mouse which would be supported. The last good version was 9.02.65
 

EnablePrimaryMouseButtonEvents(true);

function OnEvent(event, arg, family)
	if (arg == 2) then
		if (event == "MOUSE_BUTTON_PRESSED") then
			PlayMacro ("DPI Down")
		else if (event == "MOUSE_BUTTON_RELEASED") then
			PlayMacro ("DPI Up")
		end
	end
end
end


You would just need to create 2 DPI's only in the software to toggle between (maybe setup a new profile with them) and then enter the above code in the scripting menu replacing anything that is there. Ensure the software is kept running because scripts don't save to the mouse.

Edited by TheNoobPolice

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...