Advertisement
bystander36

(Test script)

Apr 5th, 2019
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. function OnEvent(event, arg)
  2.     if event == "PROFILE_ACTIVATED" then
  3.         EnablePrimaryMouseButtonEvents(true)
  4.     elseif event == "MOUSE_BUTTON_PRESSED" and arg == 1 then
  5.         if IsKeyLockOn("numlock") and IsMouseButtonPressed(3) then
  6.             PlayMacro("DPI Down")
  7.             _LOW_DPI = true
  8.         end
  9.     elseif event == "MOUSE_BUTTON_RELEASED" and arg == 1 then
  10.         if _LOW_DPI then
  11.             PlayMacro("DPI Up")
  12.             _LOW_DPI = nil
  13.         end
  14.     end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement