Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- This script lowers the DPI when you press the right mouse button.
- Along with adding this script to your profile, you must also do 2 things:
- 1) Add the macros "DPI Up" and "DPI Down" to Commands list in the profile, using the mouse functions option.
- These macros are not to be assigned to any buttons. They just need to be created and sitting in the
- list of commands on the left side of the macro section of this profile.
- 2) You need to create at least 2 DPI settings in the mouse settings of the profile. The default needs to be
- a higher number than at least one other DPI setting.
- When you press the right mouse button, while the profile is active, it will lower the mouse sensitivity
- to a lower DPI setting, and change it back once released.
- ]]--
- function OnEvent(event, gkey, family)
- if event == "MOUSE_BUTTON_PRESSED" and gkey == 2 then
- PlayMacro("DPI Down")
- elseif event == "MOUSE_BUTTON_RELEASED" and gkey == 2 then
- PlayMacro("DPI Up")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement