以全屏模式启动 Microsoft Edge

2024-07-04

我正在修理几台用作数字标牌的计算机。因此,我需要一个脚本来在启动时全屏启动 Microsoft Edge。我在设置中设置为默认网站,但我不知道如何全屏启动应用程序,有什么想法吗?


通过更改发布的脚本https://superuser.com/questions/1090711/start-microsoft-edge-maximized-on-first-run https://superuser.com/questions/1090711/start-microsoft-edge-maximized-on-first-run我能够在启动时全屏显示 Microsoft Edge 应用程序。

start microsoft-edge:http://google.com
>> $wshell = New-Object -ComObject wscript.shell;
>> $wshell.AppActivate('Google - Microsoft Edge')
>> Sleep 2
>> $wshell.SendKeys('{F11}')

谢谢如何发送 CTRL 或 ALT + 任何其他键? https://stackoverflow.com/questions/19824799/how-to-send-ctrl-or-alt-any-other-key我找到了 F11 的正确键并使脚本正常工作。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

以全屏模式启动 Microsoft Edge 的相关文章

随机推荐