mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-07 12:16:04 +00:00
Update WelsonJS.Service
This commit is contained in:
parent
3b09a47fb8
commit
8f35bfb03b
|
@ -220,17 +220,16 @@ namespace WelsonJS.Service
|
|||
List<ScreenMatchResult> matchedResults = screenMatcher.CaptureAndMatchAllScreens();
|
||||
matchedResults.ForEach(result =>
|
||||
{
|
||||
Log(result.FileName);
|
||||
Log(result.ScreenNumber.ToString());
|
||||
Log(result.Location.ToString());
|
||||
|
||||
Log(DispatchServiceEvent("screenTime", new string[]
|
||||
{
|
||||
result.FileName,
|
||||
result.Location.X.ToString(),
|
||||
result.Location.Y.ToString(),
|
||||
result.MaxCorrelation.ToString()
|
||||
}));
|
||||
if (result.MaxCorrelation > 0.0) {
|
||||
Log(DispatchServiceEvent("screenTime", new string[]
|
||||
{
|
||||
result.FileName,
|
||||
result.ScreenNumber.ToString(),
|
||||
result.Location.X.ToString(),
|
||||
result.Location.Y.ToString(),
|
||||
result.MaxCorrelation.ToString()
|
||||
}));
|
||||
}
|
||||
});
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user