DummyBot: Even more dummy.

This commit is contained in:
2019-11-01 02:38:28 +01:00
parent d3e4e53c1b
commit 1a46040210

View File

@@ -5,26 +5,23 @@ namespace VAR.ScreenAutomation.Bots
{
public class DummyBot : IAutomationBot
{
private int frameCount = 0;
public string Name => "Dummy";
public void Init(IOutputHandler output)
{
frameCount = 0;
output.Clean();
}
public Bitmap Process(Bitmap bmpInput, IOutputHandler output)
{
frameCount++;
output.AddLine(string.Format("Frame: {0}", frameCount));
return bmpInput;
}
public string ResponseKeys()
{
return "{UP}";
// https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.sendkeys?view=netframework-4.8
//return "{UP}";
return string.Empty;
}
}
}