コード例 #1
0
ファイル: Cortana.cs プロジェクト: Captwalloper/Reveille
 /// <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);
 }