new browser size setting for DeepL blocking in hidden mode

This commit is contained in:
Blu3train 2022-04-30 10:13:24 +02:00 committed by Akash Mozumdar
parent 5eaafbe81c
commit 72132239a5

View File

@ -36,11 +36,11 @@ namespace
if (process) DevTools::Close(); if (process) DevTools::Close();
auto args = FormatString( auto args = FormatString(
L"%s --proxy-server=direct:// --disable-extensions --disable-gpu --user-data-dir=\"%s\\devtoolscache\" --remote-debugging-port=9222", L"%s --proxy-server=direct:// --disable-extensions --disable-gpu --no-first-run --user-data-dir=\"%s\\devtoolscache\" --remote-debugging-port=9222",
chromePath, chromePath,
std::filesystem::current_path().wstring() std::filesystem::current_path().wstring()
); );
if (headless) args += L" --headless"; args += headless ? L" --window-size=1920,1080 --headless" : L" --window-size=850,900";
DWORD exitCode = 0; DWORD exitCode = 0;
STARTUPINFOW DUMMY = { sizeof(DUMMY) }; STARTUPINFOW DUMMY = { sizeof(DUMMY) };
PROCESS_INFORMATION processInfo = {}; PROCESS_INFORMATION processInfo = {};