切換
舊版
前往
大廳
主題

參數

Atalanta﹏ | 2018-07-09 18:58:44 | 巴幣 2 | 人氣 275

function OnEvent(event, arg)
    OutputLogMessage("event = %s, arg = %s\n", event, arg)
    if (event == "PROFILE_ACTIVATED") then
        EnablePrimaryMouseButtonEvents(true)
    elseif event == "PROFILE_DEACTIVATED" then
        ReleaseMouseButton(2)  --to prevent it from being stuck on
    end
    if (event == "MOUSE_BUTTON_PRESSED" and arg == 5) then
        recoil = not recoil
        spot = not spot
    end
   if (event == "MOUSE_BUTTON_PRESSED" and arg == 1 and recoil) then
        if recoil then
            repeat
                --Sleep (35)
                Sleep(55)
                MoveMouseRelative(0, 2)
            until not IsMouseButtonPressed(1)
        end
    end
end

創作回應

更多創作