Update WelsonJS.Service
Some checks are pending
CodeQL / Analyze (csharp) (push) Waiting to run
CodeQL / Analyze (javascript) (push) Waiting to run
CodeQL / Analyze (python) (push) Waiting to run

This commit is contained in:
Namhyeon Go 2024-07-29 22:42:35 +09:00
parent 3b09a47fb8
commit 8f35bfb03b
3 changed files with 10 additions and 11 deletions

View File

@ -220,17 +220,16 @@ namespace WelsonJS.Service
List<ScreenMatchResult> matchedResults = screenMatcher.CaptureAndMatchAllScreens(); List<ScreenMatchResult> matchedResults = screenMatcher.CaptureAndMatchAllScreens();
matchedResults.ForEach(result => matchedResults.ForEach(result =>
{ {
Log(result.FileName); if (result.MaxCorrelation > 0.0) {
Log(result.ScreenNumber.ToString());
Log(result.Location.ToString());
Log(DispatchServiceEvent("screenTime", new string[] Log(DispatchServiceEvent("screenTime", new string[]
{ {
result.FileName, result.FileName,
result.ScreenNumber.ToString(),
result.Location.X.ToString(), result.Location.X.ToString(),
result.Location.Y.ToString(), result.Location.Y.ToString(),
result.MaxCorrelation.ToString() result.MaxCorrelation.ToString()
})); }));
}
}); });
} }
catch (Exception ex) catch (Exception ex)

Binary file not shown.

Binary file not shown.