AutoHotKey中的“Internet协议版本4(TCP / IPv4)”

时间:2015-09-23 12:28:30

标签: autohotkey

这个autohotkey程序只能让我获得部分支持。 我需要选择“Internet协议版本4(TCP / IPv4)”并单击“无线网络连接属性”上的属性

Run ncpa.cpl 
WinWaitActive Network Connections
SendInput {Tab 4}{Right}!{Enter} ; change {Tab 4} to suit the position of  your specific connection in the Connections list
WinWaitActive Wireless Network Connection Properties ; change the title if necessary, for example, if you're on LAN.
SendInput {Down 4}!r

1 个答案:

答案 0 :(得分:0)

我假设您要更改设备的IP地址?

更改IP和网关:

Run, PowerShell New-NetIPAddress –InterfaceAlias “Wireless Network Connection” –IPv4Address “192.168.0.1” –PrefixLength 24 -DefaultGateway 192.168.0.254

更改主要和辅助DNS服务器:

Run, PowerShell Set-DnsClientServerAddress -InterfaceAlias “Wireless Network Connection” -ServerAddresses 192.168.0.1, 192.168.0.2