wonder Posted July 1, 2004 Share Posted July 1, 2004 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 More sharing options...
autoitNOW Posted July 1, 2004 Share Posted July 1, 2004 (edited) 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 1netsh int ip set dns lo static 4.2.2.4 primarynetsh int ip set addr lo dhcpnetsh 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.cplbut 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 July 1, 2004 by autoitNOW An ADVOCATE for AutoIT Link to comment Share on other sites More sharing options...
Developers Jos Posted July 1, 2004 Developers Share Posted July 1, 2004 (edited) here's a post with lost ofinfo on controlpanel functions: #12959 Edited July 1, 2004 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 More sharing options...
CyberSlug Posted July 1, 2004 Share Posted July 1, 2004 (edited) 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 July 1, 2004 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 More sharing options...
wonder Posted July 5, 2004 Author Share Posted July 5, 2004 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 expandcollapse popup; ---------------------------------------------------------------------------- ; ; 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 More sharing options...
CyberSlug Posted July 5, 2004 Share Posted July 5, 2004 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now