如何使用Dragon NaturallySpeaking的高级脚本弹出CD-ROM驱动器?

时间:2017-06-04 14:37:01

标签: windows disk cd-rom naturallyspeaking

有没有办法用Dragon NaturallySpeaking的高级脚本弹出CD-ROM驱动器?

1 个答案:

答案 0 :(得分:2)

您可以使用Windows Multimedia API (also known as WinMM)



    void Send(string MessageType, string Data)
    {
        Message message = new Message();
        message.MessageType = MessageType;
        message.MessageData = Data;
        byte[] byteData = Serializer.Serialize(message); // SERIALIZE

        // Send the data
        stream.Write(byteData, 0, byteData.Length);
    }

    Message Receive()
    {
        stream.Read(bytes, 0, bytes.Length);
        Message message = Serializer.Deserialize(bytes); // DESERIALIZE
        return message;
    }

sourcemirror