Обновление
This commit is contained in:
parent
76892e6b1c
commit
a396aec9ec
26
Compare.c
26
Compare.c
|
|
@ -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));
|
||||||
}
|
|
||||||
|
|
||||||
if (compareStruct.isFindResult) {
|
compareStruct.regim = REGIM_RESULT;
|
||||||
printf("Similarity Score:%ls\n", compareStruct.textResult);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
GetWindowRect(hwnd, &compareStruct.winRect);
|
|
||||||
compareStruct.regim = REGIM_INIT;
|
|
||||||
compareStruct.number = 0;
|
compareStruct.number = 0;
|
||||||
EnumChildWindows(hwnd, enum_wnd_proc, (LPARAM)(&compareStruct));
|
EnumChildWindows(hwnd, enum_wnd_proc, (LPARAM)(&compareStruct));
|
||||||
|
|
||||||
if (compareStruct.error)
|
if (compareStruct.isFindResult) {
|
||||||
return 3;
|
printf("Similarity Score:%ls\n", compareStruct.textResult);
|
||||||
|
break;
|
||||||
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.
|
|
@ -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.
Loading…
Reference in New Issue