コード例 #1
0
        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();
        }
コード例 #2
0
 private void SendKey(string key, int delay)
 {
     KeystrokeService.SendSingleKeyPress(key);
     Thread.Sleep(delay);
 }
コード例 #3
0
 public GalaxyMapInteractor(GalaxyMapInteractorSettings settings)
 {
     _settings = settings;
     KeystrokeService.SetKeyPressDuration(settings.KeyDownDuration);
 }