全屏启动microsoft edge

Ale*_*rVH 2 windows-10 microsoft-edge

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

Ale*_*rVH 6

通过稍微更改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}')
Run Code Online (Sandbox Code Playgroud)

感谢如何发送 CTRL 或 ALT + 任何其他键?我找到了 F11 的正确键并使脚本正常工作。


小智 6

Powershell脚本示例:

start microsoft-edge:https://netflix.com/browse

$wshell = New-Object -ComObject wscript.shell;

$wshell.AppActivate('edge') 

while ($true)
{
    Sleep 2
    $wshell.SendKeys('{f11}')
    exit 
}

exit
Run Code Online (Sandbox Code Playgroud)