0
点赞
收藏
分享

微信扫一扫

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

楚木巽 2023-04-24 阅读 57


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 条评论