有没有办法用Dragon NaturallySpeaking的高级脚本弹出CD-ROM驱动器?
答案 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;
}