public void FindSystem(string system) { SendKey(_settings.GalaxyMapKey, _settings.GalaxyMapOpenDelay); SendKey(_settings.NextUIPanelKey, _settings.GalaxyMapUINavigateDelay); SendKey(_settings.UISelectKey, _settings.GalaxyMapUINavigateDelay); KeystrokeService.SendKeystrokes(system); KeystrokeService.SendEnter(); }
private void SendKey(string key, int delay) { KeystrokeService.SendSingleKeyPress(key); Thread.Sleep(delay); }
public GalaxyMapInteractor(GalaxyMapInteractorSettings settings) { _settings = settings; KeystrokeService.SetKeyPressDuration(settings.KeyDownDuration); }