function OnEvent(event, arg) if (event == "PROFILE_ACTIVATED") then EnablePrimaryMouseButtonEvents(true) end if (event == "MOUSE_BUTTON_PRESSED" and arg == 2) then repeat if not IsMouseButtonPressed(1) then break end until not IsMouseButtonPressed(1) end end