botframework - Cortana Skill - 截取客户端桌面的屏幕截图
问题描述
我使用 MS Bot Framework V4 (Node.js) 构建了 Cortana Skill 并部署在 Azure 中。我可以在支持 Windows 的笔记本电脑中使用 Cortana 调用该技能。
我想触发 Cortana 对运行 Cortana 的客户端桌面进行截图并保存。
不幸的是,Cortana 没有内置的截图功能,所以我想知道这怎么可能。
预先感谢您的建议。
解决方案
幸运的是,Snip and sketch UWP 通过深度链接和晦涩的协议处理程序支持这一点。
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
}
}
});
推荐阅读
- python - 如何使用 python 写入 s3 存储桶
- kotlin - 如何在kotlin中获取字符的unicode值?
- python - 如何使用带有按钮命令的 tkinter 更改根颜色
- r - 我想在 R 中更改 RasterStack 文件中的尺寸
- c# - 登录视图模型。两个构造函数如何在一个类中做到这一点[WPF]
- sql - 如何使用“create table as”和通过 SQL 中的 group by 聚合的日期?
- java - 是否可以设置一个指向多个 mariadb 数据库的测试容器?
- javascript - 部署moralis-admin-cli后如何获取已部署的站点?
- ios - 放大:Expo 无法连接到开发服务器
- html - 如何在不使用最大宽度的情况下避免滚动条?MUI 抽屉问题