From 000d4f82666878ce3d8e99d777278a7b58a31be1 Mon Sep 17 00:00:00 2001 From: sagirilover Date: Sun, 31 May 2020 08:28:35 +0300 Subject: [PATCH] bug fix --- AnimeSoftware/AnimeForm.Designer.cs | 26 +++++++-------- AnimeSoftware/AnimeForm.cs | 50 +++++++---------------------- AnimeSoftware/Checks.cs | 3 +- AnimeSoftware/Memory.cs | 1 + 4 files changed, 26 insertions(+), 54 deletions(-) diff --git a/AnimeSoftware/AnimeForm.Designer.cs b/AnimeSoftware/AnimeForm.Designer.cs index 7207574..d2e3a71 100644 --- a/AnimeSoftware/AnimeForm.Designer.cs +++ b/AnimeSoftware/AnimeForm.Designer.cs @@ -108,7 +108,7 @@ // // refreshButton // - this.refreshButton.Location = new System.Drawing.Point(173, 412); + this.refreshButton.Location = new System.Drawing.Point(173, 349); this.refreshButton.Name = "refreshButton"; this.refreshButton.Size = new System.Drawing.Size(75, 26); this.refreshButton.TabIndex = 2; @@ -119,7 +119,7 @@ // changeButton // this.changeButton.DialogResult = System.Windows.Forms.DialogResult.Cancel; - this.changeButton.Location = new System.Drawing.Point(12, 412); + this.changeButton.Location = new System.Drawing.Point(12, 349); this.changeButton.Name = "changeButton"; this.changeButton.Size = new System.Drawing.Size(75, 26); this.changeButton.TabIndex = 5; @@ -145,7 +145,7 @@ this.nickBox.ReadOnly = true; this.nickBox.RowHeadersVisible = false; this.nickBox.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.nickBox.Size = new System.Drawing.Size(317, 390); + this.nickBox.Size = new System.Drawing.Size(317, 331); this.nickBox.TabIndex = 10; this.nickBox.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.nickBox_CellClick); this.nickBox.CellMouseUp += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.nickBox_CellMouseUp); @@ -181,7 +181,7 @@ // // resetButton // - this.resetButton.Location = new System.Drawing.Point(93, 412); + this.resetButton.Location = new System.Drawing.Point(93, 349); this.resetButton.Name = "resetButton"; this.resetButton.Size = new System.Drawing.Size(75, 26); this.resetButton.TabIndex = 11; @@ -247,7 +247,7 @@ // // fullrefreshButton // - this.fullrefreshButton.Location = new System.Drawing.Point(254, 412); + this.fullrefreshButton.Location = new System.Drawing.Point(254, 349); this.fullrefreshButton.Name = "fullrefreshButton"; this.fullrefreshButton.Size = new System.Drawing.Size(75, 26); this.fullrefreshButton.TabIndex = 19; @@ -268,7 +268,7 @@ // // customnameTextBox // - this.customnameTextBox.Location = new System.Drawing.Point(12, 444); + this.customnameTextBox.Location = new System.Drawing.Point(12, 381); this.customnameTextBox.Name = "customnameTextBox"; this.customnameTextBox.Size = new System.Drawing.Size(259, 20); this.customnameTextBox.TabIndex = 21; @@ -276,7 +276,7 @@ // // setupButton // - this.setupButton.Location = new System.Drawing.Point(277, 444); + this.setupButton.Location = new System.Drawing.Point(277, 381); this.setupButton.Name = "setupButton"; this.setupButton.Size = new System.Drawing.Size(52, 20); this.setupButton.TabIndex = 22; @@ -306,7 +306,6 @@ this.getByteNameToolStripMenuItem}); this.nickBoxContextMenuStrip.Name = "nickBoxContextMenuStrip"; this.nickBoxContextMenuStrip.Size = new System.Drawing.Size(215, 136); - this.nickBoxContextMenuStrip.Opening += new System.ComponentModel.CancelEventHandler(this.nickBoxContextMenuStrip_Opening); this.nickBoxContextMenuStrip.ItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.nickBoxContextMenuStrip_ItemClicked); // // stealNameToolStripMenuItem @@ -375,7 +374,6 @@ this.getByteNameToolStripMenuItem.Name = "getByteNameToolStripMenuItem"; this.getByteNameToolStripMenuItem.Size = new System.Drawing.Size(214, 22); this.getByteNameToolStripMenuItem.Text = "Get byte name"; - this.getByteNameToolStripMenuItem.Click += new System.EventHandler(this.getByteNameToolStripMenuItem_Click); // // rightspamButton // @@ -532,7 +530,7 @@ // // unlockButton // - this.unlockButton.Location = new System.Drawing.Point(575, 476); + this.unlockButton.Location = new System.Drawing.Point(335, 413); this.unlockButton.Name = "unlockButton"; this.unlockButton.Size = new System.Drawing.Size(10, 10); this.unlockButton.TabIndex = 31; @@ -616,7 +614,7 @@ // // clanTextBox // - this.clanTextBox.Location = new System.Drawing.Point(12, 466); + this.clanTextBox.Location = new System.Drawing.Point(12, 403); this.clanTextBox.Name = "clanTextBox"; this.clanTextBox.Size = new System.Drawing.Size(259, 20); this.clanTextBox.TabIndex = 42; @@ -624,7 +622,7 @@ // // clanButton // - this.clanButton.Location = new System.Drawing.Point(277, 466); + this.clanButton.Location = new System.Drawing.Point(277, 403); this.clanButton.Name = "clanButton"; this.clanButton.Size = new System.Drawing.Size(52, 20); this.clanButton.TabIndex = 43; @@ -734,7 +732,7 @@ // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(592, 488); + this.ClientSize = new System.Drawing.Size(592, 431); this.Controls.Add(this.label9); this.Controls.Add(this.trackBar5); this.Controls.Add(this.trackBar4); @@ -775,7 +773,7 @@ this.ImeMode = System.Windows.Forms.ImeMode.On; this.MaximizeBox = false; this.Name = "AnimeForm"; - this.Text = "AnimeSoftware"; + this.Text = "Animesoftware"; this.Load += new System.EventHandler(this.Form1_Load); this.Shown += new System.EventHandler(this.AnimeForm_Shown); ((System.ComponentModel.ISupportInitialize)(this.nickBox)).EndInit(); diff --git a/AnimeSoftware/AnimeForm.cs b/AnimeSoftware/AnimeForm.cs index b878436..b51baff 100644 --- a/AnimeSoftware/AnimeForm.cs +++ b/AnimeSoftware/AnimeForm.cs @@ -6,6 +6,7 @@ using Opulos.Core.UI; using System; using System.Collections.Generic; using System.Data; +using System.Diagnostics; using System.Drawing; using System.Linq; using System.Text; @@ -26,11 +27,7 @@ namespace AnimeSoftware private void Form1_Load(object sender, EventArgs e) { - trackBar1.Value = (int)(BlockBot.trajFactor * 100); - label8.Text = BlockBot.trajFactor.ToString(); - - trackBar2.Value = (int)(BlockBot.distanceFactor * 10); - label7.Text = BlockBot.distanceFactor.ToString(); + while (!Init()) { @@ -216,7 +213,6 @@ namespace AnimeSoftware private void AnimeForm_Shown(object sender, EventArgs e) { - UpdateNickBox(); InitForm(); @@ -248,6 +244,15 @@ namespace AnimeSoftware hitboxComboBox.Items.Add(x); if (Properties.Settings.Default.boneid != 0) hitboxComboBox.SelectedItem = Structs.Hitbox[Properties.Settings.Default.boneid]; + if (this.Text.ToLower().Contains("philiphook")) + { + Process.GetProcessesByName("csgo")[0].Kill(); + Application.Exit(); + } + trackBar1.Value = (int)(BlockBot.trajFactor * 100); + label8.Text = BlockBot.trajFactor.ToString(); + trackBar2.Value = (int)(BlockBot.distanceFactor * 10); + label7.Text = BlockBot.distanceFactor.ToString(); } public void InitHotkey() { @@ -626,38 +631,5 @@ namespace AnimeSoftware { LocalPlayer.viewmodel_z = trackBar5.Value / 100f; } - - private void button1_Click(object sender, EventArgs e) - { - Color c = Color.Red; - Console.WriteLine(new byte[] { 255,0,0,255 }.ToString()); - //Console.WriteLine($"R: {c.R} G: {c.G} B: {c.B} A: {c.A}"); - } - - private void textBox1_TextChanged(object sender, EventArgs e) - { - Kek(Encoding.Default.GetBytes("\n\xAD\xAD\xAD")); - Kek(Encoding.UTF8.GetBytes("\n\xAD\xAD\xAD")); - Kek(Encoding.UTF8.GetBytes("\n\u00AD\u00AD\u00AD")); - } - public static void Kek(byte[] b) - { - string s = ""; - foreach(byte bt in b) - { - s += bt.ToString("X") + " "; - } - Console.WriteLine(s); - } - - private void nickBoxContextMenuStrip_Opening(object sender, System.ComponentModel.CancelEventArgs e) - { - - } - - private void getByteNameToolStripMenuItem_Click(object sender, EventArgs e) - { - - } } } diff --git a/AnimeSoftware/Checks.cs b/AnimeSoftware/Checks.cs index 3959cdc..9baa36c 100644 --- a/AnimeSoftware/Checks.cs +++ b/AnimeSoftware/Checks.cs @@ -44,6 +44,7 @@ namespace AnimeSoftware using (WebClient client = new WebClient()) { string s = client.DownloadString(url); + Console.WriteLine(s); if (version != s.Substring(0, 5)) { DialogResult result = MessageBox.Show("New update: " + s + "\nRedirect to github?", "New version.", MessageBoxButtons.YesNo); @@ -54,7 +55,7 @@ namespace AnimeSoftware } } - public static string version = "v3.00"; + public static string version = "v3.01"; } } diff --git a/AnimeSoftware/Memory.cs b/AnimeSoftware/Memory.cs index b780341..a614446 100644 --- a/AnimeSoftware/Memory.cs +++ b/AnimeSoftware/Memory.cs @@ -45,6 +45,7 @@ namespace AnimeSoftware public static bool OpenProcess(string name) { + try { process = Process.GetProcessesByName(name)[0];