触摸精灵吧 关注:11,857贴子:44,860
  • 2回复贴,共1
大神,给个播放音乐的脚本!谢谢了!最好简单一点的!


来自Android客户端1楼2015-11-09 21:24回复
    UI={}
    SE={}
    for mp3 in io.popen("find /User/Media/iTunes_Control/Music/*/*.mp3"):lines() do
    table.insert(SE,string.match(mp3,"[^/]+$"))
    end
    if #SE>0 then
    UI[#UI+1]={'DropList{'..table.concat(SE,'|')..'}','mp3','音乐'}
    end
    function main()
    if drop then
    package.path="find /var/touchelf/scripts/*.lua /var/touchelf/scripts/*.lua.E2"
    require("")
    notifyMessage("正在播放",5000)
    end
    end--好像没错···大概意思是这样的 没试 拿去看看


    IP属地:重庆3楼2015-11-11 00:45
    回复