Initial commit
This commit is contained in:
28
VAR.ScreenAutomation/Bots/DummyBot.cs
Normal file
28
VAR.ScreenAutomation/Bots/DummyBot.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System.Drawing;
|
||||
using VAR.ScreenAutomation.Interfaces;
|
||||
|
||||
namespace VAR.ScreenAutomation.Bots
|
||||
{
|
||||
public class DummyBot : IAutomationBot
|
||||
{
|
||||
private int frameCount = 0;
|
||||
|
||||
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}";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user