Nowhere near or in the code does it say that I need extra libraries or a version like Autohotkey-L...
but is that the case?
This is just the latest code I can't run on Win 10 using my v1.1.33.02
Code: Select all
^F1::
WinGet, WinID, ID, ahk_class CabinetWClass
CurrentPath := ExplorerPath(WinID)
MsgBox, % CurrentPath
return
ExplorerPath(_hwnd)
{
for w in ComObjCreate("Shell.Application").Windows
if (w.hwnd = _hwnd)
{
path := StrReplace(w.LocationURL, "file:///")
return StrReplace(path, "%20", " ")
}
}
}