FrmCover: Ignore exceptions moving mouse

This commit is contained in:
2018-02-23 07:13:26 +01:00
parent 622b9d858b
commit 32e064fe10

View File

@@ -66,10 +66,13 @@ namespace VAR.Toolbox.UI
private void timer_Tick(object sender, EventArgs e)
{
Mouse.Move(
(rnd.Next() % 11) - 5,
(rnd.Next() % 11) - 5);
try
{
Mouse.Move(
(rnd.Next() % 11) - 5,
(rnd.Next() % 11) - 5);
}
catch (Exception) { } // ignore exceptions moving mouse
_timer.Stop();
_timer.Start();
}