Jump to content
Sign in to follow this  
Damastah

Navagate directly to File in Windows Explorer

Recommended Posts

Damastah

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")?

Share this post


Link to post
Share on other sites
billthecreator

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 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

Share this post


Link to post
Share on other sites
Damastah

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.

Share this post


Link to post
Share on other sites
picea892

this works for me

Run("explorer.exe ::{7007ACC7-3202-11D1-AAD2-00805FC1270E}")

WinWaitActive("Network Connections","")

ControlListView("Network Connections","", "SysListView321", "Select",1)

send("{enter}")

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.