FrmScreenAutomation: Variable FPS selector.

This commit is contained in:
2019-11-02 22:33:31 +01:00
parent 71ab81e11a
commit d7116687f5
2 changed files with 46 additions and 17 deletions

View File

@@ -40,7 +40,7 @@ namespace VAR.ScreenAutomation
if (components == null) { components = new Container(); }
timTicker = new Timer(components)
{
Interval = 100,
Interval = Convert.ToInt32(1000 / numFPS.Value),
};
timTicker.Tick += TimTicker_Tick;
timTicker.Enabled = true;
@@ -70,6 +70,7 @@ namespace VAR.ScreenAutomation
}
picPreview.ImageShow = bmpScreen;
timTicker.Interval = Convert.ToInt32(1000 / numFPS.Value);
timTicker.Enabled = true;
timTicker.Start();
}