PJBUTLER19
2 discussion posts
I have tried this multiple ways, but wanted to see what was the best way. I would like for when windows starts up, that 3 edge browsers open up to a certain link, go to thier proper screen and open in full screen mode. I have tried with a combination of Windows Position Profiles, Triggers, Functions, but it doesn't seem to work everytime. Was hoping I could just write one function that would open edge to link, move it to monitor and open in full screen mode. Thoughts?
The current method i use, is to having triggers to first call upon display fusion start, call
my Created function that launches edge with --new-window https://www.google.com
_tried adding --start-fullscreen and it doesn't work, also tried --kiosk but it opens in private browsing(so that won't work)
Do this for each edge browser (3 total)
Then run my windows profile position, matching the title names(i think this is what breaks it)- this is also an issue if the header of the webpage changes by a company later on
then call actions to move cursor to next monitor, click and send press f11 (this could also be an issue)
May 9, 2023 (modified May 9, 2023)
•
#1
PJBUTLER19
2 discussion posts
That worked, although i had to do this to get it to do both args, i could have added them down in your code as well i guess.
// Build the command-line arguments
string args = string.Join(" ", websites, 0, websites.Length);
args += " --new-window --start-fullscreen";
// Launch the browser
BFS.Application.Start("C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe", args);
BFS.General.ThreadWait(2000);