Обновление

This commit is contained in:
cfif 2025-07-07 15:12:28 +03:00
parent 76892e6b1c
commit a396aec9ec
8 changed files with 9 additions and 21 deletions

View File

@ -287,7 +287,7 @@ int wmain(int argc, wchar_t* argv[], wchar_t* envp[]) {
if (IsWindowVisible(hwnd) == TRUE) { if (IsWindowVisible(hwnd) == TRUE) {
ShowWindow(hwnd, SW_HIDE); ShowWindow(hwnd, SW_HIDE);
Sleep(3000); Sleep(1000);
break; break;
} }
@ -318,32 +318,20 @@ int wmain(int argc, wchar_t* argv[], wchar_t* envp[]) {
if (compareStruct.error) if (compareStruct.error)
return 3; return 3;
for (int i = 0; i < 5; ++i) {
for (int i = 0; i < 3; ++i) {
compareStruct.regim = REGIM_COMPARE; compareStruct.regim = REGIM_COMPARE;
compareStruct.number = 0; compareStruct.number = 0;
EnumChildWindows(hwnd, enum_wnd_proc, (LPARAM)(&compareStruct)); EnumChildWindows(hwnd, enum_wnd_proc, (LPARAM)(&compareStruct));
}
compareStruct.regim = REGIM_RESULT;
compareStruct.number = 0;
EnumChildWindows(hwnd, enum_wnd_proc, (LPARAM)(&compareStruct));
if (compareStruct.isFindResult) { if (compareStruct.isFindResult) {
printf("Similarity Score:%ls\n", compareStruct.textResult); printf("Similarity Score:%ls\n", compareStruct.textResult);
break;
} }
else {
GetWindowRect(hwnd, &compareStruct.winRect);
compareStruct.regim = REGIM_INIT;
compareStruct.number = 0;
EnumChildWindows(hwnd, enum_wnd_proc, (LPARAM)(&compareStruct));
if (compareStruct.error)
return 3;
for (int i = 0; i < 5; ++i) {
compareStruct.regim = REGIM_COMPARE;
compareStruct.number = 0;
EnumChildWindows(hwnd, enum_wnd_proc, (LPARAM)(&compareStruct));
}
printf("Similarity Score:%ls\n", compareStruct.textResult);
} }

Binary file not shown.

Binary file not shown.

View File

@ -3,5 +3,5 @@
Создание кода завершено Создание кода завершено
1 of 8 functions (12.5%) were compiled, the rest were copied from previous compilation. 1 of 8 functions (12.5%) were compiled, the rest were copied from previous compilation.
0 functions were new in current compilation 0 functions were new in current compilation
0 functions had inline decision re-evaluated but remain unchanged 1 functions had inline decision re-evaluated but remain unchanged
Compare.vcxproj -> C:\VC\Compare\Release\Compare.exe Compare.vcxproj -> C:\VC\Compare\Release\Compare.exe

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.