请直接介绍一下SendMCIStr( )的用法

解决方案 »

  1.   

    SendMCIStr调用的是MCISendString.
    MCISendString(command,resultbuf,sizeof(resultbuf),callback);
    其中resultbuf为Pchar,Callback为一个句柄,但命令完成后会发送一个消息给handle的对象。
    command为一个字符串:
    格式为:
    cmd DeviceID flag1 flag2
    可以用format命令进行格式化format('%s %s %s %s',[cmd,deviceid,flag1,flag2]);
    例如:format('%s %s %s %s',['open','abc.wav','waveaudio','alias mywave');
    啊,懒的敲了,太多了,你自己看MSDN吧。因为每个cmd 都有自己的flags,我把Cmd写出来:
    break  
    capability  
    capture  
    close  
    configure  
    copy  
    cue  
    cut  
    delete  
    escape  
    freeze  
    index  
    info  
    list  
    load  
      
    monitor  
    open  
    paste  
    pause  
    play  
    put  
    quality  
    realize  
    record  
    reserve  
    restore  
    resume  
    save  
    seek  
    set  
    setaudio  
    settimecode  
    settuner  
    setvideo  
    signal  
    spin  
    status  
    step  
    stop  
    sysinfo  
    undo  
    unfreeze  
    update  
    where  
    window