示例#1
0
 /// <summary>
 /// Run the command in text mode (as opposed to voice mode). 
 /// </summary>
 public static async Task RunAsTextCommand(CortanaCommand command)
 {
     // Store argument in clipboard
     string rawInput = command.ToInputString();
     ClipboardHelper.CopyToClipboard(rawInput);
     // Run the closest thing to Cortana command line I have
     const string filename = "Cortanahk.ahk";
     await FileHelper.Run(filename);
 }
示例#2
0
 async Task IAppPage.RespondToVoice(CortanaCommand command)
 {
     await viewModel.RespondToVoice(command);
 }