Обновление
This commit is contained in:
parent
76892e6b1c
commit
a396aec9ec
28
Compare.c
28
Compare.c
|
|
@ -287,7 +287,7 @@ int wmain(int argc, wchar_t* argv[], wchar_t* envp[]) {
|
|||
|
||||
if (IsWindowVisible(hwnd) == TRUE) {
|
||||
ShowWindow(hwnd, SW_HIDE);
|
||||
Sleep(3000);
|
||||
Sleep(1000);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
@ -318,34 +318,22 @@ int wmain(int argc, wchar_t* argv[], wchar_t* envp[]) {
|
|||
if (compareStruct.error)
|
||||
return 3;
|
||||
|
||||
for (int i = 0; i < 5; ++i) {
|
||||
|
||||
for (int i = 0; i < 3; ++i) {
|
||||
compareStruct.regim = REGIM_COMPARE;
|
||||
compareStruct.number = 0;
|
||||
EnumChildWindows(hwnd, enum_wnd_proc, (LPARAM)(&compareStruct));
|
||||
}
|
||||
|
||||
if (compareStruct.isFindResult) {
|
||||
printf("Similarity Score:%ls\n", compareStruct.textResult);
|
||||
}
|
||||
else {
|
||||
GetWindowRect(hwnd, &compareStruct.winRect);
|
||||
compareStruct.regim = REGIM_INIT;
|
||||
compareStruct.regim = REGIM_RESULT;
|
||||
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));
|
||||
if (compareStruct.isFindResult) {
|
||||
printf("Similarity Score:%ls\n", compareStruct.textResult);
|
||||
break;
|
||||
}
|
||||
|
||||
printf("Similarity Score:%ls\n", compareStruct.textResult);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
timeKillEvent(timerUpdate);
|
||||
|
||||
|
|
|
|||
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.
|
||||
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
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue