Had to register here to say this will be extremly useful to me. I havent been able to test it yet but if it works consistently it will be fantastic. I have been searching for a way to script this. My own attempts have failed so far. My previous attempt used the following: Run('"' & @WindowsDir & '\System32\rundll32.exe" shell32,Control_RunDLL ncpa.cpl')
WinWaitActive("Network Connections")
Send("{LEFT}")
Send("{ALT}")
Send("{DOWN 10}")
Send("{ENTER}")
WinWaitActive("Wireless Network Connection Properties")
Send("{TAB 8}")
Send("{RIGHT}")
ControlClick("Wireless Network Connection Properties","&Add...",7033)
WinWaitActive("Wireless network properties")
Send("SSID")
ControlClick("Wireless network properties","T&he key is provided for me automatically",6021)
Send("{TAB 8}")
Send("WEPKEY")
Send("{TAB}")
Send("WEPKEY")
ControlClick("Wireless network properties","OK",1)
WinWaitActive("Wireless Network Connection Properties")
ControlClick("Wireless Network Connection Properties","OK",1)
WinWaitActive("Network Connections")
Send("{ALT}")
Send("{DOWN}")
Send("c") This worked sometimes but sometimes the wireless network connection icon would move to the right of the LAN icon. Hopefully I have more luck with the code from tomatthe