diff --git a/VapeV114514/App.config b/VapeV114514/App.config index 8fc0551..d562936 100644 --- a/VapeV114514/App.config +++ b/VapeV114514/App.config @@ -1,6 +1,6 @@ - - - - - - + + + + + + diff --git a/VapeV114514/Form1.Designer.cs b/VapeV114514/Form1.Designer.cs index ad86bfb..3ac901d 100644 --- a/VapeV114514/Form1.Designer.cs +++ b/VapeV114514/Form1.Designer.cs @@ -1,73 +1,73 @@ -namespace VapeV114514 -{ - partial class Form1 - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.button1 = new System.Windows.Forms.Button(); - this.progressBar1 = new System.Windows.Forms.ProgressBar(); - this.SuspendLayout(); - // - // button1 - // - this.button1.Location = new System.Drawing.Point(12, 12); - this.button1.Name = "button1"; - this.button1.Size = new System.Drawing.Size(423, 62); - this.button1.TabIndex = 0; - this.button1.Text = "Inject"; - this.button1.UseVisualStyleBackColor = true; - this.button1.Click += new System.EventHandler(this.button1_Click); - // - // progressBar1 - // - this.progressBar1.Location = new System.Drawing.Point(12, 106); - this.progressBar1.Name = "progressBar1"; - this.progressBar1.Size = new System.Drawing.Size(423, 26); - this.progressBar1.TabIndex = 1; - // - // Form1 - // - this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 22F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(447, 157); - this.Controls.Add(this.progressBar1); - this.Controls.Add(this.button1); - this.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6); - this.Name = "Form1"; - this.Text = "VapeV114514 Client"; - this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.Form1_FormClosed); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.Button button1; - private System.Windows.Forms.ProgressBar progressBar1; - } +namespace VapeV114514 +{ + partial class Form1 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.button1 = new System.Windows.Forms.Button(); + this.progressBar1 = new System.Windows.Forms.ProgressBar(); + this.SuspendLayout(); + // + // button1 + // + this.button1.Location = new System.Drawing.Point(12, 12); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(423, 62); + this.button1.TabIndex = 0; + this.button1.Text = "Inject"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // progressBar1 + // + this.progressBar1.Location = new System.Drawing.Point(12, 103); + this.progressBar1.Name = "progressBar1"; + this.progressBar1.Size = new System.Drawing.Size(423, 29); + this.progressBar1.TabIndex = 1; + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 22F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(447, 157); + this.Controls.Add(this.progressBar1); + this.Controls.Add(this.button1); + this.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6); + this.Name = "Form1"; + this.Text = "VapeV114514 Client"; + this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.Form1_FormClosed); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Button button1; + private System.Windows.Forms.ProgressBar progressBar1; + } } \ No newline at end of file diff --git a/VapeV114514/Form1.cs b/VapeV114514/Form1.cs index 8d20e34..8b29330 100644 --- a/VapeV114514/Form1.cs +++ b/VapeV114514/Form1.cs @@ -1,78 +1,70 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using LogSystem; -using System.Diagnostics; -using System.Threading; -using System.Windows.Forms; -using System.Runtime.InteropServices; -using System.IO; -using System.Media; - -namespace VapeV114514 -{ - public partial class Form1 : Form - { - public Form1() - { - InitializeComponent(); - CheckForIllegalCrossThreadCalls = false; - } - Log log = new Log(); - SoundPlayer sp = new SoundPlayer(Properties.Resource.g); - private void button1_Click(object sender, EventArgs e) - { - Thread th = new Thread(progress); - th.Start(); - } - public bool FindThread(string threadName) - { - Process[] processList = Process.GetProcesses(); - foreach (Process process in processList) - { - if (process.ProcessName.ToLower() == threadName.ToLower()) - { - return true; - } - } - return false; - } - - private void progress() - { - button1.Enabled = false; - button1.Text = "Injecting..."; - int i = 0; - while (true) - { - progressBar1.Value = i; - i++; - Thread.Sleep(100); - if (progressBar1.Value >= 100) - { - OpenMedia(); - log.Error("2333333333333333333333333333333333333"); - break; - } - } - } - void OpenMedia() - { - sp.PlayLooping(); - } - - void CloseMedia() - { - sp.Stop(); - } - - private void Form1_FormClosed(object sender, FormClosedEventArgs e) - { - CloseMedia(); - } - } -} +using System; +using LogSystem; +using System.Diagnostics; +using System.Threading; +using System.Windows.Forms; +using System.Media; + +namespace VapeV114514 +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + CheckForIllegalCrossThreadCalls = false; + } + Log log = new Log(); + SoundPlayer sp = new SoundPlayer(Properties.Resource.g); + private void button1_Click(object sender, EventArgs e) + { + Thread th = new Thread(progress); + th.Start(); + } + public bool FindThread(string threadName) + { + Process[] processList = Process.GetProcesses(); + foreach (Process process in processList) + { + if (process.ProcessName.ToLower() == threadName.ToLower()) + { + return true; + } + } + return false; + } + + private void progress() + { + button1.Enabled = false; + button1.Text = "Injecting..."; + int i = 0; + while (true) + { + progressBar1.Value = i; + i++; + Thread.Sleep(100); + if (progressBar1.Value >= 100) + { + OpenMedia(); + log.Error("2333333333333333333333333333333333333"); + break; + } + } + } + void OpenMedia() + { + sp.PlayLooping(); + } + + void CloseMedia() + { + sp.Stop(); + } + + private void Form1_FormClosed(object sender, FormClosedEventArgs e) + { + CloseMedia(); + } + } +} diff --git a/VapeV114514/Form1.resx b/VapeV114514/Form1.resx index 1af7de1..29dcb1b 100644 --- a/VapeV114514/Form1.resx +++ b/VapeV114514/Form1.resx @@ -1,120 +1,120 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + \ No newline at end of file diff --git a/VapeV114514/Program.cs b/VapeV114514/Program.cs index 2193c0f..782785b 100644 --- a/VapeV114514/Program.cs +++ b/VapeV114514/Program.cs @@ -1,56 +1,53 @@ -using System; -using System.Collections; -using System.Linq; -using System.Windows.Forms; -using System.Text; -using LogSystem; -using System.Threading; - -namespace VapeV114514 -{ - class Program - { - static void Main(string[] args) - { - Thread th = new Thread(SleepingThread); - th.Start(); - } - public static void SleepingThread() - { - Log log = new Log(); - int i = 0; - while (i <= 48) - { - StringBuilder replacement = new StringBuilder("."); - for (int q = 0; q < i; q++) - { - replacement.Append("."); - } - Thread.Sleep(50); - log.Info("Initializing VapeV114514" + replacement.ToString()); - i++; - } - log.Error("Find 6 errors in namesapce \"LogSystem\""); - Thread.Sleep(2000); - log.Error("Error log has been printed"); - Thread.Sleep(2000); - log.Error("Error Code:114"); - Thread.Sleep(2000); - log.Error("Please send this code to the operator who created LogSystem"); - Thread.Sleep(1000); - log.Error("Or just expect that it will fixed by LogSys himself"); - Thread.Sleep(2000); - log.Info("VapeV114514 has been Initialized"); - Thread.Sleep(2000); - log.Warning("Althouth something in trouble, it can run!"); - Thread.Sleep(1000); - log.Warning("Anyway, starting VapeV114514 now"); - Thread.Sleep(2000); - log.Warning("It may take a while"); - Thread.Sleep(1000); - log.Warning("please keep waiting"); - Thread.Sleep(3000); - Application.Run(new Form1()); - } - } -} +using System.Windows.Forms; +using System.Text; +using LogSystem; +using System.Threading; + +namespace VapeV114514 +{ + class Program + { + static void Main(string[] args) + { + Thread th = new Thread(SleepingThread); + th.Start(); + } + public static void SleepingThread() + { + Log log = new Log(); + int i = 0; + while (i <= 48) + { + StringBuilder replacement = new StringBuilder("."); + for (int q = 0; q < i; q++) + { + replacement.Append("."); + } + Thread.Sleep(50); + log.Info("Initializing VapeV114514" + replacement.ToString()); + i++; + } + log.Error("Find 6 errors in namesapce \"LogSystem\""); + Thread.Sleep(2000); + log.Error("Error log has been printed"); + Thread.Sleep(2000); + log.Error("Error Code:114"); + Thread.Sleep(2000); + log.Error("Please send this code to the operator who created LogSystem"); + Thread.Sleep(1000); + log.Error("Or just expect that it will fixed by LogSys himself"); + Thread.Sleep(2000); + log.Info("VapeV114514 has been Initialized"); + Thread.Sleep(2000); + log.Warning("Althouth something in trouble, it can run!"); + Thread.Sleep(1000); + log.Warning("Anyway, starting VapeV114514 now"); + Thread.Sleep(2000); + log.Warning("It may take a while"); + Thread.Sleep(1000); + log.Warning("please keep waiting"); + Thread.Sleep(3000); + Application.Run(new Form1()); + } + } +} diff --git a/VapeV114514/VapeV114514.csproj b/VapeV114514/VapeV114514.csproj index 19837c5..4e18bdc 100644 --- a/VapeV114514/VapeV114514.csproj +++ b/VapeV114514/VapeV114514.csproj @@ -1,88 +1,88 @@ - - - - - Debug - AnyCPU - {18029E3C-3F35-4FA2-85BE-9CAC904F6EE1} - Exe - VapeV114514 - VapeV114514 - v4.7.1 - 512 - true - true - - - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - ..\..\..\logSys\LogSystem\LogSystem\bin\Debug\LogSystem.dll - - - - - - - - - - - - - - - Form - - - Form1.cs - - - - - True - True - Resource.resx - - - - - - - - Form1.cs - - - ResXFileCodeGenerator - Resource.Designer.cs - - - - - - - - - - - - + + + + + Debug + AnyCPU + {18029E3C-3F35-4FA2-85BE-9CAC904F6EE1} + Exe + VapeV114514 + VapeV114514 + v4.7.1 + 512 + true + true + + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + using\LogSystem.dll + + + + + + + + + + + + + + + Form + + + Form1.cs + + + + + True + True + Resource.resx + + + + + + + + Form1.cs + + + ResXFileCodeGenerator + Resource.Designer.cs + + + + + + + + + + + + \ No newline at end of file diff --git a/VapeV114514/using/LogSystem.dll b/VapeV114514/using/LogSystem.dll new file mode 100644 index 0000000..9b42fa2 Binary files /dev/null and b/VapeV114514/using/LogSystem.dll differ