start microsoft edge in fullscreen

五迷三道 提交于 2019-12-11 15:15:15

问题


I am repairing a few computers for use as digital signs. I therefore want a script to start Microsoft Edge in fullscreen on boot. The website I set as default in the settings but I have no clue on how to start the app in fullscreen, any ideas?


回答1:


By changing the script posted on https://superuser.com/questions/1090711/start-microsoft-edge-maximized-on-first-run a little I was able to fullscreen the microsoft edge app on launch.

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

Thanks to How to send CTRL or ALT + any other key? I found the proper key for F11 and got the script working.




回答2:


This solution does not work anymore. The issue is the Sendkeys command. It is not supported in universal apps on windows 10. According to this link: https://answers.microsoft.com/en-us/edge/forum/all/always-on-full-screen-mode-in-ms-edge/0650c85e-fe80-451d-a65a-ea2687dd02e1 it is not possible to start edge in full screen mode unless via a GPO.




回答3:


The script above does work, but you have to follow a short process first,

Place the script in the startup folder, (use file explorere and type shell:startup in the address bar).

Manually Run the script, when edge opens in minimised mode, maximise it.

then close edge and run the script again, this time it will open in maximised mode.

Reboot and watch the magic work.



来源:https://stackoverflow.com/questions/51617117/start-microsoft-edge-in-fullscreen

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!