通过microsoft web浏览器控件登录网站 [英] Login to a website through microsoft web browser control

查看:108
本文介绍了通过microsoft web浏览器控件登录网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在基于MFC对话框的应用程序中使用microsoft webbrowser控件。我需要自动登录网站,而无需在网站上输入用户名和密码,但需要输入代码。



请帮忙。

I am using a microsoft webbrowser control in an MFC dialog based application. I need to log in automatically to a website without entering the username and password in the site but in code.

Please help.

推荐答案

如果您尝试输入用户看不到的凭据,我建议您创建一个小的Web浏览器窗口(即1 X 1像素)并在那里输入登录信息,然后(在关闭之前)这个窗口)打开第二个适当大小的窗口到网站感兴趣的页面。打开第二个窗口后,关闭第一个窗口。
If you are trying to enter credentials that are not seen by the user, I would suggest creating a small webbrowser window (ie. 1 X 1 pixel) and enter the login info there, then (before closing this window) open a second properly sized window to the site''s page of interest. After this second window is open, close the first.


感谢您的回复:)

实际上我想跳过登录页面。我想导航到点击登录按钮后出现的页面。

是否可以通过代码传递登录详细信息,以便我可以直接看到第二页?
Thanks for the reply :)
Actually I want to skip the login page. I want to navigate to the page which comes after clicking the login button.
Is it possible to pass the login details through the code, so that I can directly see the second page?


这篇关于通过microsoft web浏览器控件登录网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆