Results 1 to 12 of 12
  1. #1
    ImWhacky's Avatar
    Join Date
    Sep 2015
    Gender
    male
    Posts
    509
    Reputation
    56
    Thanks
    4,059
    My Mood
    Breezy

    Cool Steam Account Manager v1.0 (With Source)


    Features
    13 Different Styles
    2 Themes (Dark and Light)
    Password Encryption
    Open Source (See Below)


    Jotti - Click Here
    VirusTotal - Click Here
    Metascan - Click Here


     
     
    v0.2
    Added a steam.exe selector
    Added account adding
    Added multiple tabs
    Added new dialog for adding accounts instead of having its own tab
    Added Icons to right click menu
    Added close steam option
    Added autoclose SAS on login option
    Added credits dialog
    Fixed reading file bug
    Fixed crashing bug

     
    v0.3
    Added Installer
    Added Uninstaller
    Added many new functions that improve performance throughout the program
    Added Install token now you need to use the installer to be able to use the program
    (important files are imbedded into the installer for safety)
    Added progress bar for installer
    Added previous file checker into installer (automatically removes previous version files before install)

     
    v0.4
    Added progress bar for uninstaller
    Added extra parameters for uninstaller
    Added visual theme for the entire program (took 2 hours to complete, because you have to reassign all
    of the previous functions to new styled buttons and other things)
    Added token randomization (now it’s not the number 51387452034 anymore lol)
    Added activity log (check documents folder)
    Added installer log (check documents folder)
    Improved functionality of uninstaller
    Simplified Installer

     
    v0.5
    Added visual theme for the entire program (took 2 hours to complete, because you have to reassign all
    of the previous functions to new styled buttons and other things)
    Added token randomization (now it’s not the number 51387452034 anymore lol)
    Added activity log (check documents folder)
    Added installer log (check documents folder)
    Improved functionality of uninstaller
    Simplified Installer
    Added uninstall button in options screen of Steam Account Switcher
    Changed font color of installer and uninstaller
    Changed progress bar color of installer
    Linked steps of installation to progress bar (more accurate progress bar)

     
     
    v0.6
    Removed Installer (was being detected as a virus because of the way it extracts zip files)
    Removed Key file (now its internal to the program, harder to spoof)
    Removed Installer log
    Removed Steam Account Switcher Log (might come back in a later version)
    Added first use setup (when the program is launched for the first time, it creates the files needed to use
    the program instead of using the installer)
    Made the Uninstaller faster & more efficient
    linked steps of uninstallation to progress bar (more accurate progress bar)
    Uninstaller now asks for Steam Account Switcher.exe instead of directory (more accurate uninstallation)
    Removed bugs that occur when the uninstaller can’t find a file to remove
    updated Readme instructions on how to use
    All virus scans are now clean!

     
    v0.7
    Added option to start with windows
    Added option to start minimized
    Added activity log
    Added activity log exporting
    Fixed account switching error that would happen if steam was open while you tried to login
    Polished UI

     
    v0.8
    Removed Uninstaller, now just press the uninstall button in the options tab
    Removed credits screen (temporary, forgot to redesign it and decided to remove it until it is finished)
    Added Steam Chat Spammer
    Added Reset Files (reinstalls all files)
    Fixed bug that occurred when you exported activity log and there was already one there
    Fixed bug that caused saslog.dat to be formed when adding account
    Added credits screen back
    Removed minimize button (sometimes it does not show icon in the taskbar)
    Changed button location on options screen
    improved performance of the Steam Chat Spammer

     
    v0.9
    Added Metro for Steam Customizer (Extras Tab)
    Added Steam Account Quick Launcher (Condensed Version of Steam Account Switcher without extra options)
    v0.91
    Smaller Updates Inbound
    Added Windowless download (no browser popup) for everything in Extras Tab Added Progress Bar for downloads in extras tab
    Added Status Bar in extras tab
    v0.92
    Finished Steam Account Quick Launcher
    Changed Format of Activity log page
    Steam Account Switcher & Steam Account Quick Launcher now run off the same files (account files & flatui.dll)
    v0.93
    Added Launch Steam Account Quick Launcher with windows button
    Improved Speed of first time setup
    Steam Message Spammer now works in all programs that have a type option (other than full screen games) (might be added in the future)
    v0.94
    Added Option to change tint color of program (Main Application Only as of now)
    v0.95
    Added Option to remove Steam Account Quick Launch & Metro for Steam Customizer
    v0.96
    Changed all downloads to a site with "unlimited" download speed
    v0.97
    Added FlatUI.dll download to first launch menu (automatic)

     
    v0.98
    Fixed bugs caused by missing files
    Added Automatic Activity Log save on exit
    Added New Color Options for the tint changer
    Added Settings Save (automatic, based on action being performed)
    Removed settings that were not needed
    Optimized for latest version of steam login (where you need the mobile authenticator)
    Updated Changelog (fixed spelling/grammar errors)
    Updated Readme.txt
    Removed Credits button/menu
    Added Help menu, this now includes information, credits and the changelog (you are looking at it now
    InApplication downloads now based on google drive, (speed up downloads & links last longer)
    Missing FlatUI.dll error solved

     
    v.99
    Removed Old UI
    Removed FlatUI.dll
    Removed Help Screen
    Removed Status Bar on Home & Extras tab
    Removed Steam Chat Spammer, it might come back in a later update, no time for it now
    Fixed AutoClose on login
    Changed Steam Account Switcher Mini launch process
    Added MetroFramework (new tools will be avalible for programming (more stuff))
    Changed Loading Animation for First Setup, and File Download
    Changed Tint Changer to only 13 colors (chosen at random when you press the button)
    Updated Uninstall methods to add in new files (downloadables)
    Changed Reset Files Methods
    Added Resizing to the program
    Buttons/items within the program are now fluid (change position when you resize so it still looks acceptable)
    Fixed export log format bug
    Removed Install Key
    Added Themes (Dark and Light(Toggle))
    Fixed Glitchy scroll bars on home tab
    All Style Colors/Theme Colors are now in sync
    Changed Message Box UI thoroughout program
    Added Theme Selection on first launch
    Added Theme/Style Saving (if you close the program and relaunch it, they will be the same as when you closed it)
    Changed Name to Steam Account Swithcer #NameChangeLikeKanye

     
    v1.0
    Disabled Steam Account Quick Switch because it was being detected as a false virus (will be fixed and added in later update)
    Changed First Time Setup theme selector (now its a drop down box instead of slider)
    Disabled Steam Account Quick Switch checkbox in options tab
    Removed version number from title
    Added "Made by ImWhacky" to activity log tab
    Added Version number to activity log tab
    Added Build Version number to activity log tab (number changes every time the program is compiled in visual studio)
    Activity Log now captures all activities



     






    WARNING! there is no longer an extras tab, didnt feel like making a new video


     

    I removed the encryption/decryption because I dont want it to get cracked and someone to make a keylogger.
    Code:
    using System;
    using System****;
    using System.Diagnostics;
    using System.Windows.Forms;
    using System.Drawing;
    using Microsoft.Win32;
    using System.Text;
    using System.Net;
    using System****.Compression;
    using IWshRuntimeLibrary;
    using MetroFramework;
    using System.Data;
    using System.Runtime.InteropServices;
    using System.Reflection;
    
    namespace Steam_Account_Manager
    {
    
    
    
        public partial class form_main : MetroFramework.Forms.MetroForm
        {
    
    
            // Main Form
            public form_main()
            {
    
                this.ShowInTaskbar = true;
                InitializeComponent();
                ListAccounts.Items.Clear();
                read_settings();
                metroTextBox1.Text = Properties.Settings.Default.SteamLocation;
                if (Properties.Settings.Default.CloseCheck == false)
                {
                    metroCheckBox3.Checked = false;
                }
                if (Properties.Settings.Default.CloseCheck == true)
                {
                    metroCheckBox3.Checked = true;
                }
                if (Properties.Settings.Default.StartWindows == false)
                {
                    metroCheckBox2.Checked = false;
                }
                if (Properties.Settings.Default.StartWindows == true)
                {
                    metroCheckBox2.Checked = true;
                }
            }
            // Encrypting and Decrypting
            string base64_encode(string str)
            {
                return Convert.ToBase64String(System.Text.Encoding.UTF8.G  etBytes(str));
                listBox1.Items.Add(DateTime.Now + " - Encoded");
            }
            string base64_decode(string str)
            {
                return System.Text.Encoding.UTF8.GetString(Convert.FromBa  se64String(str));
                listBox1.Items.Add(DateTime.Now + " - Decoded");
            }
            // Kill Steam.exe Process
            void kill_steam()
            {
                try
                {
                    Process[] proc = Process.GetProcessesByName("Steam");
                    proc[0].Kill();
                    listBox1.Items.Add(DateTime.Now + " - Killed Steam.exe Process");
                }
                catch { }
            }
            //Log Into Steam
            void login_steam(string steam_location, string username, string password)
            {
                Process.Start(steam_location, " -login " + username + " " + base64_decode(password));
                listBox1.Items.Add(DateTime.Now + " - Attempted Steam Login Under Account Name '" + username + "'");
            }
            //Write Settings
            public void write_settings()
            {
                string output = "";
                foreach (ListViewItem item in ListAccounts.Items)
                {
                    for (int i = 0; i < item.SubItems.Count; i++)
                        output += item.SubItems[i].Text.Replace("|", "/") + "|";
                    output += Environment.NewLine;
                }
                System****.File.WriteAllText(Properties.Settings.D  efault.AccountLocation + "/SasData.dat", output);
                listBox1.Items.Add(DateTime.Now + " - Wrote Settings");
            }
            // Read Settings File
            public void read_settings()
            {
                ListAccounts.Items.Clear();
                if (!System****.File.Exists(Properties.Settings.Defau  lt.AccountLocation + "/SasData.dat"))
                    return;
                var file = new StreamReader(Properties.Settings.Default.AccountLo  cation + "/SasData.dat");
    
                string line;
    
                while ((line = file.ReadLine()) != null)
                {
                    string[] data = line.Split('|');
    
                    var item = new ListViewItem(data);
                    ListAccounts.Items.Add(item);
                }
                file.Close();
                listBox1.Items.Add(DateTime.Now + " - Read Settings");
            }
            // Clear Files
            void ClearFiles()
            {
                if (System****.File.Exists("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/SasData.dat"))
                {
                    System****.File.Delete("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/SasData.dat");
                }
                if (System****.File.Exists("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/ExportedLog.txt"))
                {
                    System****.File.Delete("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/ExportedLog.txt");
                }
                if (System****.File.Exists("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/MetroCustomize.exe"))
                {
                    System****.File.Delete("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/MetroCustomize.exe");
                }
                if (System****.File.Exists("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/MetroCustomize.zip"))
                {
                    System****.File.Delete("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/MetroCustomize.zip");
                }
                if (System****.File.Exists("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/SteamAccountQuickLaunch.exe"))
                {
                    System****.File.Delete("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/SteamAccountQuickLaunch.exe");
                }
                if (System****.File.Exists("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/SteamAccountQuickLaunch.zip"))
                {
                    System****.File.Delete("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/SteamAccountQuickLaunch.zip");
                }
                if (System****.File.Exists("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/MetroFramework.dll"))
                {
                    System****.File.Delete("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/MetroFramework.dll");
                }
                if (System****.File.Exists("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/MetroFramework.zip"))
                {
                    System****.File.Delete("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/MetroFramework.zip");
                }
                if (System****.Directory.Exists("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/"))
                {
                    System****.Directory.Delete("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/");
                }
    
                listBox1.Items.Add(DateTime.Now + " - Cleared Files");
            }
            // Create Files
            void CreateFiles()
            {
                System****.Directory.CreateDirectory("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/");
                System****.File.Create("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/SasData.dat");
                System****.File.Create("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/ExportedLog.txt");
                listBox1.Items.Add(DateTime.Now + " - Created Files");
            }
            // Dark Theme
            void Darktheme()
            {
                metroLabel1.ForeColor = Color.White;
                metroLabel2.ForeColor = Color.White;
                metroLabel3.ForeColor = Color.White;
                metroLabel4.ForeColor = Color.White;
                this.Theme = MetroThemeStyle.Dark;
                metroTabControl1.Theme = MetroThemeStyle.Dark;
                metroTabPage1.Theme = MetroThemeStyle.Dark;
                metroTabPage2.Theme = MetroThemeStyle.Dark;
                metroTabPage4.Theme = MetroThemeStyle.Dark;
                ListAccounts.BackColor = Color.FromArgb(17, 17, 17);
                ListAccounts.ForeColor = Color.White;
                listBox1.BackColor = Color.FromArgb(17, 17, 17);
                listBox1.ForeColor = Color.White;
                metroCheckBox2.ForeColor = Color.White;
                metroCheckBox3.ForeColor = Color.White;
                metroCheckBox2.BackColor = Color.FromArgb(17, 17, 17);
                metroCheckBox3.BackColor = Color.FromArgb(17, 17, 17);
    
                ListAccounts.Refresh();
                listBox1.Refresh();
                this.Refresh();
                metroTabControl1.Refresh();
                metroCheckBox2.Refresh();
                metroCheckBox3.Refresh();
                metroTabPage1.Refresh();
                metroTabPage2.Refresh();
                metroTabPage4.Refresh();
    
                listBox1.Items.Add(DateTime.Now + " - Applied Dark Theme");
            }
            // Light Theme
            void LightTheme()
            {
                metroLabel1.ForeColor = Color.Black;
                metroLabel2.ForeColor = Color.Black;
                metroLabel3.ForeColor = Color.Black;
                metroLabel4.ForeColor = Color.Black;
                this.Theme = MetroThemeStyle.Light;
                metroTabControl1.Theme = MetroThemeStyle.Light;
                metroTabPage1.Theme = MetroThemeStyle.Light;
                metroTabPage2.Theme = MetroThemeStyle.Light;
                metroTabPage4.Theme = MetroThemeStyle.Light;
                ListAccounts.BackColor = Color.White;
                ListAccounts.ForeColor = Color.Black;
                listBox1.BackColor = Color.White;
                listBox1.ForeColor = Color.Black;
                metroCheckBox2.ForeColor = Color.Black;
                metroCheckBox3.ForeColor = Color.Black;
                metroCheckBox2.BackColor = Color.White;
                metroCheckBox3.BackColor = Color.White;
    
                ListAccounts.Refresh();
                listBox1.Refresh();
                this.Refresh();
                metroTabControl1.Refresh();
                metroCheckBox2.Refresh();
                metroCheckBox3.Refresh();
                metroTabPage1.Refresh();
                metroTabPage2.Refresh();
                metroTabPage4.Refresh();
    
                listBox1.Items.Add(DateTime.Now + " - Applied Light Theme");
            }
            // Apply Theme
            void ApplyTheme()
            {
                if (Properties.Settings.Default.Theme == "Dark")
                {
                    Darktheme();
                    metroToggle1.Checked = true;
                    metroToggle1.Invalidate();
                }
                if (Properties.Settings.Default.Theme == "Light")
                {
                    LightTheme();
                    metroToggle1.Checked = false;
                    metroToggle1.Invalidate();
                }
    
                listBox1.Items.Add(DateTime.Now + " - Applied Saved Theme");
            }
            // Load Form
            void MainFormLoad(object sender, System.EventArgs e)
            {
                ApplyTheme();
                ApplyStyle();
                metroTabControl1.SelectedTab = metroTabPage1;
                string version = Assembly.GetExecutingAssembly().GetName().Version.  ToString();
                metroLabel4.Text = "Build " + version;
                this.ShowInTaskbar = true;
                listBox1.Items.Clear();
                listBox1.Items.Add(DateTime.Now + " - Loaded Steam Account Manager");
                listBox1.Items.Add(DateTime.Now + " - Build " + version);
                read_settings();
                if (Properties.Settings.Default.FirstUse1 == true)
                {
                  Properties.Settings.Default.FirstUse1 = false;
                      this.TopMost = false;
                      var FirstUse = new FirstUse();
                    if (FirstUse.ShowDialog(this) == DialogResult.OK)
                    {
                       Properties.Settings.Default.AccountLocation = "C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager";
                       Properties.Settings.Default.SteamLocation = @"C:\Program Files (x86)\Steam\Steam.exe";
                       metroTextBox1.Text = Properties.Settings.Default.SteamLocation;
                       Properties.Settings.Default.Save();         
                       ApplyTheme();
                       ApplyStyle();
                       read_settings();
                       this.TopMost = true;
                       listBox1.Items.Add(DateTime.Now + " - Successfully Executed First Launch");
                       this.TopMost = false;
                    }
                }
    
            }
            // Steam Login
            void LoginToolStripMenuItemClick(object sender, System.EventArgs e)
            {
                if (ListAccounts.SelectedItems.Count == 1)
                {
                    
                    foreach (var process in Process.GetProcessesByName("Steam.exe"))
                    {
                        process.Kill();
                    }
                    ListAccounts.SelectedItems[0].SubItems[2].Text = DateTime.Now.ToString("dd/MM/yyyy");
                    kill_steam();
                    login_steam(Properties.Settings.Default.SteamLocat  ion, ListAccounts.SelectedItems[0].SubItems[0].Text, ListAccounts.SelectedItems[0].SubItems[1].Text);
    
                }
                write_settings();
                if(Properties.Settings.Default.CloseCheck == true)
                {
                    this.Close();
                }
            }
            // Add Account
            void AddAccountToolStripMenuItemClick(object sender, System.EventArgs e)
            {
                var form_account = new form_account();
                if (form_account.ShowDialog(this) == DialogResult.OK)
                {
                    string[] row = { form_account.username, base64_encode(form_account.password), "", form_account.account };
                    var item = new ListViewItem(row);
                    ListAccounts.Items.Add(item);
                    write_settings();
                    listBox1.Items.Add(DateTime.Now + " - Added Account " + form_account.username);
                }
            }
            // Delete Accout
            void DeleteToolStripMenuItemClick(object sender, System.EventArgs e)
            {
                foreach (ListViewItem item in ListAccounts.SelectedItems)
                {
                    item.Remove();
                    listBox1.Items.Add(DateTime.Now + " - Removed " + ListAccounts.SelectedItems);
                }
                write_settings();
            }
            // shut down steam.exe
            void ShutdownSteamToolStripMenuItemClick(object sender, System.EventArgs e)
            {
                kill_steam();
                listBox1.Items.Add(DateTime.Now + " - Stopped Steam.exe process");
             }
            // Close
            private void button2_Click(object sender, EventArgs e)
            {
                this.Close();
            }
            // Add To Startup
            private void metroCheckBox2_CheckedChanged(object sender, EventArgs e)
            {
                if (metroCheckBox2.Checked == true)
                {
                    Properties.Settings.Default.StartWindows = true;
                    if (System****.File.Exists(Environment.GetFolderPath(  Environment.SpecialFolder.Startup) + "/Steam Account Manager.exe"))
                    {
    
                    }
                    else
                    {
                        System****.File.Copy("Steam Account Manager.exe", Environment.GetFolderPath(Environment.SpecialFolde  r.Startup) + "/Steam Account Manager.exe");
                        listBox1.Items.Add(DateTime.Now + " - Added Steam Account Manager To Windows Startup");
                    }
                    Properties.Settings.Default.Save();
                }
                if (metroCheckBox2.Checked == false)
                {
                    Properties.Settings.Default.StartWindows = false;
                    if (System****.File.Exists(Environment.GetFolderPath(  Environment.SpecialFolder.Startup) + "/Steam Account Manager.exe"))
                    {
    
                        System****.File.Delete(Environment.GetFolderPath(E  nvironment.SpecialFolder.Startup) + "/Steam Account Manager.exe");
                        listBox1.Items.Add(DateTime.Now + " - Removed Steam Account Manager From Windows Startup");
                    }
                    Properties.Settings.Default.Save();
                }
            }
            // Auto Close
            private void metroCheckBox3_CheckedChanged(object sender, EventArgs e)
            {
                if (metroCheckBox3.Checked == false)
                {
                    Properties.Settings.Default.CloseCheck = false;
                    Properties.Settings.Default.Save();
                    listBox1.Items.Add(DateTime.Now + " - Disabled Auto Close On Login");
                }
                if (metroCheckBox3.Checked == true)
                {
                    Properties.Settings.Default.CloseCheck = true;
                    Properties.Settings.Default.Save();
                    listBox1.Items.Add(DateTime.Now + " - Enabled Auto Close On Login");
                }
                Properties.Settings.Default.Save();
            }
            // Change Style
            private void metroTile2_Click(object sender, EventArgs e)
            {
                // Generate Style
                var m = new Random();
                int next = m.Next(0, 13);
                this.Style = (MetroColorStyle)next;
                metroTabControl1.Style = (MetroColorStyle)next;
                metroLabel1.Style = (MetroColorStyle)next;
                metroLabel2.Style = (MetroColorStyle)next;
                metroLabel3.Style = (MetroColorStyle)next;
                metroLabel4.Style = (MetroColorStyle)next;
                metroTile1.Style = (MetroColorStyle)next;
                metroTile2.Style = (MetroColorStyle)next;
                metroTile3.Style = (MetroColorStyle)next;
                metroTile4.Style = (MetroColorStyle)next;
                metroTile5.Style = (MetroColorStyle)next;
                metroToggle1.Style = (MetroColorStyle)next;
                metroCheckBox2.Style = (MetroColorStyle)next;
                metroCheckBox3.Style = (MetroColorStyle)next;
                Properties.Settings.Default.Style = (MetroColorStyle)next;
                Properties.Settings.Default.Save();
                //Refresh
                metroLabel1.Refresh();
                metroLabel2.Refresh();
                metroLabel3.Refresh();
                metroLabel4.Refresh();
                metroToggle1.Refresh();
                metroCheckBox2.Refresh();
                metroCheckBox3.Refresh();
                metroTile1.Refresh();
                metroTile2.Refresh();
                metroTile3.Refresh();
                metroTile4.Refresh();
                metroTile5.Refresh();
                this.Refresh();
                metroTabControl1.Refresh();
    
                listBox1.Items.Add(DateTime.Now + " - Changed Style to Style " + (MetroColorStyle)next);
            }
            // Save Style
            void ApplyStyle()
            {
                this.Style = Properties.Settings.Default.Style;
                metroTabControl1.Style = Properties.Settings.Default.Style;
                metroLabel1.Style = Properties.Settings.Default.Style;
                metroLabel2.Style = Properties.Settings.Default.Style;
                metroLabel3.Style = Properties.Settings.Default.Style;
                metroLabel4.Style = Properties.Settings.Default.Style;
                metroTile1.Style = Properties.Settings.Default.Style;
                metroTile2.Style = Properties.Settings.Default.Style;
                metroTile3.Style = Properties.Settings.Default.Style;
                metroTile4.Style = Properties.Settings.Default.Style;
                metroTile5.Style = Properties.Settings.Default.Style;
                metroToggle1.Style = Properties.Settings.Default.Style;
                metroCheckBox2.Style = Properties.Settings.Default.Style;
                metroCheckBox3.Style = Properties.Settings.Default.Style;
    
                listBox1.Items.Add(DateTime.Now + " - Applied Style");
            }
            // Uninstall
            private void metroTile1_Click_1(object sender, EventArgs e)
            {
                DialogResult dialogResult = MetroMessageBox.Show(this, "Are you sure you want to uninstall Steam Account Manager?", "Steam Account Manager", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
    
                if (dialogResult == DialogResult.Yes)
                {
                    ClearFiles();
                    MetroMessageBox.Show(this, "Files have been removed.Steam Account Manager will now close and you can delete it.", "Steam Account Manager",MessageBoxButtons.OK , MessageBoxIcon.Question);
                    this.Close();
                }
                else if (dialogResult == DialogResult.No)
                {
                    return;
                }
            }
            // Reset Files
            private void metroTile3_Click(object sender, EventArgs e)
            {
                try
                {
                    ClearFiles();
                    CreateFiles();
                    MetroMessageBox.Show(this, "Your Files Have Been Reset!", "Steam Account Manager", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    if (System****.File.Exists("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/MetroFramework.zip"))
                    {
                        string zipPath = "C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/MetroFramework.zip";
                        string extractPath = "C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/";
                        ZipFile.ExtractToDirectory(zipPath, extractPath);
                    }
                }
                catch (System.Exception)
                {
                    MetroMessageBox.Show(this, "An error occured while resetting your files, please restart Steam Account Manager and try again.", "Steam Account Manager", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
            }
            // Theme Toggle
            private void metroToggle1_CheckedChanged(object sender, EventArgs e)
            {
                if (metroToggle1.Checked == true)
                {
                    Darktheme();
                    Properties.Settings.Default.Theme = "Dark";
                    Properties.Settings.Default.Save();
                }
                if (metroToggle1.Checked == false)
                {
                    LightTheme();
                    Properties.Settings.Default.Theme = "Light";
                    Properties.Settings.Default.Save();
                }
            }
            // Change Directory for Steam
            private void metroTile4_Click(object sender, EventArgs e)
            {
                metroTextBox1.Text = "";
                openFileDialog1.InitialDirectory = ("C:/Program Files (x86)/Steam");
                openFileDialog1.FileName = ("Steam.exe");
                if (openFileDialog1.ShowDialog() == DialogResult.OK)
                {
                    Properties.Settings.Default.SteamLocation = openFileDialog1.FileName;
                    metroTextBox1.Text = Properties.Settings.Default.SteamLocation;
                    Properties.Settings.Default.Save();
                    listBox1.Items.Add(DateTime.Now + " - Changed Steam.exe Directory");
                }
            }
            // Save Log
            private void metroTile5_Click(object sender, EventArgs e)
            {
                try
                {
                    System****.StreamWriter SaveFile = new System****.StreamWriter("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/ExportedLog.txt");
                    foreach (var item in listBox1.Items)
                    {
                        SaveFile.WriteLine(item);
                    }
    
                    SaveFile.Close();
    
                    MetroMessageBox.Show(this, "Log Successfully Exported!", "Steam Account Manager", MessageBoxButtons.OK, MessageBoxIcon.Information);
    
                }
                catch
                {
                    MetroMessageBox.Show(this, "There was an error exporting the log!", "Steam Account Manager", MessageBoxButtons.OK, MessageBoxIcon.Error);
    
                }
            }
            // Checkbox message timer
            private void timer5_Tick(object sender, EventArgs e)
            {
                timer5.Stop();
                MetroMessageBox.Show(this, "You need to download Steam Acocunt Quick Launch from the extras tab first.", "Steam Account Manager", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
    }


    <b>Downloadable Files</b> Downloadable Files

  2. The Following 6 Users Say Thank You to ImWhacky For This Useful Post:

    Botinhaasz (11-21-2016),InFeCtedZomBie (02-18-2016),megapuffymuffin (03-01-2016),mikusa (02-16-2016),progeneral (02-27-2016),rargirov (01-20-2017)

  3. #2
    Smoke's Avatar
    Join Date
    Nov 2014
    Gender
    male
    Posts
    11,899
    Reputation
    2661
    Thanks
    4,610
    My Mood
    Amazed
    Quote Originally Posted by ImWhacky View Post

    Features
    13 Different Styles
    2 Themes (Dark and Light)
    Password Encryption
    Open Source (See Below)


    Jotti - Click Here
    VirusTotal - Click Here
    Metascan - Click Here


     
     
    v0.2
    Added a steam.exe selector
    Added account adding
    Added multiple tabs
    Added new dialog for adding accounts instead of having its own tab
    Added Icons to right click menu
    Added close steam option
    Added autoclose SAS on login option
    Added credits dialog
    Fixed reading file bug
    Fixed crashing bug

     
    v0.3
    Added Installer
    Added Uninstaller
    Added many new functions that improve performance throughout the program
    Added Install token now you need to use the installer to be able to use the program
    (important files are imbedded into the installer for safety)
    Added progress bar for installer
    Added previous file checker into installer (automatically removes previous version files before install)

     
    v0.4
    Added progress bar for uninstaller
    Added extra parameters for uninstaller
    Added visual theme for the entire program (took 2 hours to complete, because you have to reassign all
    of the previous functions to new styled buttons and other things)
    Added token randomization (now it’s not the number 51387452034 anymore lol)
    Added activity log (check documents folder)
    Added installer log (check documents folder)
    Improved functionality of uninstaller
    Simplified Installer

     
    v0.5
    Added visual theme for the entire program (took 2 hours to complete, because you have to reassign all
    of the previous functions to new styled buttons and other things)
    Added token randomization (now it’s not the number 51387452034 anymore lol)
    Added activity log (check documents folder)
    Added installer log (check documents folder)
    Improved functionality of uninstaller
    Simplified Installer
    Added uninstall button in options screen of Steam Account Switcher
    Changed font color of installer and uninstaller
    Changed progress bar color of installer
    Linked steps of installation to progress bar (more accurate progress bar)

     
     
    v0.6
    Removed Installer (was being detected as a virus because of the way it extracts zip files)
    Removed Key file (now its internal to the program, harder to spoof)
    Removed Installer log
    Removed Steam Account Switcher Log (might come back in a later version)
    Added first use setup (when the program is launched for the first time, it creates the files needed to use
    the program instead of using the installer)
    Made the Uninstaller faster & more efficient
    linked steps of uninstallation to progress bar (more accurate progress bar)
    Uninstaller now asks for Steam Account Switcher.exe instead of directory (more accurate uninstallation)
    Removed bugs that occur when the uninstaller can’t find a file to remove
    updated Readme instructions on how to use
    All virus scans are now clean!

     
    v0.7
    Added option to start with windows
    Added option to start minimized
    Added activity log
    Added activity log exporting
    Fixed account switching error that would happen if steam was open while you tried to login
    Polished UI

     
    v0.8
    Removed Uninstaller, now just press the uninstall button in the options tab
    Removed credits screen (temporary, forgot to redesign it and decided to remove it until it is finished)
    Added Steam Chat Spammer
    Added Reset Files (reinstalls all files)
    Fixed bug that occurred when you exported activity log and there was already one there
    Fixed bug that caused saslog.dat to be formed when adding account
    Added credits screen back
    Removed minimize button (sometimes it does not show icon in the taskbar)
    Changed button location on options screen
    improved performance of the Steam Chat Spammer

     
    v0.9
    Added Metro for Steam Customizer (Extras Tab)
    Added Steam Account Quick Launcher (Condensed Version of Steam Account Switcher without extra options)
    v0.91
    Smaller Updates Inbound
    Added Windowless download (no browser popup) for everything in Extras Tab Added Progress Bar for downloads in extras tab
    Added Status Bar in extras tab
    v0.92
    Finished Steam Account Quick Launcher
    Changed Format of Activity log page
    Steam Account Switcher & Steam Account Quick Launcher now run off the same files (account files & flatui.dll)
    v0.93
    Added Launch Steam Account Quick Launcher with windows button
    Improved Speed of first time setup
    Steam Message Spammer now works in all programs that have a type option (other than full screen games) (might be added in the future)
    v0.94
    Added Option to change tint color of program (Main Application Only as of now)
    v0.95
    Added Option to remove Steam Account Quick Launch & Metro for Steam Customizer
    v0.96
    Changed all downloads to a site with "unlimited" download speed
    v0.97
    Added FlatUI.dll download to first launch menu (automatic)

     
    v0.98
    Fixed bugs caused by missing files
    Added Automatic Activity Log save on exit
    Added New Color Options for the tint changer
    Added Settings Save (automatic, based on action being performed)
    Removed settings that were not needed
    Optimized for latest version of steam login (where you need the mobile authenticator)
    Updated Changelog (fixed spelling/grammar errors)
    Updated Readme.txt
    Removed Credits button/menu
    Added Help menu, this now includes information, credits and the changelog (you are looking at it now
    InApplication downloads now based on google drive, (speed up downloads & links last longer)
    Missing FlatUI.dll error solved

     
    v.99
    Removed Old UI
    Removed FlatUI.dll
    Removed Help Screen
    Removed Status Bar on Home & Extras tab
    Removed Steam Chat Spammer, it might come back in a later update, no time for it now
    Fixed AutoClose on login
    Changed Steam Account Switcher Mini launch process
    Added MetroFramework (new tools will be avalible for programming (more stuff))
    Changed Loading Animation for First Setup, and File Download
    Changed Tint Changer to only 13 colors (chosen at random when you press the button)
    Updated Uninstall methods to add in new files (downloadables)
    Changed Reset Files Methods
    Added Resizing to the program
    Buttons/items within the program are now fluid (change position when you resize so it still looks acceptable)
    Fixed export log format bug
    Removed Install Key
    Added Themes (Dark and Light(Toggle))
    Fixed Glitchy scroll bars on home tab
    All Style Colors/Theme Colors are now in sync
    Changed Message Box UI thoroughout program
    Added Theme Selection on first launch
    Added Theme/Style Saving (if you close the program and relaunch it, they will be the same as when you closed it)
    Changed Name to Steam Account Swithcer #NameChangeLikeKanye

     
    v1.0
    Disabled Steam Account Quick Switch because it was being detected as a false virus (will be fixed and added in later update)
    Changed First Time Setup theme selector (now its a drop down box instead of slider)
    Disabled Steam Account Quick Switch checkbox in options tab
    Removed version number from title
    Added "Made by ImWhacky" to activity log tab
    Added Version number to activity log tab
    Added Build Version number to activity log tab (number changes every time the program is compiled in visual studio)
    Activity Log now captures all activities



     






    WARNING! there is no longer an extras tab, didnt feel like making a new video


     

    I removed the encryption/decryption because I dont want it to get cracked and someone to make a keylogger.
    Code:
    using System;
    using System****;
    using System.Diagnostics;
    using System.Windows.Forms;
    using System.Drawing;
    using Microsoft.Win32;
    using System.Text;
    using System.Net;
    using System****.Compression;
    using IWshRuntimeLibrary;
    using MetroFramework;
    using System.Data;
    using System.Runtime.InteropServices;
    using System.Reflection;
    
    namespace Steam_Account_Manager
    {
    
    
    
        public partial class form_main : MetroFramework.Forms.MetroForm
        {
    
    
            // Main Form
            public form_main()
            {
    
                this.ShowInTaskbar = true;
                InitializeComponent();
                ListAccounts.Items.Clear();
                read_settings();
                metroTextBox1.Text = Properties.Settings.Default.SteamLocation;
                if (Properties.Settings.Default.CloseCheck == false)
                {
                    metroCheckBox3.Checked = false;
                }
                if (Properties.Settings.Default.CloseCheck == true)
                {
                    metroCheckBox3.Checked = true;
                }
                if (Properties.Settings.Default.StartWindows == false)
                {
                    metroCheckBox2.Checked = false;
                }
                if (Properties.Settings.Default.StartWindows == true)
                {
                    metroCheckBox2.Checked = true;
                }
            }
            // Encrypting and Decrypting
            string base64_encode(string str)
            {
                return Convert.ToBase64String(System.Text.Encoding.UTF8.G  etBytes(str));
                listBox1.Items.Add(DateTime.Now + " - Encoded");
            }
            string base64_decode(string str)
            {
                return System.Text.Encoding.UTF8.GetString(Convert.FromBa  se64String(str));
                listBox1.Items.Add(DateTime.Now + " - Decoded");
            }
            // Kill Steam.exe Process
            void kill_steam()
            {
                try
                {
                    Process[] proc = Process.GetProcessesByName("Steam");
                    proc[0].Kill();
                    listBox1.Items.Add(DateTime.Now + " - Killed Steam.exe Process");
                }
                catch { }
            }
            //Log Into Steam
            void login_steam(string steam_location, string username, string password)
            {
                Process.Start(steam_location, " -login " + username + " " + base64_decode(password));
                listBox1.Items.Add(DateTime.Now + " - Attempted Steam Login Under Account Name '" + username + "'");
            }
            //Write Settings
            public void write_settings()
            {
                string output = "";
                foreach (ListViewItem item in ListAccounts.Items)
                {
                    for (int i = 0; i < item.SubItems.Count; i++)
                        output += item.SubItems[i].Text.Replace("|", "/") + "|";
                    output += Environment.NewLine;
                }
                System****.File.WriteAllText(Properties.Settings.D  efault.AccountLocation + "/SasData.dat", output);
                listBox1.Items.Add(DateTime.Now + " - Wrote Settings");
            }
            // Read Settings File
            public void read_settings()
            {
                ListAccounts.Items.Clear();
                if (!System****.File.Exists(Properties.Settings.Defau  lt.AccountLocation + "/SasData.dat"))
                    return;
                var file = new StreamReader(Properties.Settings.Default.AccountLo  cation + "/SasData.dat");
    
                string line;
    
                while ((line = file.ReadLine()) != null)
                {
                    string[] data = line.Split('|');
    
                    var item = new ListViewItem(data);
                    ListAccounts.Items.Add(item);
                }
                file.Close();
                listBox1.Items.Add(DateTime.Now + " - Read Settings");
            }
            // Clear Files
            void ClearFiles()
            {
                if (System****.File.Exists("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/SasData.dat"))
                {
                    System****.File.Delete("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/SasData.dat");
                }
                if (System****.File.Exists("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/ExportedLog.txt"))
                {
                    System****.File.Delete("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/ExportedLog.txt");
                }
                if (System****.File.Exists("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/MetroCustomize.exe"))
                {
                    System****.File.Delete("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/MetroCustomize.exe");
                }
                if (System****.File.Exists("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/MetroCustomize.zip"))
                {
                    System****.File.Delete("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/MetroCustomize.zip");
                }
                if (System****.File.Exists("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/SteamAccountQuickLaunch.exe"))
                {
                    System****.File.Delete("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/SteamAccountQuickLaunch.exe");
                }
                if (System****.File.Exists("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/SteamAccountQuickLaunch.zip"))
                {
                    System****.File.Delete("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/SteamAccountQuickLaunch.zip");
                }
                if (System****.File.Exists("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/MetroFramework.dll"))
                {
                    System****.File.Delete("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/MetroFramework.dll");
                }
                if (System****.File.Exists("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/MetroFramework.zip"))
                {
                    System****.File.Delete("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/MetroFramework.zip");
                }
                if (System****.Directory.Exists("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/"))
                {
                    System****.Directory.Delete("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/");
                }
    
                listBox1.Items.Add(DateTime.Now + " - Cleared Files");
            }
            // Create Files
            void CreateFiles()
            {
                System****.Directory.CreateDirectory("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/");
                System****.File.Create("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/SasData.dat");
                System****.File.Create("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/ExportedLog.txt");
                listBox1.Items.Add(DateTime.Now + " - Created Files");
            }
            // Dark Theme
            void Darktheme()
            {
                metroLabel1.ForeColor = Color.White;
                metroLabel2.ForeColor = Color.White;
                metroLabel3.ForeColor = Color.White;
                metroLabel4.ForeColor = Color.White;
                this.Theme = MetroThemeStyle.Dark;
                metroTabControl1.Theme = MetroThemeStyle.Dark;
                metroTabPage1.Theme = MetroThemeStyle.Dark;
                metroTabPage2.Theme = MetroThemeStyle.Dark;
                metroTabPage4.Theme = MetroThemeStyle.Dark;
                ListAccounts.BackColor = Color.FromArgb(17, 17, 17);
                ListAccounts.ForeColor = Color.White;
                listBox1.BackColor = Color.FromArgb(17, 17, 17);
                listBox1.ForeColor = Color.White;
                metroCheckBox2.ForeColor = Color.White;
                metroCheckBox3.ForeColor = Color.White;
                metroCheckBox2.BackColor = Color.FromArgb(17, 17, 17);
                metroCheckBox3.BackColor = Color.FromArgb(17, 17, 17);
    
                ListAccounts.Refresh();
                listBox1.Refresh();
                this.Refresh();
                metroTabControl1.Refresh();
                metroCheckBox2.Refresh();
                metroCheckBox3.Refresh();
                metroTabPage1.Refresh();
                metroTabPage2.Refresh();
                metroTabPage4.Refresh();
    
                listBox1.Items.Add(DateTime.Now + " - Applied Dark Theme");
            }
            // Light Theme
            void LightTheme()
            {
                metroLabel1.ForeColor = Color.Black;
                metroLabel2.ForeColor = Color.Black;
                metroLabel3.ForeColor = Color.Black;
                metroLabel4.ForeColor = Color.Black;
                this.Theme = MetroThemeStyle.Light;
                metroTabControl1.Theme = MetroThemeStyle.Light;
                metroTabPage1.Theme = MetroThemeStyle.Light;
                metroTabPage2.Theme = MetroThemeStyle.Light;
                metroTabPage4.Theme = MetroThemeStyle.Light;
                ListAccounts.BackColor = Color.White;
                ListAccounts.ForeColor = Color.Black;
                listBox1.BackColor = Color.White;
                listBox1.ForeColor = Color.Black;
                metroCheckBox2.ForeColor = Color.Black;
                metroCheckBox3.ForeColor = Color.Black;
                metroCheckBox2.BackColor = Color.White;
                metroCheckBox3.BackColor = Color.White;
    
                ListAccounts.Refresh();
                listBox1.Refresh();
                this.Refresh();
                metroTabControl1.Refresh();
                metroCheckBox2.Refresh();
                metroCheckBox3.Refresh();
                metroTabPage1.Refresh();
                metroTabPage2.Refresh();
                metroTabPage4.Refresh();
    
                listBox1.Items.Add(DateTime.Now + " - Applied Light Theme");
            }
            // Apply Theme
            void ApplyTheme()
            {
                if (Properties.Settings.Default.Theme == "Dark")
                {
                    Darktheme();
                    metroToggle1.Checked = true;
                    metroToggle1.Invalidate();
                }
                if (Properties.Settings.Default.Theme == "Light")
                {
                    LightTheme();
                    metroToggle1.Checked = false;
                    metroToggle1.Invalidate();
                }
    
                listBox1.Items.Add(DateTime.Now + " - Applied Saved Theme");
            }
            // Load Form
            void MainFormLoad(object sender, System.EventArgs e)
            {
                ApplyTheme();
                ApplyStyle();
                metroTabControl1.SelectedTab = metroTabPage1;
                string version = Assembly.GetExecutingAssembly().GetName().Version.  ToString();
                metroLabel4.Text = "Build " + version;
                this.ShowInTaskbar = true;
                listBox1.Items.Clear();
                listBox1.Items.Add(DateTime.Now + " - Loaded Steam Account Manager");
                listBox1.Items.Add(DateTime.Now + " - Build " + version);
                read_settings();
                if (Properties.Settings.Default.FirstUse1 == true)
                {
                  Properties.Settings.Default.FirstUse1 = false;
                      this.TopMost = false;
                      var FirstUse = new FirstUse();
                    if (FirstUse.ShowDialog(this) == DialogResult.OK)
                    {
                       Properties.Settings.Default.AccountLocation = "C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager";
                       Properties.Settings.Default.SteamLocation = @"C:\Program Files (x86)\Steam\Steam.exe";
                       metroTextBox1.Text = Properties.Settings.Default.SteamLocation;
                       Properties.Settings.Default.Save();         
                       ApplyTheme();
                       ApplyStyle();
                       read_settings();
                       this.TopMost = true;
                       listBox1.Items.Add(DateTime.Now + " - Successfully Executed First Launch");
                       this.TopMost = false;
                    }
                }
    
            }
            // Steam Login
            void LoginToolStripMenuItemClick(object sender, System.EventArgs e)
            {
                if (ListAccounts.SelectedItems.Count == 1)
                {
                    
                    foreach (var process in Process.GetProcessesByName("Steam.exe"))
                    {
                        process.Kill();
                    }
                    ListAccounts.SelectedItems[0].SubItems[2].Text = DateTime.Now.ToString("dd/MM/yyyy");
                    kill_steam();
                    login_steam(Properties.Settings.Default.SteamLocat  ion, ListAccounts.SelectedItems[0].SubItems[0].Text, ListAccounts.SelectedItems[0].SubItems[1].Text);
    
                }
                write_settings();
                if(Properties.Settings.Default.CloseCheck == true)
                {
                    this.Close();
                }
            }
            // Add Account
            void AddAccountToolStripMenuItemClick(object sender, System.EventArgs e)
            {
                var form_account = new form_account();
                if (form_account.ShowDialog(this) == DialogResult.OK)
                {
                    string[] row = { form_account.username, base64_encode(form_account.password), "", form_account.account };
                    var item = new ListViewItem(row);
                    ListAccounts.Items.Add(item);
                    write_settings();
                    listBox1.Items.Add(DateTime.Now + " - Added Account " + form_account.username);
                }
            }
            // Delete Accout
            void DeleteToolStripMenuItemClick(object sender, System.EventArgs e)
            {
                foreach (ListViewItem item in ListAccounts.SelectedItems)
                {
                    item.Remove();
                    listBox1.Items.Add(DateTime.Now + " - Removed " + ListAccounts.SelectedItems);
                }
                write_settings();
            }
            // shut down steam.exe
            void ShutdownSteamToolStripMenuItemClick(object sender, System.EventArgs e)
            {
                kill_steam();
                listBox1.Items.Add(DateTime.Now + " - Stopped Steam.exe process");
             }
            // Close
            private void button2_Click(object sender, EventArgs e)
            {
                this.Close();
            }
            // Add To Startup
            private void metroCheckBox2_CheckedChanged(object sender, EventArgs e)
            {
                if (metroCheckBox2.Checked == true)
                {
                    Properties.Settings.Default.StartWindows = true;
                    if (System****.File.Exists(Environment.GetFolderPath(  Environment.SpecialFolder.Startup) + "/Steam Account Manager.exe"))
                    {
    
                    }
                    else
                    {
                        System****.File.Copy("Steam Account Manager.exe", Environment.GetFolderPath(Environment.SpecialFolde  r.Startup) + "/Steam Account Manager.exe");
                        listBox1.Items.Add(DateTime.Now + " - Added Steam Account Manager To Windows Startup");
                    }
                    Properties.Settings.Default.Save();
                }
                if (metroCheckBox2.Checked == false)
                {
                    Properties.Settings.Default.StartWindows = false;
                    if (System****.File.Exists(Environment.GetFolderPath(  Environment.SpecialFolder.Startup) + "/Steam Account Manager.exe"))
                    {
    
                        System****.File.Delete(Environment.GetFolderPath(E  nvironment.SpecialFolder.Startup) + "/Steam Account Manager.exe");
                        listBox1.Items.Add(DateTime.Now + " - Removed Steam Account Manager From Windows Startup");
                    }
                    Properties.Settings.Default.Save();
                }
            }
            // Auto Close
            private void metroCheckBox3_CheckedChanged(object sender, EventArgs e)
            {
                if (metroCheckBox3.Checked == false)
                {
                    Properties.Settings.Default.CloseCheck = false;
                    Properties.Settings.Default.Save();
                    listBox1.Items.Add(DateTime.Now + " - Disabled Auto Close On Login");
                }
                if (metroCheckBox3.Checked == true)
                {
                    Properties.Settings.Default.CloseCheck = true;
                    Properties.Settings.Default.Save();
                    listBox1.Items.Add(DateTime.Now + " - Enabled Auto Close On Login");
                }
                Properties.Settings.Default.Save();
            }
            // Change Style
            private void metroTile2_Click(object sender, EventArgs e)
            {
                // Generate Style
                var m = new Random();
                int next = m.Next(0, 13);
                this.Style = (MetroColorStyle)next;
                metroTabControl1.Style = (MetroColorStyle)next;
                metroLabel1.Style = (MetroColorStyle)next;
                metroLabel2.Style = (MetroColorStyle)next;
                metroLabel3.Style = (MetroColorStyle)next;
                metroLabel4.Style = (MetroColorStyle)next;
                metroTile1.Style = (MetroColorStyle)next;
                metroTile2.Style = (MetroColorStyle)next;
                metroTile3.Style = (MetroColorStyle)next;
                metroTile4.Style = (MetroColorStyle)next;
                metroTile5.Style = (MetroColorStyle)next;
                metroToggle1.Style = (MetroColorStyle)next;
                metroCheckBox2.Style = (MetroColorStyle)next;
                metroCheckBox3.Style = (MetroColorStyle)next;
                Properties.Settings.Default.Style = (MetroColorStyle)next;
                Properties.Settings.Default.Save();
                //Refresh
                metroLabel1.Refresh();
                metroLabel2.Refresh();
                metroLabel3.Refresh();
                metroLabel4.Refresh();
                metroToggle1.Refresh();
                metroCheckBox2.Refresh();
                metroCheckBox3.Refresh();
                metroTile1.Refresh();
                metroTile2.Refresh();
                metroTile3.Refresh();
                metroTile4.Refresh();
                metroTile5.Refresh();
                this.Refresh();
                metroTabControl1.Refresh();
    
                listBox1.Items.Add(DateTime.Now + " - Changed Style to Style " + (MetroColorStyle)next);
            }
            // Save Style
            void ApplyStyle()
            {
                this.Style = Properties.Settings.Default.Style;
                metroTabControl1.Style = Properties.Settings.Default.Style;
                metroLabel1.Style = Properties.Settings.Default.Style;
                metroLabel2.Style = Properties.Settings.Default.Style;
                metroLabel3.Style = Properties.Settings.Default.Style;
                metroLabel4.Style = Properties.Settings.Default.Style;
                metroTile1.Style = Properties.Settings.Default.Style;
                metroTile2.Style = Properties.Settings.Default.Style;
                metroTile3.Style = Properties.Settings.Default.Style;
                metroTile4.Style = Properties.Settings.Default.Style;
                metroTile5.Style = Properties.Settings.Default.Style;
                metroToggle1.Style = Properties.Settings.Default.Style;
                metroCheckBox2.Style = Properties.Settings.Default.Style;
                metroCheckBox3.Style = Properties.Settings.Default.Style;
    
                listBox1.Items.Add(DateTime.Now + " - Applied Style");
            }
            // Uninstall
            private void metroTile1_Click_1(object sender, EventArgs e)
            {
                DialogResult dialogResult = MetroMessageBox.Show(this, "Are you sure you want to uninstall Steam Account Manager?", "Steam Account Manager", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
    
                if (dialogResult == DialogResult.Yes)
                {
                    ClearFiles();
                    MetroMessageBox.Show(this, "Files have been removed.Steam Account Manager will now close and you can delete it.", "Steam Account Manager",MessageBoxButtons.OK , MessageBoxIcon.Question);
                    this.Close();
                }
                else if (dialogResult == DialogResult.No)
                {
                    return;
                }
            }
            // Reset Files
            private void metroTile3_Click(object sender, EventArgs e)
            {
                try
                {
                    ClearFiles();
                    CreateFiles();
                    MetroMessageBox.Show(this, "Your Files Have Been Reset!", "Steam Account Manager", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    if (System****.File.Exists("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/MetroFramework.zip"))
                    {
                        string zipPath = "C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/MetroFramework.zip";
                        string extractPath = "C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/";
                        ZipFile.ExtractToDirectory(zipPath, extractPath);
                    }
                }
                catch (System.Exception)
                {
                    MetroMessageBox.Show(this, "An error occured while resetting your files, please restart Steam Account Manager and try again.", "Steam Account Manager", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
            }
            // Theme Toggle
            private void metroToggle1_CheckedChanged(object sender, EventArgs e)
            {
                if (metroToggle1.Checked == true)
                {
                    Darktheme();
                    Properties.Settings.Default.Theme = "Dark";
                    Properties.Settings.Default.Save();
                }
                if (metroToggle1.Checked == false)
                {
                    LightTheme();
                    Properties.Settings.Default.Theme = "Light";
                    Properties.Settings.Default.Save();
                }
            }
            // Change Directory for Steam
            private void metroTile4_Click(object sender, EventArgs e)
            {
                metroTextBox1.Text = "";
                openFileDialog1.InitialDirectory = ("C:/Program Files (x86)/Steam");
                openFileDialog1.FileName = ("Steam.exe");
                if (openFileDialog1.ShowDialog() == DialogResult.OK)
                {
                    Properties.Settings.Default.SteamLocation = openFileDialog1.FileName;
                    metroTextBox1.Text = Properties.Settings.Default.SteamLocation;
                    Properties.Settings.Default.Save();
                    listBox1.Items.Add(DateTime.Now + " - Changed Steam.exe Directory");
                }
            }
            // Save Log
            private void metroTile5_Click(object sender, EventArgs e)
            {
                try
                {
                    System****.StreamWriter SaveFile = new System****.StreamWriter("C:/Users/" + Environment.UserName + "/Documents/SteamAccountManager/ExportedLog.txt");
                    foreach (var item in listBox1.Items)
                    {
                        SaveFile.WriteLine(item);
                    }
    
                    SaveFile.Close();
    
                    MetroMessageBox.Show(this, "Log Successfully Exported!", "Steam Account Manager", MessageBoxButtons.OK, MessageBoxIcon.Information);
    
                }
                catch
                {
                    MetroMessageBox.Show(this, "There was an error exporting the log!", "Steam Account Manager", MessageBoxButtons.OK, MessageBoxIcon.Error);
    
                }
            }
            // Checkbox message timer
            private void timer5_Tick(object sender, EventArgs e)
            {
                timer5.Stop();
                MetroMessageBox.Show(this, "You need to download Steam Acocunt Quick Launch from the extras tab first.", "Steam Account Manager", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
    }


    Updated virus scans(can't edit thread for some reason:
    https://www.virustotal.com/en/file/3...1d6d/analysis/
    https://virusscan.jotti.org/en-US/fi...job/2qi55mkw6d


    CLICK TO BUY NOW!!


    Quote Originally Posted by Liz View Post
    This is my first vouch, ever. Rapidgator account worked perfectly. Would buy in the future.

  4. #3
    ImWhacky's Avatar
    Join Date
    Sep 2015
    Gender
    male
    Posts
    509
    Reputation
    56
    Thanks
    4,059
    My Mood
    Breezy
    Quote Originally Posted by Smoke View Post
    sorry, had to try to post this 3 times, got confused lol

  5. #4
    Smoke's Avatar
    Join Date
    Nov 2014
    Gender
    male
    Posts
    11,899
    Reputation
    2661
    Thanks
    4,610
    My Mood
    Amazed
    Approved.

    Use at your OWN risk and let me know what happens.


    CLICK TO BUY NOW!!


    Quote Originally Posted by Liz View Post
    This is my first vouch, ever. Rapidgator account worked perfectly. Would buy in the future.

  6. #5
    Jasmine's Avatar
    Join Date
    Feb 2015
    Gender
    female
    Location
    Your heart <3
    Posts
    481
    Reputation
    19
    Thanks
    1,761
    My Mood
    Amused
    Neat release.

  7. #6
    SweetSyrup's Avatar
    Join Date
    Apr 2015
    Gender
    male
    Location
    /r/globaloffensive
    Posts
    234
    Reputation
    10
    Thanks
    8
    My Mood
    Psychedelic
    Quote Originally Posted by Smoke View Post
    Approved.

    Use at your OWN risk and let me know what happens.
    Uh is this bannable?

  8. #7
    ImWhacky's Avatar
    Join Date
    Sep 2015
    Gender
    male
    Posts
    509
    Reputation
    56
    Thanks
    4,059
    My Mood
    Breezy
    Quote Originally Posted by SweetSyrup View Post
    Uh is this bannable?
    Nope, all it does is switch between your accounts.

  9. #8
    MAFI55's Avatar
    Join Date
    Feb 2016
    Gender
    male
    Location
    Omsk
    Posts
    3
    Reputation
    10
    Thanks
    0
    My Mood
    Cool
    how to change the folder to save the data?
    I do not have disk C
    the operating system on the disk F
    Last edited by MAFI55; 03-02-2016 at 03:12 AM.

  10. #9
    ImWhacky's Avatar
    Join Date
    Sep 2015
    Gender
    male
    Posts
    509
    Reputation
    56
    Thanks
    4,059
    My Mood
    Breezy
    Quote Originally Posted by MAFI55 View Post
    how to change the folder to save the data?
    I do not have disk C
    the operating system on the disk F
    in the settings tab there is a button to change the steam.exe location, press it and navigate to where your steam is installed and select steam.exe

  11. #10
    MAFI55's Avatar
    Join Date
    Feb 2016
    Gender
    male
    Location
    Omsk
    Posts
    3
    Reputation
    10
    Thanks
    0
    My Mood
    Cool
    it appears when you first start ...

    [
    when you first start it happens

  12. #11
    ImWhacky's Avatar
    Join Date
    Sep 2015
    Gender
    male
    Posts
    509
    Reputation
    56
    Thanks
    4,059
    My Mood
    Breezy
    Quote Originally Posted by MAFI55 View Post
    it appears when you first start ...

    [
    when you first start it happens
    OH, my bad i thought you meant steam.exe location, a new update will be coming out today that addresses that problem, there is currently no way to change it, I am releasing v1.1 tonight that will have new features and it should fix the problem you are facing, everything is done but I am still rendering the video. You will also be in the credits for showing me this bug, thank you.

    and here is a sneak peek of the new version


    *Update* should be done in the next 30-60 mins.

    - - - Updated - - -

    VERSION 1.1 HAS BEEN RELEASED
    https://www.mpgh.net/forum/showthread...0#post11433610
    Last edited by ImWhacky; 03-02-2016 at 03:45 PM.

  13. #12
    Smoke's Avatar
    Join Date
    Nov 2014
    Gender
    male
    Posts
    11,899
    Reputation
    2661
    Thanks
    4,610
    My Mood
    Amazed
    New version has been released HERE.

    /Closed.


    CLICK TO BUY NOW!!


    Quote Originally Posted by Liz View Post
    This is my first vouch, ever. Rapidgator account worked perfectly. Would buy in the future.

Similar Threads

  1. [Outdated] Steam Account Manager v1.1 (With Source)
    By ImWhacky in forum Steam Games Hacks & Cheats
    Replies: 10
    Last Post: 03-12-2016, 01:09 PM
  2. [WTS]steam account reg date 2003 with dota 2 and a DOTA 2 gift
    By GankWithMe in forum Selling Accounts/Keys/Items
    Replies: 2
    Last Post: 12-17-2012, 02:09 AM
  3. Replies: 2
    Last Post: 11-01-2011, 05:34 PM
  4. [Selling] Steam Account Latest all Verified with my Email ID
    By Blacksh@dow in forum Selling Accounts/Keys/Items
    Replies: 0
    Last Post: 03-31-2011, 11:44 PM
  5. Trading 2 CA accounts for Steam Account (BOTH HAS NX WITH PERMS)
    By InCognito in forum Selling Accounts/Keys/Items
    Replies: 8
    Last Post: 07-18-2010, 04:51 AM