Autohotkey 自动热键中的“Internet协议版本4(TCP/IPv4)”

Autohotkey 自动热键中的“Internet协议版本4(TCP/IPv4)”,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 Wi

这个自动热键程序只会帮我一部分。 我需要选择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

我假设您想更改设备的IP地址

更改ip和网关:

Run, PowerShell New-NetIPAddress –InterfaceAlias “Wireless Network Connection” –IPv4Address “192.168.0.1” –PrefixLength 24 -DefaultGateway 192.168.0.254
更改主dns服务器和辅助dns服务器:

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