Jump to content
Sign in to follow this  
Pauletp

How to find full path of current folder in XP explorer

Recommended Posts

Pauletp

Is it possible for AutoIt3 to detect

the current active folder in XP explorer?

or

the directory or file which is highlighted in the current active folder in the XP explorer window?

Many thanks for a tip.

Share this post


Link to post
Share on other sites
d4rk

@ScriptDir
@StarupDir
etc...
etc...

Edited by d4rk

[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

Share this post


Link to post
Share on other sites
herewasplato

...the current active folder in XP explorer? ...

WinGetText will work - but only if you have the "Address Bar" turned on (showing). [Right mouse click on the menu bar and put a check by Address Bar.]

...and turn on the option to "Display the full path in the address bar." You get to that option via the Windows file explorer menu bar Tools > Folder Options > View (tab).

You cannot reply on "Display the full path in the title bar" since will show only a limited number of characters.


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites
Pauletp

WinGetText works to get the path.

Thank you.

Is there also a way to "read" the text highlighted on the screen?

In this case I want to read the file or folder which is highlighted (selected), but I suppose it could also be characters in a Word file.

Many thanks for a tip.

Share this post


Link to post
Share on other sites
herewasplato

...Is there also a way to "read" the text highlighted on the screen?

In this case I want to read the file or folder which is highlighted (selected), but I suppose it could also be characters in a Word file...

I'm not sure how to get the file/characters selected... maybe someone else can chime in.

[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites
martin

I'm not sure how to get the file/characters selected... maybe someone else can chime in.

Wouldn't Send("^c") work?


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites
herewasplato

Thanks martin - maybe:

Send("{F2}^c")
MsgBox(0, "", ClipGet())


[size="1"][font="Arial"].[u].[/u][/font][/size]

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  

×