public void SetSearchParameters() { switch (SearchObject.Mode) { case RunMode.Player: var player = (Player)SearchObject; MouseController.PerformButtonClick(ButtonTypes.PlayerNameTextbox); Thread.Sleep(1500); KeyboardController.SendInput(player.Name); Thread.Sleep(2200); MouseController.PerformButtonClick(ButtonTypes.PlayerNameTextDrop); Thread.Sleep(1500); MouseController.PerformButtonClick(ButtonTypes.MaxPriceTxt); Thread.Sleep(1500); KeyboardController.SendInput(player.MaxPurchasePrice); return; case RunMode.Consumable: var consumable = (Consumable)SearchObject; MouseController.PerformButtonClick(ButtonTypes.MaxPriceTxt); Thread.Sleep(1500); KeyboardController.SendInput(consumable.MaxPurchasePrice); return; } }
private void SetFilterPrices(int minBid, int minBuy) { MouseController.PerformButtonClick(ButtonTypes.MinBidText); KeyboardController.SendInput(minBid.ToString(), 120); Thread.Sleep(200); MouseController.PerformButtonClick(ButtonTypes.MinBuyText); KeyboardController.SendInput(minBuy.ToString(), 120); }
private void ListOnTransferMarket(int minPrice, int maxPrice) { MouseController.PerformButtonClick(ButtonTypes.ListItemBegin); Thread.Sleep(2000); MouseController.PerformButtonClick(ButtonTypes.ListMinTxt); Thread.Sleep(1500); KeyboardController.SendInput(minPrice.ToString()); Thread.Sleep(1000); MouseController.PerformButtonClick(ButtonTypes.ListMaxTxt); Thread.Sleep(1500); KeyboardController.SendInput(maxPrice.ToString()); Thread.Sleep(1000); MouseController.PerformButtonClick(ButtonTypes.ListItemFinal); }