Add IDM support (Internet Download Manager)

This commit is contained in:
ema
2026-04-22 23:12:49 +08:00
parent 652a312cb6
commit 81b5828229
9 changed files with 317 additions and 1 deletions
@@ -23,6 +23,7 @@
#include "Everything.h"
#include "DOpus.h"
#include "MultiCommander.h"
#include "IDMan.h"
using namespace std;
@@ -65,6 +66,13 @@ Shell32::FocusedWindowType Shell32::GetFocusedWindowType()
}
if (wcscmp(classBuffer, L"#32770") == 0)
{
WCHAR titleBuffer[512] = { L'\0' };
GetWindowText(hwndfg, titleBuffer, 512);
if (wcsncmp(titleBuffer, L"Internet Download Manager", 25) == 0)
{
return IDM;
}
if (FindWindowEx(hwndfg, nullptr, L"DUIViewWndClassName", nullptr) != nullptr)
{
if (!HelperMethods::IsExplorerSearchBoxFocused())
@@ -99,6 +107,9 @@ void Shell32::GetCurrentSelection(PWCHAR buffer)
case MULTICOMMANDER:
MultiCommander::GetSelected(buffer);
break;
case IDM:
IDMan::GetSelected(buffer);
break;
default:
break;
}