Method to detect if an MS Windows explorer window is already open the user's desktop, when given a filepath.
e.g. In the below sample image, this user's desktop, the filepath "D:\My Cool Folder" is already open in an explorer window. So the function would return TRUE. Else the function would return FALSE.
Detect if an explorer window with a filepath is already open.
Re: Detect if an explorer window with a filepath is already open.
Hallo,
try:
try:
Code: Select all
FilePath = D:\My Cool Folder
q::ToolTip,% Explorer(FilePath)
Explorer(FilePath)
{
SetTitleMatchMode, 3
Return, !!WinExist(FilePath " ahk_exe Explorer.EXE")
}
Who is online
Users browsing this forum: Joey5 and 327 guests