function OnEvent(event, arg)
if (event == "MOUSE_BUTTON_PRESSED" and arg == 7) then
-- Mouse Button 6 has been pressed
SetMouseDPITableIndex(1);
PressMouseButton(3);
end
if (event == "MOUSE_BUTTON_RELEASED" and arg == 7) then
-- Mouse Button 6 has been released
SetMouseDPITableIndex(3);
ReleaseMouseButton(3);
end
end