能否使用按键作为事件或使用相同的按键更改配置文件?

    EnablePrimaryMouseButtonEvents(true);
    function OnEvent(event, arg)

            if (event == "MOUSE_BUTTON_PRESSED" and arg == 5) then
            profile = 1
        elseif (event == "MOUSE_BUTTON_PRESSED" and arg == 4) then
            profile = 2
        end

        if (event == "MOUSE_BUTTON_PRESSED" and arg == 1) then

            repeat
                if profile == 1 then
OutputLCDMessage("苹果")

                elseif profile == 2 then
OutputLCDMessage("橙子")

                end
            until not IsMouseButtonPressed(1)

        end
    end

能否使用按键 A 切换到配置文件1,按键 B 切换到配置文件2?

或者是否有办法使用鼠标5在各个配置文件之间切换?

谢谢

点赞