简体   繁体   English

如何在启动时在前台运行UWP应用程序?

[英]How can I run an UWP app on foreground at startup?

I'm trying to solve a problem related to run an UWP app on top at startup (with Winodws 10). 我正在尝试解决与在启动时运行UWP应用程序相关的问题(使用Winodws 10)。

I already put the app in the autorun applications but it always runs in background (the application is opened and if I click on the icon in the application bar I can see it). 我已经将应用程序放在自动运行应用程序中,但它总是在后台运行(应用程序已打开,如果我单击应用程序栏中的图标,我可以看到它)。 Unfortunately, I would like that it runs automatically on top. 不幸的是,我希望它在顶部自动运行。

How can I solve it? 我该如何解决?

@Xavier Xie We are also facing the same problem, what we are trying to build is a Windows 10 IoT machine that displays latest contents in fullscreen from a server automatically whenever the machine is started up / restart. @Xavier Xie我们也@Xavier Xie了同样的问题,我们正在尝试构建的是一台Windows 10物联网机器,只要机器启动/重启,它就会自动从服务器全屏显示最新内容。 Tried with StartupTask but it only brings up the App minimized / suspended at Windows startup. 尝试使用StartupTask但它只会在Windows启动时调出最小化/暂停的应用程序。

The only way workaround for now is to drag a shortcut link of the installed UWP App into the startup folder. 现在解决方法的唯一方法是将已安装的UWP App的快捷方式链接拖到启动文件夹中。 (type "shell:startup" in Explorer) Not as elegant and automatic but it works. (在资源管理器中输入“shell:startup”)不是优雅和自动但它的工作原理。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM