Reputation: 93
I built a Cortana Skill using MS Bot Framework V4 (Node.js) and deployed in Azure. I am able to invoke the skill using Cortana within a Windows enabled laptop.
I want to trigger Cortana to take screenshot of the client desktop where Cortana is running and save it.
Unfortunately, Cortana does not have a built-in functionality to take screenshot so I am wondering how would this be possible.
Thank you in advance for your advice.
Upvotes: 1
Views: 387
Reputation: 903
Lucky for you, snip and sketch UWP supports this with deep linking and an obscure protocol handler.
var theURI = encodeURI("ms-screenclip:source=\"cortana\"");
var msg = new builder.Message(session)
.text("Taking a screenshot ")
.speak("Taking a screenshot ")
.sourceEvent(
{
cortana: {
action: {
type: "LaunchUri",
uri: theURI
}
}
});
Upvotes: 1
Reputation: 903
Tools like "Snipping Tool" don't work. However if you see "prtScrn" on your keyboard and click that. A bmp of your desktop will be copied to clipboard, where you can then open "paint" and "paste".
If you don't have a prtScrn button, hit the WIndows key and type "on-screen keyboard". You will see a prtscn button there you can use.
If this is a surface, use FN+spacebar.
Or, you can always download snaggit and use it or its delayed screenshot feature.
Upvotes: 0