An Interest In:
Web News this Week
- March 20, 2024
- March 19, 2024
- March 18, 2024
- March 17, 2024
- March 16, 2024
- March 15, 2024
- March 14, 2024
February 14, 2022 04:01 pm GMT
Original Link: https://dev.to/nightsmore/programatically-starting-a-chromium-page-in-full-screen-net-2f2a
Programatically Starting a Chromium page in Full Screen - .NET
Using the "System.Diagnostics" namespace in .NET, you can Automate launching a page in full-screen using a Chromium browser.
Here's an example written in PowerShell.
$_processInfo = New-Object System.Diagnostics.ProcessStartInfo # use this if you want maximized instead of full-screen for any application. $_processInfo.WindowStyle = [System.Diagnostics.ProcessWindowStyle]::Maximized # Provide the path to the browsers executable$_processInfo.FileName = "C:\Program Files\Google\Chrome\Application\chrome.exe"# Launch in full screen using the flag '--start-fullscreen'$_processInfo.Arguments = "--start-fulscreen", "-app $($URL)"# add the process info and start$_process = New-Object System.Diagnostics.Process$_process.StartInfo = $_processInfo $_process.Start()
Original Link: https://dev.to/nightsmore/programatically-starting-a-chromium-page-in-full-screen-net-2f2a
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To