Exemplo n.º 1
0
 //log out is clicked
 private void logOut1_Click(object sender, RoutedEventArgs e)
 {
     label1.Content = "Logged off...";
     SteamBotController.logBotOff();
     logIn1.IsEnabled  = true;
     logOut1.IsEnabled = false;
 }
Exemplo n.º 2
0
        string username; // log in on the bot with username and password
        public void Show(string u, string p, MainWindow backHandle)
        {
            logIn1.IsEnabled  = false;
            logOut1.IsEnabled = true;

            this.username = u;
            gameListFile  = username + gameListFile;
            Show();
            do
            {
                Application.Current.Dispatcher.Invoke(DispatcherPriority.Background, new Action(delegate { }));
            } while (!_shown && !SteamBotController.loggedIn);
            SteamBotController.steamLogin(username, p);
            initLogics();
            label1.Content      = "Logged into: " + username;
            openChat1.IsEnabled = SteamTwoProperties.jsonSetting.chatSetting;
            if (SteamTwoProperties.jsonSetting.chatComSetting)
            {
                label3.Content = "Chat Commands: On";
            }
            else
            {
                label3.Content = "Chat Commands: Off";
            }
        }
Exemplo n.º 3
0
 public void setMessage()
 {
     if (friendsList1.SelectedIndex != -1)
     {
         SteamBotController.sendChatMessage(SteamBotController.fObject.get(friendsList1.SelectedIndex).SteamIDObject, textbox1.Text);
     }
 }
Exemplo n.º 4
0
 //sends message
 public void sendMessage()
 {
     if (friendsList1.SelectedIndex != -1)
     {
         SteamBotController.sendChatMessage(AccountController.getAccount(user).getFriend(friendsList1.SelectedIndex).SteamIDObject, textbox1.Text);
     }
 }
Exemplo n.º 5
0
 //log in is clicked
 private void logIn1_Click(object sender, RoutedEventArgs e)
 {
     if (!SteamBotController.loggedIn)
     {
         label1.Content = "Logged into: " + username;
         SteamBotController.logBotIn();
         logIn1.IsEnabled  = false;
         logOut1.IsEnabled = true;
     }
 }
Exemplo n.º 6
0
 //idle button is clicked
 private void idle1_Click(object sender, RoutedEventArgs e)
 {
     if (listView1.SelectedItem != null)
     {
         ListViewItem item = new ListViewItem();
         item = (ListViewItem)listView1.SelectedItem;
         int temp;
         int.TryParse(item.Tag.ToString(), out temp);
         SteamBotController.playGame(temp);
     }
 }
Exemplo n.º 7
0
 //generate games
 private void generateGames()
 {
     try
     {
         Process.Start(new ProcessStartInfo(STEAM_GAME_CONTROLLER, "botgamelist " + SteamBotController.getSteamUserID() + " " + username));
     }
     catch (Exception) { }
     do
     {
         Thread.Sleep(2000);
     } while (!File.Exists(gameListFile));
 }
Exemplo n.º 8
0
 //when bot window is closing
 private void MetroWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     SteamBotController.logBotOff();
     MainWindow.currentHandle.Show();
 }
Exemplo n.º 9
0
 //end bot is clicked
 private void endBot1_Click(object sender, RoutedEventArgs e)
 {
     SteamBotController.logBotOff();
     Close();
 }
Exemplo n.º 10
0
 private void logIn1_Click(object sender, RoutedEventArgs e)
 {
     SteamBotController.logBotIn();
 }