Edge browser open external window (1 Viewer)

wackywoo105

Registered User.
Local time
Today, 06:12
Joined
Mar 14, 2014
Messages
204
Can anyone help with code to make a form-embedded edge browser window to open into a external edge browser window?

Edit to add: I will be logged into a website and want to stay logged in. I've found a couple buttons within the website that cause this to happen anyway, but I'm not sure why. I'd like to be able to do it for other pages using a form button.
 
Sorry; I'm not clear what you're asking. Do you mean you have an MS Access form with a browser control that displays a web page, and you want a button that opens a separate browser window outside Access and navigates to the same URL shown in the form's browser control?
 
Logging into a website from an external browser won't log you in from the edge browser window, they're both different browsers.

Opening the default external browser could be done with this:
FollowHyperlink "https://www.wikipedia.org"

Opening a particular browser, like Edge, to a website could be done with this:
Shell "C:/Path/To/Edge/msedge.exe https://www.wikipedia.org"

I don't have the Edge browser control, so I can't tell you exactly how to do this using that control, but logging into a website is basically storing a session state somewhere. Sometimes the session state is stored in cookies, sometimes it is stored in the browser's local storage, sometimes the session is stored in memory and it goes away after a refresh, sometimes the session is persisted using a series of conditions, so on and so forth. I hope you get the picture that there are multiple ways to persist a "session" in a browser.

That said, you could extract the session from the external browser and apply it to the browser control, but that depends on what the website considers a valid session and whether the browser control lets you mimic it, so it is up to you to figure that out, all websites are created differently, the good news is that most websites utilize similar session patterns.

Finally, if your end goal is to just log in from the browser control, automate it.
 

Users who are viewing this thread

Back
Top Bottom