使用VB自动登录路由器 [英] Router Auto Login using VB

查看:95
本文介绍了使用VB自动登录路由器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有问题为我的路由器自动生成一个程序



如果我打开一个连接示例:192.168.1.1(这是我的路由器IP地址)使用一个带有process.start的按钮()



我无法得到我的路由器菜单HTML页面。因为路由器要求输入用户名和密码



如何自动用VB发送用户名和密码?



有人可以帮我吗?



谢谢。

I have a problem to make a program for autologin my router

if I open a connection example : 192.168.1.1 (this is my router IP Address) using a button with process.start ()

I can not get my router menu HTML pages. because the router ask for the user name and password

How can I send my User Name and Password with VB automatically?

can somebody help me?

Thanks.

推荐答案

请记住,无论如何你可能只会为你的特定路由器工作,更改为我的可能意味着你的应用程序需要更改。



保持对你开始的过程的参考,你可以使用Sendkeys:

Bear in mind that whatever you do will probably only work for your specific router, changing to mine will probably mean your app will need changing.

Keep a reference to the process you start, and you can use Sendkeys:
Dim h As IntPtr = theProcessIJustStarted.MainWindowHandle
SetForegroundWindow(h)
SendKeys.SendWait("MyUserName{TAB}MyPassword{ENTER}")

或类似。


这篇关于使用VB自动登录路由器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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