I have a script that brings up a folder on my MP3 SD Drive but it opens multiple windows instead of an existing window if that window is open. It looks like WinExist doesn't recognize the window. If I run Window Spy it shows:
Code: Select all
M:\Podcastsd
ahk_class CabinetWClass
ahk_exe explorer.exe
ahk_pid 21500
Code: Select all
#^!m::
SetTitleMatchMode,3
IfWinExist, "M:\Podcastsd"
{
WinActivate "M:\Podcastsd"
}
else
{
Run, EXPLORER.EXE /e`, "M:\Podcastsd"
}
return