Jump to content

Local Area Connection


Recommended Posts

:D

newbie here

Is there a way to start the Local Area Connection properties, cos i want to set EAP type

I know how to start the network connection window but i cant get to lan properties.

when i look with autoit window spy, i don't see any control only sees (Hidden Window Text) 3 objects

Any ideas?

Link to comment
Share on other sites

Using the netsh.exe command from the commandline may be helpful. Examples-

netsh int ip set addr lo static 192.168.0.23 255.255.255.0 192.168.0.1 1

netsh int ip set dns lo static 4.2.2.4 primary

netsh int ip set addr lo dhcp

netsh int ip set dns lo dhcp

More info at http://support.microsoft.com/default.aspx?kbid=242468 ( 242468 - How to Use the Netsh.exe Tool and Command-Line Switches )

As close as I can get to opening local area connection is....

%SystemRoot%\System32\control.exe /NCpa.cpl

but I can't find that exact command to open it up... anybody else???

Various control panel extensions... http://perso.wanadoo.fr/tmcd2/CPL.htm

Edited by autoitNOW
An ADVOCATE for AutoIT
Link to comment
Share on other sites

  • Developers

here's a post with lost ofinfo on controlpanel functions: #12959

Edited by JdeB

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

I tried the following on Windows XP. Maybe it could help:

Opt("WinTitleMatchMode", 4) ;1=start, 2=subStr, 3=exact, 4=...
Run("explorer.exe /root,::{7007ACC7-3202-11D1-AAD2-00805FC1270E}")
WinWaitActive("classname=CabinetWClass")
Send("{Up}{AppsKey}r")
sleep(100)
WinClose("classname=CabinetWClass")

Edit: Bugfix

Edited by CyberSlug
Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Link to comment
Share on other sites

thanks everyone for the reply.

I managed to do it this way, but it don't work on every workstation.

I don't know what it is, i don't see where it go wrong

can anyone give a comment.

script

; ----------------------------------------------------------------------------
;
; AutoIt Version: 3.0
; Language: English
; Platform: Win9x / NT
; Author: A.N.Other <myemail@nowhere.com>
;
; Script Function:
; Template AutoIt script.
;
; ----------------------------------------------------------------------------


; ----------------------------------------------------------------------------
; Set up our defaults
; ----------------------------------------------------------------------------

;AutoItSetOption("MustDeclareVars", 1)
;AutoItSetOption("MouseCoordMode", 0)
;AutoItSetOption("PixelCoordMode", 0)
AutoItSetOption("RunErrorsFatal", 0)
AutoItSetOption("TrayIconDebug", 1)
AutoItSetOption("WinTitleMatchMode", 4)


; ----------------------------------------------------------------------------
; Script Start
; ----------------------------------------------------------------------------

Send("{LWINDOWN}")
Send("{LWINUP}")
WinSetState ( "classname=Shell_TrayWnd", "Start", @SW_MAXIMIZE)
Send("{S}")
Send("{N}")
Send("{L}")
Send("{P}")
WinActivate("Local Area Connection Status", "General")
ControlClick("Local Area Connection Status", "General", "&Properties", "left", 1)
WinActivate("Local Area Connection Status", "")
WinClose("Local Area Connection Status", "")
Send("^{TAB}")
WinActivate("Local Area Connection Status", "Authentication")
ControlClick("Local Area Connection Status", "Authentication", "&type:", "left",1)
Send("!t")
Send("s")
Send("{TAB}")
Send("{TAB}")
Send("{TAB}")
Send("{TAB}")
Send("{Enter}")
Link to comment
Share on other sites

Your Send statements can be simplified as follows:

Send("{LWIN}snlp")

It's a good idea to use lowercase letters, and you do not need to put braces {} around them.

Now this will fail on my computer because my Start Menu contains a top-level entry named "SciTE". Consequently, Sending "S" will select SciTE instead of opening "Settings".... Also, Windows XP has a different start menu by default.

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
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...