mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-09 13:16:05 +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();
|
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.
Loading…
Reference in New Issue
Block a user