Jump to content

Accessing Adv settings in Network Properties Vista Script


Recommended Posts

; ----------------------------------------------------------------------------
; Setting the programs needed options
; ----------------------------------------------------------------------------
#include <GUIConstants.au3>
#include <Date.au3>
#Include <process.au3>
Opt("GUIOnEventMode", 1)
AutoItSetOption("TrayIconDebug", 1)


; ----------------------------------------------------------------------------
; Set the user options here
; ----------------------------------------------------------------------------
Global $SSID = 'resnetruba'; <<----- SSID Goes HERE !!

; Setting the advanced setting in Network Properties
Run(@ComSpec & " /c " & 'ncpa.cpl', "C:\WINDOWS\system32\dllcache", @SW_HIDE)
sleep (1000)

WinWait ( 'Network Connections' )
if NOT WinActive ( 'Network Connections', '' ) then
    WinActivate ( 'Network Connections' )
endif
WinWaitActive ( 'Network Connections' )
sleep ( 1000 )
Send ( 'wireless' )
sleep ( 1000 )
send ('{Appskey}')
sleep ( 1000 )
send ( 'r' )
sleep (1000)

Here's a small snippet of code that I found that access the advanced settings in Network properties, but for Vista it's not the same location. I've read that it's still the ncpa.cpl file but when I try to execute the start of this script, it throws an error saying it's an unknown command. I was wondering if anyone knew the Run command to access the Adv. settings in network properties

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...