Logitech LUA脚本:声音无法播放

我正在尝试每次在我的Logitech鼠标上激活一个新的配置文件时,播放一些声音文件,以便我知道我处于哪个配置文件中。但是它似乎不起作用。无论如何,这是一个我的配置文件的代码:

function OnEvent(event, arg)
    if event == "PROFILE_ACTIVATED" then
        OutputDebugMessage([[EXE.]] .. [[SoundPlay ( "C:\LUA files\Files that are NOT to be moved\cork-profile_change.wav" )]])
        Sleep(500)
        OutputDebugMessage([[EXE.]] .. [[SoundPlay ( "C:\LUA files\Files that are NOT to be moved\profile_text_format" )]])
    end
end

你能帮我解决这个问题吗?

点赞