static void Main(string[] args) { AutoHotkey.ThreadFromText(""); while (true) { string action = Console.ReadLine(); Console.WriteLine("Responce: {0}", AhkCode.IsExpression(action)); } Console.ReadKey(); }
////TODO //@"C:\Users\Achu\Pictures\SiloCloseButton.png" static void Main(string[] args) { AutoHotkey.ThreadFromText(""); CropCycleConfiguration hdc = new CropCycleConfiguration(); Action.Action cropCycle = hdc.GenerateSeedHarvestAndSell(); Action.Action goHome = hdc.GenerateGoHome(); Action.Action rescureInvalidState = hdc.GetRescueInvalidState(); Console.WriteLine("How many iterations to execute?"); int iterations = 99999; for (int i = 0; i < 5; i++) { Console.WriteLine("Starting in:" + (i + 1)); Thread.Sleep(1000); } StartIterations(cropCycle, goHome, rescureInvalidState, iterations); Console.WriteLine("Press key to exit"); Console.ReadKey(); }