cortana

How to extract the argument from a Cortana command with a phrase topic, activated via text?

杀马特。学长 韩版系。学妹 提交于 2019-12-07 06:01:11
问题 High Level: I want to use my custom Cortana command "Notepad" in TEXT mode. For instance, by pressing WIN+S and typing "appname Notepad Example sentence!". (This will open Notepad and input "Example sentence!".) The Notepad command already works in VOICE mode: when I press WIN+C and say "appname Notepad Example sentence!", my notepad script is run with the payload "Example sentence!". The Problem: When I press WIN+S and input "appname Notepad Example sentence!", the text property of

Minimize UWP application to system tray

风流意气都作罢 提交于 2019-12-07 05:28:30
问题 Is there a way to minimize a windows 10 UWP application to the system tray. I've tried googling about this but all i can see is about wpf and windows forms. Thanks. 回答1: This isn't possible. However, according to your description in the comments it is not needed, Cortana will launch your app. You probably have some other problems in handling arguments and finding which methods to override, but as there is nothing specific in your question about that, I can only guess... 来源: https:/

Set Clipboard content in Cortana background task

北城余情 提交于 2019-12-06 13:51:53
问题 I am trying to add content to the Clipboard in a background task but I can't get it to work. here is my Code: var dataPackage = new DataPackage { RequestedOperation = DataPackageOperation.Copy }; dataPackage.SetText("EUREKA!"); Clipboard.Flush(); Clipboard.SetContent(dataPackage); I get the error Message: Activating a single-threaded class from MTA is not supported (Exception from HRESULT: 0x8000001D) System.Exception {System.Runtime.InteropServices.COMException} I found a similar question

Is there any way to invoke a Cortana response without user input?

我们两清 提交于 2019-12-06 03:28:05
I have an app I am working on for Windows 10 which should notify a user when external data reaches a certain threshold. While I can simply use Windows Notifications (and will fall back on them), I'd really like to do more integration with Cortana. (Voice activation and natural searching will be available.) Is there any way to have Cortana notify the user when the change is triggered (either with speech or via a new item on her dashboard) without a user specifically asking her? I was (and still "is", actually) also very interested in this kind of things, but as far as I could see it the only

How to extract the argument from a Cortana command with a phrase topic, activated via text?

◇◆丶佛笑我妖孽 提交于 2019-12-05 12:17:03
High Level: I want to use my custom Cortana command "Notepad" in TEXT mode. For instance, by pressing WIN+S and typing "appname Notepad Example sentence!". (This will open Notepad and input "Example sentence!".) The Notepad command already works in VOICE mode: when I press WIN+C and say "appname Notepad Example sentence!", my notepad script is run with the payload "Example sentence!". The Problem: When I press WIN+S and input "appname Notepad Example sentence!", the text property of SpeechRecognitionResult is "Notepad ..." (as opposed to voice where it is "Notepad Example sentence!", as

Minimize UWP application to system tray

最后都变了- 提交于 2019-12-05 10:50:31
Is there a way to minimize a windows 10 UWP application to the system tray. I've tried googling about this but all i can see is about wpf and windows forms. Thanks. This isn't possible. However, according to your description in the comments it is not needed, Cortana will launch your app. You probably have some other problems in handling arguments and finding which methods to override, but as there is nothing specific in your question about that, I can only guess... 来源: https://stackoverflow.com/questions/35310926/minimize-uwp-application-to-system-tray

How to connect Cortana commands to custom scripts?

与世无争的帅哥 提交于 2019-12-04 07:46:07
问题 This may be a little early to ask this, but I'm running Windows 10 Technical Preview Build 10122. I'd like to set up Cortana to have custom commands. Here's how she works: Hey Cortana, <she'll listen and process this command> Microsoft will process the command and if there isn't anything for it, she'll just search the input on bing. However, I'd like to be able to say something like, just for example Hey Cortana, I'm going to bed now And have the input I'm going to bed now trigger run a batch

Are Cortana APIs available for desktop applications?

半世苍凉 提交于 2019-12-03 10:03:27
问题 I want to develop a Windows application on Windows 10 using the new Cortana engine. Unfortunately as far as I know, it seems to be available only on Windows Phone 8.1 project (for instance, I didn't find a way to access to the Windows.Media.SpeechRecognition namespace from a different type of Visual Studio project). Also I wasn't able to find a good API documentation, only some very simple examples. Edit: Based on Peter Torr answer I've wrote some code. I've been able to recognize some word

How to connect Cortana commands to custom scripts?

拜拜、爱过 提交于 2019-12-02 14:38:21
This may be a little early to ask this, but I'm running Windows 10 Technical Preview Build 10122. I'd like to set up Cortana to have custom commands. Here's how she works: Hey Cortana, <she'll listen and process this command> Microsoft will process the command and if there isn't anything for it, she'll just search the input on bing. However, I'd like to be able to say something like, just for example Hey Cortana, I'm going to bed now And have the input I'm going to bed now trigger run a batch script, a VBScript, a command, or any some sort some of custom response that basically does the

Cortana skill not working on Windows 10 or iOS

会有一股神秘感。 提交于 2019-12-01 20:24:32
问题 I have added a Cortana skill using Microsoft Bot Framework. My invocation phrase is "My Skill". When I tried to talk to Cortana in iOS or Windows, it doesn't invoke the skill. Instead, it keep directing me to Bing results. Here are the sentences I talked to Cortana: Start My Skill Ask My Skill to Tell My Skill that Anyone advices? 回答1: One friend fixed this issue, so at the moment Cortana only supports English(United States). To fix it, go to Cortana setting (please note , not the OS language