Handling a Browser Pop-up Window that Interfares with the Main Window Using WebBrowser Control

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
A_User
Posts: 36
Joined: 21 Aug 2017, 01:15

Handling a Browser Pop-up Window that Interfares with the Main Window Using WebBrowser Control

21 Aug 2017, 01:48

Hi,

I've been creating a program with AutoHotkey which involves logging-in to a web site and does some automated tasks on the site. I've been trying the WebBrowser (Shell.Explorer ActiveX) control but there is a problem when logging-in to a particular web site that uses a separate pop-up window for authentication.

The normal workflow without WebBrowser control looks like this.

1. Go to My Page (private area) of the site in a main browser window.
2. The user gets redirected to the log in page.
3. The user manually clicks on the "Log in with Google Account".
4. A separate pop-up window opens.
5. The user logs in to Google in the pop-up window.
6. The pop-up window closes automatically.
7. The page of the main window gets redirected to the private area where the user initially tried to open.

It seems that the main window waits for a pop-up to be closed or the pop-up window does something to trigger the redirection in the main window if the login is successful. The problem is when using the WebBrowser control. After the step 6, the main window does not get redirected. I'm guessing the authentication mechanism somehow fails when a browser window is embedded as a control in a GUI

The web site I'm talking about is http://www.mercari.com. It would be appreciated if anybody has a solution. Thank you.

Related: http://baxincc.cc/questions/810663/how- ... -i-created

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: DevWithCoffee, Rohwedder, Sarhad, Scr1pter and 131 guests