mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-13 21:21:03 +00:00
Update ScreenMatch.cs, ServiceMain.cs
This commit is contained in:
parent
0df9166a13
commit
4e6b63df50
|
@ -284,7 +284,11 @@ public class ScreenMatch
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (results.Count == 0)
|
if (results.Count > 0)
|
||||||
|
{
|
||||||
|
parent.Log("Match found");
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
parent.Log($"No match found");
|
parent.Log($"No match found");
|
||||||
}
|
}
|
||||||
|
|
|
@ -275,7 +275,7 @@ namespace WelsonJS.Service
|
||||||
|
|
||||||
Timer screenTimer = new Timer
|
Timer screenTimer = new Timer
|
||||||
{
|
{
|
||||||
Interval = 5000 // 5 seconds
|
Interval = 1000 // 1 seconds
|
||||||
};
|
};
|
||||||
screenTimer.Elapsed += OnScreenTime;
|
screenTimer.Elapsed += OnScreenTime;
|
||||||
timers.Add(screenTimer);
|
timers.Add(screenTimer);
|
||||||
|
@ -323,7 +323,7 @@ namespace WelsonJS.Service
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
Log($"Waiting a next screen time: {ex.Message}");
|
Log($"Waiting a next screen time... {ex.Message}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user