예제 #1
0
 public AutoLister(ClientConfig clientConfig, EveUi eveUi, Paths paths, Character character,
     Modules modules, OrderAnalyzer orderAnalyzer)
     : base(clientConfig, eveUi, paths, character, modules, orderAnalyzer)
 {
     _marketOrderio = new MarketOrderio {Path = paths.LogPath};
     FreeOrders = 0;
     _pixelReader = new PixelReader();
 }
예제 #2
0
 public LoginBot(ClientConfig clientConfig, EveUi eveUi, Paths paths, Character character,
     OrderAnalyzer orderAnalyzer
     )
     : base(clientConfig, eveUi, paths, character, orderAnalyzer)
 {
     _pixelReader = new PixelReader(EveUi.CharacterSelectActiveSlot[0] - 5,
                                   EveUi.CharacterSelectActiveSlot[1] - 5);
 }
예제 #3
0
        private void NavigateToInvestmentsPage(string pageIdentifier)
        {
            const int tries = 6;
            for (int i = 0; i < tries; i++)
            {
                try
                {

                    InputValue(4, 2, EveUi.BrowserUrlBar, EtConstants.InGameBrowserLocalFileUrlPrefix + Paths.WebDropboxPath + EtConstants.MarketSearchHtml);
                    Keyboard.Send("{ENTER}");
                    PixelReader pixelReader = new PixelReader();
                    string discoveredColor = pixelReader.GetPixelHexColor(EveUi.InvestmentPageIdentifier[0], EveUi.InvestmentPageIdentifier[1]);
                    if (discoveredColor.Equals(pageIdentifier))
                    {
                        Mouse.WaitDuration = Timing;
                        return;
                    }
                }
                catch
                {
                }
                Mouse.WaitDuration *= 2;
            }
            Mouse.WaitDuration = Timing;
            throw new Exception("Failed to navigate to investments page!");
        }