[FUNC]如何取得 windows资源浏览器 的当前路径

楚木巽

关注

阅读 57

2023-04-24


F1:: ;get the path for folders/special folders/Control Panel items
WinGet, hWnd, ID, A

for oWin in ComObjCreate("Shell.Application").Windows
	if (oWin.HWND = hWnd)
	{
    try MsgBox % oWin.Document.Folder.Self.Path
	}
return

 

以下为2016年发布的 

ControlGetText,folder, ToolbarWindow322,ahk_class CabinetWClass
folder:=StrReplace(folder,"地址:","")
MsgBox %folder%

 


精彩评论(0)

0 0 举报