Steam Account Manager v1.2 (With Source)

Full Size Pictures





Changelog
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 auto-close 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 re-assign 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 re-assign 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 re-design it and decided to remove it until it is finished)
- Added Steam Chat Spammer
- Added Reset Files (re-installs 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
- In-Application 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 Auto-Close 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 Re-sizing 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
v1.0 (Re-Release)
- had to remove extras tab and all of its contents
v1.1
- Moved Settings to separate dialog box (press settings icon at top of program)
- Added Message Spammer
- Added Style Selection
- Added Selected Account Display
- Added Login button to home tab
- Added Opacity Slider
- Added Game Commands (CSGO and Dota 2 (More comming soon))
- Added DLL Injector (Use at your own risk)
- Added Opacity but its buggy so its disabled until version 1.2
- Added Style Selection at first launch
- Added Color Changing with progress at first launch
- Added Loading bar at start
- Removed Random Style
- Removed need for right click to login
- Removed Spinner at first launch
- Changed Add Account Layout
- Changed Program Width and Height
- Changed Program Layout
- Changed Program Shadow Type
- Changed First Use selection wait time to account for new style options (now 20 seconds)
- Changed way accounts file is stored (thanks to MAFI55 for pointing this error out)
v1.2
- Updated to MetroFramework v1.3.5
- Added Ability to move Steam Account Manager files
- Added Master Password (Extra Security Step) (Optional)
- Added Opacity Changer (Slider)
- Added New Theme Changing System
- Added New Style Changing System
- Added Random Style Generating on setup
- Added Progress Spinner in setup
- Added Metro Context Menu
- Added New Encryption Method
- Added New Decryption Method
- Added New Randomized Salt Key
- Added New Randomized VI Key
- Added New Randomized PasswordHash
- Added Random String Adder to Message Spammer
- Added Random String Spammer to Message Spammer
- Added Steam Backup Manager
- Added Information Menu
- Added New settings and information button icons
- Added Account File Importing
- Added Account Editing
- Added New Account Pictures
- Removed Old Account Pictures
- Removed Old Decryption Method
- Removed Old Encryption Method
- Removed Original Context Menu
- Removed Progress Bar in setup
- Removed Injector
- Removed Header from settings
- Removed Resources that were not needed, file size should now be smaller
- Fixed bug that caused the password toggle to start unchecked when adding account
- Reduced Setup Time
- 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 auto-close 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 re-assign 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 re-assign 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 re-design it and decided to remove it until it is finished)
- Added Steam Chat Spammer
- Added Reset Files (re-installs 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
- In-Application 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 Auto-Close 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 Re-sizing 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
v1.0 (Re-Release)
- had to remove extras tab and all of its contents
v1.1
- Moved Settings to separate dialog box (press settings icon at top of program)
- Added Message Spammer
- Added Style Selection
- Added Selected Account Display
- Added Login button to home tab
- Added Opacity Slider
- Added Game Commands (CSGO and Dota 2 (More comming soon))
- Added DLL Injector (Use at your own risk)
- Added Opacity but its buggy so its disabled until version 1.2
- Added Style Selection at first launch
- Added Color Changing with progress at first launch
- Added Loading bar at start
- Removed Random Style
- Removed need for right click to login
- Removed Spinner at first launch
- Changed Add Account Layout
- Changed Program Width and Height
- Changed Program Layout
- Changed Program Shadow Type
- Changed First Use selection wait time to account for new style options (now 20 seconds)
- Changed way accounts file is stored (thanks to MAFI55 for pointing this error out)
v1.2
- Updated to MetroFramework v1.3.5
- Added Ability to move Steam Account Manager files
- Added Master Password (Extra Security Step) (Optional)
- Added Opacity Changer (Slider)
- Added New Theme Changing System
- Added New Style Changing System
- Added Random Style Generating on setup
- Added Progress Spinner in setup
- Added Metro Context Menu
- Added New Encryption Method
- Added New Decryption Method
- Added New Randomized Salt Key
- Added New Randomized VI Key
- Added New Randomized PasswordHash
- Added Random String Adder to Message Spammer
- Added Random String Spammer to Message Spammer
- Added Steam Backup Manager
- Added Information Menu
- Added New settings and information button icons
- Added Account File Importing
- Added Account Editing
- Added New Account Pictures
- Removed Old Account Pictures
- Removed Old Decryption Method
- Removed Old Encryption Method
- Removed Original Context Menu
- Removed Progress Bar in setup
- Removed Injector
- Removed Header from settings
- Removed Resources that were not needed, file size should now be smaller
- Fixed bug that caused the password toggle to start unchecked when adding account
- Reduced Setup Time
Source Code
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;
using System.Security.Cryptography;
using System.Linq;
namespace Steam_Account_Manager
{
public partial class form_main : MetroFramework.Forms.MetroForm
{
// Main Form
public form_main()
{
this.ShowInTaskbar = true;
InitializeComponent();
ListAccounts1.Items.Clear();
read_settings();
this.StyleManager = msmMain;
metroTabControl1.StyleManager = msmMain;
GetStyle();
}
// Kill Steam.exe Process
void kill_steam()
{
try
{
Process[] proc = Process.GetProcessesByName("Steam");
proc[0].Kill();
listBox1.Items.Add(" - Killed Steam.exe Process");
}
catch { }
}
//Log Into Steam
void login_steam(string steam_location, string username, string password)
{
Process.Start(steam_location, " -login " + username + " " + Decrypt(password));
listBox1.Items.Add(" - Attempted Steam Login Under Account Name '" + username + "'");
}
//Write Settings
public void write_settings()
{
string output = "";
foreach (ListViewItem item in ListAccounts1.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(" - Wrote Settings");
}
// Read Settings File
public void read_settings()
{
ListAccounts1.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);
ListAccounts1.Items.Add(item);
}
file.Close();
listBox1.Items.Add(" - Read Settings");
}
// Get Style
public void GetStyle()
{
msmMain.Theme = Properties.Settings.Default.Theme;
msmMain.Style = Properties.Settings.Default.Style;
}
// ListColor
public void ListColor()
{
if (msmMain.Style == MetroColorStyle.Black)
{
ListAccounts1.ForeColor = Color.Black;
listBox1.ForeColor = Color.Black;
listBox1.Refresh();
ListAccounts1.Refresh();
}
if (msmMain.Style == MetroColorStyle.White)
{
ListAccounts1.ForeColor = Color.White;
listBox1.ForeColor = Color.White;
listBox1.Refresh();
ListAccounts1.Refresh();
}
if (msmMain.Style == MetroColorStyle.Blue)
{
ListAccounts1.ForeColor = Color.FromArgb(0, 174, 219);
listBox1.ForeColor = Color.FromArgb(0, 174, 219);
listBox1.Refresh();
ListAccounts1.Refresh();
}
if (msmMain.Style == MetroColorStyle.Brown)
{
ListAccounts1.ForeColor = Color.FromArgb(165, 81, 0);
listBox1.ForeColor = Color.FromArgb(165, 81, 0);
listBox1.Refresh();
ListAccounts1.Refresh();
}
if (msmMain.Style == MetroColorStyle.Green)
{
ListAccounts1.ForeColor = Color.FromArgb(0, 177, 89);
listBox1.ForeColor = Color.FromArgb(0, 177, 89);
listBox1.Refresh();
ListAccounts1.Refresh();
}
if (msmMain.Style == MetroColorStyle.Lime)
{
ListAccounts1.ForeColor = Color.FromArgb(131, 188, 0);
listBox1.ForeColor = Color.FromArgb(131, 188, 0);
listBox1.Refresh();
ListAccounts1.Refresh();
}
if (msmMain.Style == MetroColorStyle.Magenta)
{
ListAccounts1.ForeColor = Color.FromArgb(255, 0, 148);
listBox1.ForeColor = Color.FromArgb(255, 0, 148);
listBox1.Refresh();
ListAccounts1.Refresh();
}
if (msmMain.Style == MetroColorStyle.Orange)
{
ListAccounts1.ForeColor = Color.FromArgb(243, 119, 53);
listBox1.ForeColor = Color.FromArgb(243, 119, 53);
listBox1.Refresh();
ListAccounts1.Refresh();
}
if (msmMain.Style == MetroColorStyle.Pink)
{
ListAccounts1.ForeColor = Color.FromArgb(231, 113, 189);
listBox1.ForeColor = Color.FromArgb(231, 113, 189);
listBox1.Refresh();
ListAccounts1.Refresh();
}
if (msmMain.Style == MetroColorStyle.Purple)
{
ListAccounts1.ForeColor = Color.FromArgb(124, 65, 153);
listBox1.ForeColor = Color.FromArgb(124, 65, 153);
listBox1.Refresh();
ListAccounts1.Refresh();
}
if (msmMain.Style == MetroColorStyle.Red)
{
ListAccounts1.ForeColor = Color.FromArgb(209, 17, 65);
listBox1.ForeColor = Color.FromArgb(209, 17, 65);
listBox1.Refresh();
ListAccounts1.Refresh();
}
if (msmMain.Style == MetroColorStyle.Silver)
{
ListAccounts1.ForeColor = Color.FromArgb(85, 85, 85);
listBox1.ForeColor = Color.FromArgb(85, 85, 85);
listBox1.Refresh();
ListAccounts1.Refresh();
}
if (msmMain.Style == MetroColorStyle.Teal)
{
ListAccounts1.ForeColor = Color.FromArgb(0, 170, 173);
listBox1.ForeColor = Color.FromArgb(0, 170, 173);
listBox1.Refresh();
ListAccounts1.Refresh();
}
if (msmMain.Style == MetroColorStyle.Yellow)
{
ListAccounts1.ForeColor = Color.FromArgb(255, 196, 37);
listBox1.ForeColor = Color.FromArgb(255, 196, 37);
listBox1.Refresh();
ListAccounts1.Refresh();
}
}
// Apply All
public void ApplyAll()
{
if (Properties.Settings.Default.Theme == MetroThemeStyle.Dark)
{
ListAccounts1.BackColor = Color.FromArgb(17, 17, 17);
listBox1.BackColor = Color.FromArgb(17, 17, 17);
listBox1.Refresh();
ListAccounts1.Refresh();
}
if (Properties.Settings.Default.Theme == MetroThemeStyle.Light)
{
ListAccounts1.BackColor = Color.White;
listBox1.BackColor = Color.White;
listBox1.Refresh();
ListAccounts1.Refresh();
}
ListColor();
metroLabel2.Theme = msmMain.Theme;
metroLabel4.Theme = msmMain.Theme;
metroLabel12.Theme = msmMain.Theme;
metroLabel10.Theme = msmMain.Theme;
metroLabel12.Theme = msmMain.Theme;
metroLabel11.Theme = msmMain.Theme;
metroLabel16.Theme = msmMain.Theme;
metroLabel10.Theme = msmMain.Theme;
metroToolTip1.Theme = msmMain.Theme;
this.Theme = msmMain.Theme;
metroTabControl1.Theme = msmMain.Theme;
metroTabPage1.Theme = msmMain.Theme;
metroTabPage3.Theme = msmMain.Theme;
metroTabPage4.Theme = msmMain.Theme;
metroContextMenu1.Theme = msmMain.Theme;
// Apply Style
this.Style = msmMain.Style;
metroTabControl1.Style = msmMain.Style;
metroLabel2.Style = msmMain.Style;
//metroLabel3.Style = msmMain.Style;
metroContextMenu1.Style = msmMain.Style;
metroLabel4.Style = msmMain.Style;
metroLabel12.Style = msmMain.Style;
metroLabel16.Style = msmMain.Style;
metroLabel11.Style = msmMain.Style;
metroLabel10.Style = msmMain.Style;
metroTile2.Style = msmMain.Style;
metroTile3.Style = msmMain.Style;
metroTile5.Style = msmMain.Style;
metroTile6.Style = msmMain.Style;
metroTile7.Style = msmMain.Style;
Refresh();
}
// Load Form
void MainFormLoad(object sender, System.EventArgs e)
{
this.Hide();
if (Properties.Settings.Default.MasterPasswordPasswor d.Length > 0)
{
var MasterPassword = new MasterPassword();
if (MasterPassword.ShowDialog(this) == DialogResult.OK)
{
if (Properties.Settings.Default.FirstUse1 == true)
{
Properties.Settings.Default.FirstUse1 = false;
this.TopMost = false;
var FirstUse = new Setup();
if (FirstUse.ShowDialog(this) == DialogResult.OK)
{
metroTabControl1.SelectedTab = metroTabPage1;
Properties.Settings.Default.AccountLocation = Environment.GetFolderPath(Environment.SpecialFolde r.MyDocuments) + "/SteamAccountManager";
Properties.Settings.Default.SteamLocation = @"C:\Program Files (x86)\Steam\Steam.exe";
Properties.Settings.Default.Save();
read_settings();
listBox1.Items.Add(" - Successfully Executed First Launch");
this.TopLevel = true;
string version = Assembly.GetExecutingAssembly().GetName().Version. ToString();
metroLabel4.Text = "Version " + version;
this.ShowInTaskbar = true;
listBox1.Items.Clear();
listBox1.Items.Add("| Steam Account Manager Activity Log |");
listBox1.Items.Add(" Build " + version);
listBox1.Items.Add(" Date " + DateTime.Now);
listBox1.Items.Add(" ");
pictureBox1.Image = Properties.Resources.SelectAccount;
this.Show();
}
}
else
{
metroTabControl1.SelectedTab = metroTabPage1;
string version = Assembly.GetExecutingAssembly().GetName().Version. ToString();
metroLabel4.Text = "Version " + version;
this.ShowInTaskbar = true;
listBox1.Items.Clear();
listBox1.Items.Add("| Steam Account Manager Activity Log |");
listBox1.Items.Add(" Build " + version);
listBox1.Items.Add(" Date " + DateTime.Now);
listBox1.Items.Add(" ");
read_settings();
pictureBox1.Image = Properties.Resources.SelectAccount;
this.Show();
}
GetStyle();
ApplyAll();
Refresh();
this.Opacity = Properties.Settings.Default.Opacity;
}
}
if (Properties.Settings.Default.MasterPasswordPasswor d.Length == 0)
{
if (Properties.Settings.Default.FirstUse1 == true)
{
Properties.Settings.Default.FirstUse1 = false;
this.TopMost = false;
var FirstUse = new Setup();
if (FirstUse.ShowDialog(this) == DialogResult.OK)
{
metroTabControl1.SelectedTab = metroTabPage1;
Properties.Settings.Default.AccountLocation = Environment.GetFolderPath(Environment.SpecialFolde r.MyDocuments) + "/SteamAccountManager";
Properties.Settings.Default.SteamLocation = @"C:\Program Files (x86)\Steam\Steam.exe";
Properties.Settings.Default.Save();
read_settings();
listBox1.Items.Add(" - Successfully Executed First Launch");
this.TopLevel = true;
string version = Assembly.GetExecutingAssembly().GetName().Version. ToString();
metroLabel4.Text = "Version " + version;
this.ShowInTaskbar = true;
listBox1.Items.Clear();
listBox1.Items.Add("| Steam Account Manager Activity Log |");
listBox1.Items.Add(" Build " + version);
listBox1.Items.Add(" Date " + DateTime.Now);
listBox1.Items.Add(" ");
pictureBox1.Image = Properties.Resources.SelectAccount;
this.Enabled = true;
this.Show();
}
}
else
{
metroTabControl1.SelectedTab = metroTabPage1;
string version = Assembly.GetExecutingAssembly().GetName().Version. ToString();
metroLabel4.Text = "Version " + version;
this.ShowInTaskbar = true;
listBox1.Items.Clear();
listBox1.Items.Add("| Steam Account Manager Activity Log |");
listBox1.Items.Add(" Build " + version);
listBox1.Items.Add(" Date " + DateTime.Now);
listBox1.Items.Add(" ");
read_settings();
pictureBox1.Image = Properties.Resources.SelectAccount;
this.Enabled = true;
this.Show();
}
GetStyle();
ApplyAll();
Refresh();
this.Opacity = Properties.Settings.Default.Opacity;
}
}
// Steam Login
void LoginToolStripMenuItemClick(object sender, System.EventArgs e)
{
if (ListAccounts1.SelectedItems.Count == 1)
{
foreach (var process in Process.GetProcessesByName("Steam.exe"))
{
process.Kill();
}
ListAccounts1.SelectedItems[0].SubItems[2].Text = DateTime.Now.ToString("dd/MM/yyyy");
kill_steam();
login_steam(Properties.Settings.Default.SteamLocat ion, ListAccounts1.SelectedItems[0].SubItems[0].Text, ListAccounts1.SelectedItems[0].SubItems[1].Text);
}
write_settings();
if(Properties.Settings.Default.CloseCheck == true)
{
this.Close();
}
}
// Save Log
private void metroTile5_Click(object sender, EventArgs e)
{
try
{
System****.StreamWriter SaveFile = new System****.StreamWriter(Environment.GetFolderPath( Environment.SpecialFolder.MyDocuments) + "/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);
}
}
// Message Spam Launch
private void metroTile6_Click(object sender, EventArgs e)
{
MessageSpam frm = new MessageSpam();
frm.Show();
}
// Change Selected Account
private void ListAccounts1_SelectedIndexChanged(object sender, EventArgs e)
{
GetInfo();
}
// Get ListAccounts1 Info
void GetInfo()
{
if (ListAccounts1.SelectedItems.Count > 0)
{
if (ListAccounts1.SelectedItems[0].SubItems[3].Text == "Main")
{
pictureBox1.Image = Properties.Resources.MainBig;
}
if (ListAccounts1.SelectedItems[0].SubItems[3].Text == "Smurf")
{
pictureBox1.Image = Properties.Resources.SmurfBig;
}
if (ListAccounts1.SelectedItems[0].SubItems[3].Text == "Other")
{
pictureBox1.Image = Properties.Resources.OtherBig;
}
metroLabel10.Text = "Username: " + ListAccounts1.SelectedItems[0].SubItems[0].Text;
metroLabel12.Text = "Password: " + ListAccounts1.SelectedItems[0].SubItems[1].Text;
metroLabel11.Text = "Last Login: " + ListAccounts1.SelectedItems[0].SubItems[2].Text;
metroTile2.Enabled = true;
}
else
{
metroTile2.Enabled = false;
}
}
// Login Button
private void metroTile2_Click(object sender, EventArgs e)
{
if (ListAccounts1.SelectedItems.Count == 1)
{
foreach (var process in Process.GetProcessesByName("Steam.exe"))
{
process.Kill();
}
ListAccounts1.SelectedItems[0].SubItems[2].Text = DateTime.Now.ToString("dd/MM/yyyy");
kill_steam();
login_steam(Properties.Settings.Default.SteamLocat ion, ListAccounts1.SelectedItems[0].SubItems[0].Text, ListAccounts1.SelectedItems[0].SubItems[1].Text);
}
write_settings();
if (Properties.Settings.Default.CloseCheck == true)
{
this.Close();
}
}
// Launch Game Commands
private void metroTile7_Click(object sender, EventArgs e)
{
GameCommands frm = new GameCommands();
frm.Show();
}
// Launch Settings
private void pictureBox2_Click(object sender, EventArgs e)
{
Settings frm2 = new Settings();
frm2.ShowDialog();
}
// Launch Steam Backup Manager
private void metroTile3_Click(object sender, EventArgs e)
{
SteamBackup frm = new SteamBackup();
frm.Show();
}
private void pictureBox3_Click(object sender, EventArgs e)
{
Help frm = new Help();
frm.Show();
}
private void testToolStripMenuItem_Click(object sender, EventArgs e)
{
var form_account = new form_account();
if (form_account.ShowDialog(this) == DialogResult.OK)
{
string[] row = { form_account.username, Encrypt(form_account.password), "", form_account.account };
var item = new ListViewItem(row);
ListAccounts1.Items.Add(item);
write_settings();
listBox1.Items.Add(" - Added Account " + form_account.username);
this.TopMost = true;
this.TopMost = false;
}
this.TopMost = true;
this.TopMost = false;
}
private void removeAccountToolStripMenuItem_Click(object sender, EventArgs e)
{
foreach (ListViewItem item in ListAccounts1.SelectedItems)
{
item.Remove();
listBox1.Items.Add(" - Removed " + ListAccounts1.SelectedItems);
metroLabel10.Text = "Username: Waiting...";
metroLabel11.Text = "Last Login: Waiting...";
metroLabel12.Text = "Password: Waiting...";
metroTile2.Enabled = false;
pictureBox1.Image = Properties.Resources.SelectAccount;
}
write_settings();
}
private void closeSteamToolStripMenuItem_Click(object sender, EventArgs e)
{
kill_steam();
listBox1.Items.Add(" - Stopped Steam.exe process");
}
private void importAccountsToolStripMenuItem_Click(object sender, EventArgs e)
{
openFileDialog1.FileName = ("SasData.dat");
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
if (!System****.File.Exists(openFileDialog1.FileName) )
return;
var file = new StreamReader(openFileDialog1.FileName);
string line;
while ((line = file.ReadLine()) != null)
{
string[] data = line.Split('|');
var item = new ListViewItem(data);
ListAccounts1.Items.Add(item);
}
file.Close();
listBox1.Items.Add(" - Read Settings");
write_settings();
}
}
private void editAccountsToolStripMenuItem_Click(object sender, EventArgs e)
{
var form_edit = new form_edit();
if (form_edit.ShowDialog(this) == DialogResult.OK)
{
string[] row = { form_edit.username, Encrypt(form_edit.password), "", form_edit.account };
var item = new ListViewItem(row);
ListAccounts1.Items.Add(item);
write_settings();
listBox1.Items.Add(" - Added Account " + form_edit.username);
this.TopMost = true;
this.TopMost = false;
foreach (ListViewItem item1 in ListAccounts1.SelectedItems)
{
item1.Remove();
listBox1.Items.Add(" - Removed " + ListAccounts1.SelectedItems);
metroLabel10.Text = "Username: Waiting...";
metroLabel11.Text = "Last Login: Waiting...";
metroLabel12.Text = "Password: Waiting...";
metroTile2.Enabled = false;
pictureBox1.Image = Properties.Resources.SelectAccount;
}
write_settings();
}
this.TopMost = true;
this.TopMost = false;
}
}
}
Virus Scans
Jotti - Click Here!
Virus Total - Click Here!
Credits:
ImWhacky (Program)
MAFI55 (Pointed out bug)



i like