Damastah Posted August 12, 2009 Share Posted August 12, 2009 I'm in the Control Panel under Network Connections and I want to get to the properties of the Local Area Connection. I know that all new computers have this connection and therefore, the icon will always be there. When the window loads, I want to tell the script to go straight to this connection and highlight it. Currently, I'm saying: WinWait("WINDOW") ControlSend("WINDOW","", "blah blah blah {TAB} blah, {RIGHT}{DOWN} blah blah {ENTER}") Is there a better way to say "I want to go straight to the icon named 'Local Area Connection'?" Something similar to how I can activate a window by name using WinActivate("WINDOW_NAME")? Link to comment Share on other sites More sharing options...
billthecreator Posted August 12, 2009 Share Posted August 12, 2009 (edited) to go to a file in WE, i normally use this Run('"' & EnvGet('windir') & '\explorer.exe" /select,"' & $FullPathOfFile & '"') ;must have full path for $FullPathOfFile not sure about control panel though.. Edited August 12, 2009 by billthecreator [font=Microsoft Sans Serif]My Scripts: From Most recent to least.[/font]Countdown GUI | QLOCK TWO | FlipClock | Slot Machine My UDF:_GenerateRandomNoRepeat | _GuiSnap Link to comment Share on other sites More sharing options...
Damastah Posted August 12, 2009 Author Share Posted August 12, 2009 I know about that method, But I want to use the WE window that already exists and navigate from there. Because everything doesnt have a physical location and cannot be located using a path. Link to comment Share on other sites More sharing options...
billthecreator Posted August 12, 2009 Share Posted August 12, 2009 then i dont know what to tell you. im stuck there. sorry [font=Microsoft Sans Serif]My Scripts: From Most recent to least.[/font]Countdown GUI | QLOCK TWO | FlipClock | Slot Machine My UDF:_GenerateRandomNoRepeat | _GuiSnap Link to comment Share on other sites More sharing options...
picea892 Posted August 13, 2009 Share Posted August 13, 2009 this works for me Run("explorer.exe ::{7007ACC7-3202-11D1-AAD2-00805FC1270E}") WinWaitActive("Network Connections","") ControlListView("Network Connections","", "SysListView321", "Select",1) send("{enter}") 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