/// <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); }
async Task IAppPage.RespondToVoice(CortanaCommand command) { await viewModel.RespondToVoice(command); }