Das ganze Programm befindet sich in einer Klasse.
(Für einen Spam-bot dieser Liga bedarf es keiner umständlicheren Programmierung)
Achtung in einem Spoiler befinden sich mehrere Methoden, Funktionen!!!
Ich habe den Code so gepostet, dass nicht jeder Einfallspinsel dieses Programm kopieren kann,... Für einen Interessierten nachcoder ist dies jedoch eine recht gute Methode,... Viel Spaß beim lesen^^
Includes:
using System;
using System.Diagnostics;
using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.InteropServices;
using System.Data;
using System.Drawing;
using System.Linq;
using System.IO;
using System.Text;
using System.Windows.Forms;
Variablen:
#region Dynamic used Variables
string windowname = "FLYFF";
string prozessname = "Neuz";
string prozessname2 = "Flyff";
int fensterwechsel = 2500;
#endregion Dynamic used Variables
#region DLL-Improts
[DllImport("user32.dll")]
static extern void keybd_event(byte bVk, byte bScan, uint dwFlags,
int dwExtraInfo);
[DllImport("user32.dll", EntryPoint = "FindWindowA")]
public static extern int FindWindow(string lpClassName, string lpWindowName);
[DllImport("user32.dll")]
public static extern int ShowWindow(int hwnd, int nCmdShow);
[DllImport("user32.dll")]
public static extern int SetForegroundWindow(int hwnd);
#endregion DLL-Imports
#region Klassen
//Main main = new Main();
#endregion Klassen
#region Key_Codes
private const int KEYEVENTF_EXTENDEDKEY = 0x1;
private const int KEYEVENTF_KEYUP = 0x2;
private const int WM_KEYDOWN = 0x100;
private const int WM_KEYUP = 0x0101;
public const int VK_F1 = 0x70;
public const int VK_F2 = 0x71;
public const int VK_F3 = 0x72;
public const int VK_F4 = 0x73;
public const int VK_F5 = 0x74;
public const int VK_F6 = 0x75;
public const int VK_F7 = 0x76;
public const int VK_F8 = 0x77;
public const int VK_F9 = 0x78;
public const int VK_C = 0x43;
#endregion Key_Codes
StreamReader SR;
StreamWriter SW;
double timer = 0;
double selected = 0;
string Language = "";
string Tasten = "";
string Spamspeed = "";
string Test;
string OldLanguage = "";
string OldTasten = "";
string OldSpamspeed = "";
bool started = false;
bool started2 = false;
Standardkonstruktor
public Form1()
{
InitializeComponent();
}
Components:
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Verwendete Ressourcen bereinigen.
/// </summary>
/// <param name="disposing">True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Vom Windows Form-Designer generierter Code
/// <summary>
/// Erforderliche Methode für die Designerunterstützung.
/// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typ eof(Form1));
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.button2 = new System.Windows.Forms.Button();
this.button1 = new System.Windows.Forms.Button();
this.tabPage6 = new System.Windows.Forms.TabPage();
this.tabPage7 = new System.Windows.Forms.TabPage();
this.tabPage8 = new System.Windows.Forms.TabPage();
this.tabPage9 = new System.Windows.Forms.TabPage();
this.tabPage10 = new System.Windows.Forms.TabPage();
this.tabPage11 = new System.Windows.Forms.TabPage();
this.tabPage12 = new System.Windows.Forms.TabPage();
this.tabPage13 = new System.Windows.Forms.TabPage();
this.tabPage14 = new System.Windows.Forms.TabPage();
this.tabPage15 = new System.Windows.Forms.TabPage();
this.tabControl2 = new System.Windows.Forms.TabControl();
this.tabPage16 = new System.Windows.Forms.TabPage();
this.button19 = new System.Windows.Forms.Button();
this.button17 = new System.Windows.Forms.Button();
this.button16 = new System.Windows.Forms.Button();
this.label12 = new System.Windows.Forms.Label();
this.pictureBox2 = new System.Windows.Forms.PictureBox();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.progressBar1 = new System.Windows.Forms.ProgressBar();
this.tabPage17 = new System.Windows.Forms.TabPage();
this.button20 = new System.Windows.Forms.Button();
this.button15 = new System.Windows.Forms.Button();
this.button14 = new System.Windows.Forms.Button();
this.comboBox2 = new System.Windows.Forms.ComboBox();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.label9 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.button13 = new System.Windows.Forms.Button();
this.tabPage18 = new System.Windows.Forms.TabPage();
this.checkBox2 = new System.Windows.Forms.CheckBox();
this.checkBox1 = new System.Windows.Forms.CheckBox();
this.label13 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.trackBar1 = new System.Windows.Forms.TrackBar();
this.label5 = new System.Windows.Forms.Label();
this.tabPage19 = new System.Windows.Forms.TabPage();
this.label11 = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
this.tabPage20 = new System.Windows.Forms.TabPage();
this.button7 = new System.Windows.Forms.Button();
this.button6 = new System.Windows.Forms.Button();
this.button5 = new System.Windows.Forms.Button();
this.button4 = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
this.button8 = new System.Windows.Forms.Button();
this.tabPage21 = new System.Windows.Forms.TabPage();
this.tabPage22 = new System.Windows.Forms.TabPage();
this.tabPage23 = new System.Windows.Forms.TabPage();
this.tabPage24 = new System.Windows.Forms.TabPage();
this.tabPage25 = new System.Windows.Forms.TabPage();
this.button9 = new System.Windows.Forms.Button();
this.button10 = new System.Windows.Forms.Button();
this.button11 = new System.Windows.Forms.Button();
this.button12 = new System.Windows.Forms.Button();
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.timer2 = new System.Windows.Forms.Timer(this.components);
this.timer3 = new System.Windows.Forms.Timer(this.components);
this.timer4 = new System.Windows.Forms.Timer(this.components);
this.timer5 = new System.Windows.Forms.Timer(this.components);
this.textBox1 = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.button18 = new System.Windows.Forms.Button();
this.label4 = new System.Windows.Forms.Label();
this.timer6 = new System.Windows.Forms.Timer(this.components);
this.tabControl2.SuspendLayout();
this.tabPage16.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.p ictureBox2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.p ictureBox1)).BeginInit();
this.tabPage17.SuspendLayout();
this.tabPage18.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.t rackBar1)).BeginInit();
this.tabPage19.SuspendLayout();
this.tabPage20.SuspendLayout();
this.tabPage25.SuspendLayout();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.Location = new System.Drawing.Point(22, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(250, 26);
this.label1.TabIndex = 0;
this.label1.Text = "Wählen sie Ihre Sprache";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label2.Location = new System.Drawing.Point(31, 35);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(223, 26);
this.label2.TabIndex = 1;
this.label2.Text = "Select your Language";
//
// button2
//
this.button2.BackColor = System.Drawing.SystemColors.HotTrack;
this.button2.ForeColor = System.Drawing.SystemColors.ActiveCaption;
this.button2.Location = new System.Drawing.Point(161, 80);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(103, 33);
this.button2.TabIndex = 3;
this.button2.Text = "Englisch";
this.button2.UseVisualStyleBackColor = false;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// button1
//
this.button1.BackColor = System.Drawing.SystemColors.HotTrack;
this.button1.ForeColor = System.Drawing.SystemColors.ActiveCaption;
this.button1.Location = new System.Drawing.Point(28, 80);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(103, 33);
this.button1.TabIndex = 4;
this.button1.Text = "Deutsch";
this.button1.UseVisualStyleBackColor = false;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// tabPage6
//
this.tabPage6.Location = new System.Drawing.Point(4, 22);
this.tabPage6.Name = "tabPage6";
this.tabPage6.Size = new System.Drawing.Size(291, 106);
this.tabPage6.TabIndex = 0;
this.tabPage6.Text = "Start";
this.tabPage6.UseVisualStyleBackColor = true;
//
// tabPage7
//
this.tabPage7.Location = new System.Drawing.Point(4, 22);
this.tabPage7.Name = "tabPage7";
this.tabPage7.Size = new System.Drawing.Size(291, 106);
this.tabPage7.TabIndex = 1;
this.tabPage7.Text = "Tasten";
this.tabPage7.UseVisualStyleBackColor = true;
//
// tabPage8
//
this.tabPage8.Location = new System.Drawing.Point(4, 22);
this.tabPage8.Name = "tabPage8";
this.tabPage8.Size = new System.Drawing.Size(291, 106);
this.tabPage8.TabIndex = 2;
this.tabPage8.Text = "Einstellungen";
this.tabPage8.UseVisualStyleBackColor = true;
//
// tabPage9
//
this.tabPage9.Location = new System.Drawing.Point(4, 22);
this.tabPage9.Name = "tabPage9";
this.tabPage9.Size = new System.Drawing.Size(291, 106);
this.tabPage9.TabIndex = 3;
this.tabPage9.Text = "Impressum";
this.tabPage9.UseVisualStyleBackColor = true;
//
// tabPage10
//
this.tabPage10.Location = new System.Drawing.Point(4, 22);
this.tabPage10.Name = "tabPage10";
this.tabPage10.Size = new System.Drawing.Size(291, 106);
this.tabPage10.TabIndex = 4;
this.tabPage10.Text = "Beenden";
this.tabPage10.UseVisualStyleBackColor = true;
//
// tabPage11
//
this.tabPage11.Location = new System.Drawing.Point(4, 22);
this.tabPage11.Name = "tabPage11";
this.tabPage11.Size = new System.Drawing.Size(291, 106);
this.tabPage11.TabIndex = 0;
this.tabPage11.Text = "Start";
this.tabPage11.UseVisualStyleBackColor = true;
//
// tabPage12
//
this.tabPage12.Location = new System.Drawing.Point(4, 22);
this.tabPage12.Name = "tabPage12";
this.tabPage12.Size = new System.Drawing.Size(291, 106);
this.tabPage12.TabIndex = 1;
this.tabPage12.Text = "Tasten";
this.tabPage12.UseVisualStyleBackColor = true;
//
// tabPage13
//
this.tabPage13.Location = new System.Drawing.Point(4, 22);
this.tabPage13.Name = "tabPage13";
this.tabPage13.Size = new System.Drawing.Size(291, 106);
this.tabPage13.TabIndex = 2;
this.tabPage13.Text = "Einstellungen";
this.tabPage13.UseVisualStyleBackColor = true;
//
// tabPage14
//
this.tabPage14.Location = new System.Drawing.Point(4, 22);
this.tabPage14.Name = "tabPage14";
this.tabPage14.Size = new System.Drawing.Size(291, 106);
this.tabPage14.TabIndex = 3;
this.tabPage14.Text = "Impressum";
this.tabPage14.UseVisualStyleBackColor = true;
//
// tabPage15
//
this.tabPage15.Location = new System.Drawing.Point(4, 22);
this.tabPage15.Name = "tabPage15";
this.tabPage15.Size = new System.Drawing.Size(291, 106);
this.tabPage15.TabIndex = 4;
this.tabPage15.Text = "Beenden";
this.tabPage15.UseVisualStyleBackColor = true;
//
// tabControl2
//
this.tabControl2.Controls.Add(this.tabPage16);
this.tabControl2.Controls.Add(this.tabPage17);
this.tabControl2.Controls.Add(this.tabPage18);
this.tabControl2.Controls.Add(this.tabPage19);
this.tabControl2.Controls.Add(this.tabPage20);
this.tabControl2.Location = new System.Drawing.Point(-4, 0);
this.tabControl2.Name = "tabControl2";
this.tabControl2.SelectedIndex = 0;
this.tabControl2.Size = new System.Drawing.Size(298, 131);
this.tabControl2.TabIndex = 6;
//
// tabPage16
//
this.tabPage16.BackColor = System.Drawing.Color.Black;
this.tabPage16.Controls.Add(this.button19);
this.tabPage16.Controls.Add(this.button17);
this.tabPage16.Controls.Add(this.button16);
this.tabPage16.Controls.Add(this.label12);
this.tabPage16.Controls.Add(this.pictureBox2);
this.tabPage16.Controls.Add(this.pictureBox1);
this.tabPage16.Controls.Add(this.progressBar1);
this.tabPage16.ForeColor = System.Drawing.SystemColors.WindowFrame;
this.tabPage16.Location = new System.Drawing.Point(4, 22);
this.tabPage16.Name = "tabPage16";
this.tabPage16.Padding = new System.Windows.Forms.Padding(3);
this.tabPage16.Size = new System.Drawing.Size(290, 105);
this.tabPage16.TabIndex = 0;
this.tabPage16.Text = "Start";
//
// button19
//
this.button19.BackColor = System.Drawing.SystemColors.HotTrack;
this.button19.ForeColor = System.Drawing.SystemColors.InactiveCaption;
this.button19.Location = new System.Drawing.Point(200, 1);
this.button19.Name = "button19";
this.button19.Size = new System.Drawing.Size(83, 28);
this.button19.TabIndex = 7;
this.button19.Text = "Aktualisieren";
this.button19.UseVisualStyleBackColor = false;
this.button19.Visible = false;
this.button19.Click += new System.EventHandler(this.button19_Click);
//
// button17
//
this.button17.BackColor = System.Drawing.SystemColors.HotTrack;
this.button17.ForeColor = System.Drawing.SystemColors.InactiveCaption;
this.button17.Location = new System.Drawing.Point(147, 28);
this.button17.Name = "button17";
this.button17.Size = new System.Drawing.Size(137, 41);
this.button17.TabIndex = 6;
this.button17.Text = "Beenden";
this.button17.UseVisualStyleBackColor = false;
this.button17.Visible = false;
this.button17.Click += new System.EventHandler(this.button17_Click);
//
// button16
//
this.button16.BackColor = System.Drawing.SystemColors.HotTrack;
this.button16.ForeColor = System.Drawing.SystemColors.InactiveCaption;
this.button16.Location = new System.Drawing.Point(6, 28);
this.button16.Name = "button16";
this.button16.Size = new System.Drawing.Size(137, 41);
this.button16.TabIndex = 5;
this.button16.Text = "Starten";
this.button16.UseVisualStyleBackColor = false;
this.button16.Visible = false;
this.button16.Click += new System.EventHandler(this.button16_Click);
//
// label12
//
this.label12.AutoSize = true;
this.label12.BackColor = System.Drawing.Color.Transparent;
this.label12.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label12.ForeColor = System.Drawing.SystemColors.ActiveBorder;
this.label12.Location = new System.Drawing.Point(32, 5);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(165, 20);
this.label12.TabIndex = 4;
this.label12.Text = "Flyff ist nicht gestartet";
//
// pictureBox2
//
this.pictureBox2.Image = ((System.Drawing.Image)(resources.GetObject("pictu reBox2.Image")));
this.pictureBox2.Location = new System.Drawing.Point(6, 3);
this.pictureBox2.Name = "pictureBox2";
this.pictureBox2.Size = new System.Drawing.Size(33, 33);
this.pictureBox2.TabIndex = 2;
this.pictureBox2.TabStop = false;
this.pictureBox2.Visible = false;
//
// pictureBox1
//
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictu reBox1.Image")));
this.pictureBox1.Location = new System.Drawing.Point(6, 6);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(33, 33);
this.pictureBox1.TabIndex = 1;
this.pictureBox1.TabStop = false;
this.pictureBox1.Visible = false;
//
// progressBar1
//
this.progressBar1.Location = new System.Drawing.Point(6, 75);
this.progressBar1.Name = "progressBar1";
this.progressBar1.Size = new System.Drawing.Size(278, 24);
this.progressBar1.TabIndex = 0;
this.progressBar1.Visible = false;
//
// tabPage17
//
this.tabPage17.BackColor = System.Drawing.Color.Black;
this.tabPage17.Controls.Add(this.button20);
this.tabPage17.Controls.Add(this.button15);
this.tabPage17.Controls.Add(this.button14);
this.tabPage17.Controls.Add(this.comboBox2);
this.tabPage17.Controls.Add(this.comboBox1);
this.tabPage17.Controls.Add(this.label9);
this.tabPage17.Controls.Add(this.label8);
this.tabPage17.Controls.Add(this.button13);
this.tabPage17.Location = new System.Drawing.Point(4, 22);
this.tabPage17.Name = "tabPage17";
this.tabPage17.Padding = new System.Windows.Forms.Padding(3);
this.tabPage17.Size = new System.Drawing.Size(290, 105);
this.tabPage17.TabIndex = 1;
this.tabPage17.Text = "Keys";
//
// button20
//
this.button20.BackColor = System.Drawing.SystemColors.HotTrack;
this.button20.ForeColor = System.Drawing.SystemColors.ActiveCaption;
this.button20.Location = new System.Drawing.Point(131, 23);
this.button20.Name = "button20";
this.button20.Size = new System.Drawing.Size(30, 47);
this.button20.TabIndex = 9;
this.button20.Text = "X";
this.button20.UseVisualStyleBackColor = false;
this.button20.Click += new System.EventHandler(this.button20_Click);
//
// button15
//
this.button15.BackColor = System.Drawing.SystemColors.HotTrack;
this.button15.ForeColor = System.Drawing.SystemColors.ActiveCaption;
this.button15.Location = new System.Drawing.Point(167, 50);
this.button15.Name = "button15";
this.button15.Size = new System.Drawing.Size(119, 23);
this.button15.TabIndex = 8;
this.button15.Text = "Clear";
this.button15.UseVisualStyleBackColor = false;
this.button15.Click += new System.EventHandler(this.button15_Click_1);
//
// button14
//
this.button14.BackColor = System.Drawing.SystemColors.HotTrack;
this.button14.ForeColor = System.Drawing.SystemColors.ActiveCaption;
this.button14.Location = new System.Drawing.Point(6, 50);
this.button14.Name = "button14";
this.button14.Size = new System.Drawing.Size(119, 23);
this.button14.TabIndex = 7;
this.button14.Text = "Add";
this.button14.UseVisualStyleBackColor = false;
this.button14.Click += new System.EventHandler(this.Button_Add);
//
// comboBox2
//
this.comboBox2.FormattingEnabled = true;
this.comboBox2.Items.AddRange(new object[] {
"F1",
"F2",
"F3",
"F4",
"F5",
"F6",
"F7",
"F8",
"F9",
"C"});
this.comboBox2.Location = new System.Drawing.Point(6, 25);
this.comboBox2.Name = "comboBox2";
this.comboBox2.Size = new System.Drawing.Size(119, 21);
this.comboBox2.TabIndex = 6;
//
// comboBox1
//
this.comboBox1.FormattingEnabled = true;
this.comboBox1.Location = new System.Drawing.Point(167, 25);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(119, 21);
this.comboBox1.TabIndex = 5;
//
// label9
//
this.label9.AutoSize = true;
this.label9.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label9.Location = new System.Drawing.Point(170, 3);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(94, 20);
this.label9.TabIndex = 4;
this.label9.Text = "Added Keys";
//
// label8
//
this.label8.AutoSize = true;
this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label8.Location = new System.Drawing.Point(6, 3);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(68, 20);
this.label8.TabIndex = 3;
this.label8.Text = "Add Key";
//
// button13
//
this.button13.BackColor = System.Drawing.SystemColors.HotTrack;
this.button13.ForeColor = System.Drawing.SystemColors.ActiveCaption;
this.button13.Location = new System.Drawing.Point(6, 76);
this.button13.Name = "button13";
this.button13.Size = new System.Drawing.Size(280, 26);
this.button13.TabIndex = 2;
this.button13.Text = "Save";
this.button13.UseVisualStyleBackColor = false;
this.button13.Click += new System.EventHandler(this.button13_Click_1);
//
// tabPage18
//
this.tabPage18.BackColor = System.Drawing.Color.Black;
this.tabPage18.Controls.Add(this.checkBox2);
this.tabPage18.Controls.Add(this.checkBox1);
this.tabPage18.Controls.Add(this.label13);
this.tabPage18.Controls.Add(this.label7);
this.tabPage18.Controls.Add(this.label6);
this.tabPage18.Controls.Add(this.trackBar1);
this.tabPage18.Controls.Add(this.label5);
this.tabPage18.Location = new System.Drawing.Point(4, 22);
this.tabPage18.Name = "tabPage18";
this.tabPage18.Size = new System.Drawing.Size(290, 105);
this.tabPage18.TabIndex = 2;
this.tabPage18.Text = "Settings";
//
// checkBox2
//
this.checkBox2.AutoSize = true;
this.checkBox2.Location = new System.Drawing.Point(188, 74);
this.checkBox2.Name = "checkBox2";
this.checkBox2.Size = new System.Drawing.Size(66, 17);
this.checkBox2.TabIndex = 7;
this.checkBox2.Text = "Englisch";
this.checkBox2.UseVisualStyleBackColor = true;
this.checkBox2.CheckedChanged += new System.EventHandler(this.checkBox2_CheckedChanged) ;
//
// checkBox1
//
this.checkBox1.AutoSize = true;
this.checkBox1.Location = new System.Drawing.Point(110, 74);
this.checkBox1.Name = "checkBox1";
this.checkBox1.Size = new System.Drawing.Size(66, 17);
this.checkBox1.TabIndex = 6;
this.checkBox1.Text = "Deutsch";
this.checkBox1.UseVisualStyleBackColor = true;
this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged) ;
//
// label13
//
this.label13.AutoSize = true;
this.label13.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label13.Location = new System.Drawing.Point(12, 72);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(81, 20);
this.label13.TabIndex = 5;
this.label13.Text = "Language";
//
// label7
//
this.label7.AutoSize = true;
this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label7.Location = new System.Drawing.Point(3, 42);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(14, 20);
this.label7.TabIndex = 4;
this.label7.Text = "-";
//
// label6
//
this.label6.AutoSize = true;
this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label6.Location = new System.Drawing.Point(269, 42);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(18, 20);
this.label6.TabIndex = 3;
this.label6.Text = "+";
//
// trackBar1
//
this.trackBar1.BackColor = System.Drawing.Color.Black;
this.trackBar1.LargeChange = 8;
this.trackBar1.Location = new System.Drawing.Point(12, 30);
this.trackBar1.Name = "trackBar1";
this.trackBar1.Size = new System.Drawing.Size(264, 45);
this.trackBar1.TabIndex = 2;
this.trackBar1.Scroll += new System.EventHandler(this.trackBar1_Scroll);
//
// label5
//
this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label5.Location = new System.Drawing.Point(94, 5);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(95, 20);
this.label5.TabIndex = 0;
this.label5.Text = "Spamspeed";
//
// tabPage19
//
this.tabPage19.BackColor = System.Drawing.Color.Black;
this.tabPage19.Controls.Add(this.label11);
this.tabPage19.Controls.Add(this.label10);
this.tabPage19.Location = new System.Drawing.Point(4, 22);
this.tabPage19.Name = "tabPage19";
this.tabPage19.Size = new System.Drawing.Size(290, 105);
this.tabPage19.TabIndex = 3;
this.tabPage19.Text = "Impressum";
//
// label11
//
this.label11.AutoSize = true;
this.label11.Font = new System.Drawing.Font("Microsoft Sans Serif", 22F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label11.Location = new System.Drawing.Point(30, 39);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(228, 36);
this.label11.TabIndex = 12;
this.label11.Text = "XeneX(toemsel)";
//
// label10
//
this.label10.AutoSize = true;
this.label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label10.Location = new System.Drawing.Point(83, 15);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(115, 20);
this.label10.TabIndex = 11;
this.label10.Text = "Flyff-Bot 2.0 by";
//
// tabPage20
//
this.tabPage20.BackColor = System.Drawing.Color.Black;
this.tabPage20.Controls.Add(this.button7);
this.tabPage20.Controls.Add(this.button6);
this.tabPage20.Controls.Add(this.button5);
this.tabPage20.Controls.Add(this.button4);
this.tabPage20.Controls.Add(this.button3);
this.tabPage20.Location = new System.Drawing.Point(4, 22);
this.tabPage20.Name = "tabPage20";
this.tabPage20.Size = new System.Drawing.Size(290, 105);
this.tabPage20.TabIndex = 4;
this.tabPage20.Text = "Exit";
//
// button7
//
this.button7.BackColor = System.Drawing.SystemColors.HotTrack;
this.button7.ForeColor = System.Drawing.SystemColors.ActiveCaption;
this.button7.Location = new System.Drawing.Point(161, 70);
this.button7.Name = "button7";
this.button7.Size = new System.Drawing.Size(102, 27);
this.button7.TabIndex = 4;
this.button7.Text = "Exit in 3 hours";
this.button7.UseVisualStyleBackColor = false;
this.button7.Click += new System.EventHandler(this.button7_Click);
//
// button6
//
this.button6.BackColor = System.Drawing.SystemColors.HotTrack;
this.button6.ForeColor = System.Drawing.SystemColors.ActiveCaption;
this.button6.Location = new System.Drawing.Point(28, 70);
this.button6.Name = "button6";
this.button6.Size = new System.Drawing.Size(102, 27);
this.button6.TabIndex = 3;
this.button6.Text = "Exit in 6 hours";
this.button6.UseVisualStyleBackColor = false;
this.button6.Click += new System.EventHandler(this.button6_Click);
//
// button5
//
this.button5.BackColor = System.Drawing.SystemColors.HotTrack;
this.button5.ForeColor = System.Drawing.SystemColors.ActiveCaption;
this.button5.Location = new System.Drawing.Point(161, 6);
this.button5.Name = "button5";
this.button5.Size = new System.Drawing.Size(102, 27);
this.button5.TabIndex = 2;
this.button5.Text = "Exit in 12 hours";
this.button5.UseVisualStyleBackColor = false;
this.button5.Click += new System.EventHandler(this.button5_Click);
//
// button4
//
this.button4.BackColor = System.Drawing.SystemColors.HotTrack;
this.button4.ForeColor = System.Drawing.SystemColors.ActiveCaption;
this.button4.Location = new System.Drawing.Point(28, 6);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(102, 27);
this.button4.TabIndex = 1;
this.button4.Text = "Exit in 1 Day";
this.button4.UseVisualStyleBackColor = false;
this.button4.Click += new System.EventHandler(this.button4_Click);
//
// button3
//
this.button3.BackColor = System.Drawing.SystemColors.HotTrack;
this.button3.ForeColor = System.Drawing.SystemColors.ActiveCaption;
this.button3.Location = new System.Drawing.Point(29, 37);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(234, 27);
this.button3.TabIndex = 0;
this.button3.Text = "Exit now";
this.button3.UseVisualStyleBackColor = false;
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// button8
//
this.button8.BackColor = System.Drawing.SystemColors.HotTrack;
this.button8.ForeColor = System.Drawing.SystemColors.ActiveCaption;
this.button8.Location = new System.Drawing.Point(168, 73);
this.button8.Name = "button8";
this.button8.Size = new System.Drawing.Size(102, 27);
this.button8.TabIndex = 4;
this.button8.Text = "Exit in 3 hours";
this.button8.UseVisualStyleBackColor = false;
//
// tabPage21
//
this.tabPage21.BackColor = System.Drawing.Color.Black;
this.tabPage21.Location = new System.Drawing.Point(4, 22);
this.tabPage21.Name = "tabPage21";
this.tabPage21.Padding = new System.Windows.Forms.Padding(3);
this.tabPage21.Size = new System.Drawing.Size(290, 105);
this.tabPage21.TabIndex = 0;
this.tabPage21.Text = "Start";
//
// tabPage22
//
this.tabPage22.BackColor = System.Drawing.Color.Black;
this.tabPage22.Location = new System.Drawing.Point(4, 22);
this.tabPage22.Name = "tabPage22";
this.tabPage22.Padding = new System.Windows.Forms.Padding(3);
this.tabPage22.Size = new System.Drawing.Size(290, 105);
this.tabPage22.TabIndex = 1;
this.tabPage22.Text = "Keys";
//
// tabPage23
//
this.tabPage23.BackColor = System.Drawing.Color.Black;
this.tabPage23.Location = new System.Drawing.Point(4, 22);
this.tabPage23.Name = "tabPage23";
this.tabPage23.Size = new System.Drawing.Size(290, 105);
this.tabPage23.TabIndex = 2;
this.tabPage23.Text = "Settings";
//
// tabPage24
//
this.tabPage24.BackColor = System.Drawing.Color.Black;
this.tabPage24.Location = new System.Drawing.Point(4, 22);
this.tabPage24.Name = "tabPage24";
this.tabPage24.Size = new System.Drawing.Size(290, 105);
this.tabPage24.TabIndex = 3;
this.tabPage24.Text = "Impressum";
//
// tabPage25
//
this.tabPage25.BackColor = System.Drawing.Color.Black;
this.tabPage25.Controls.Add(this.button8);
this.tabPage25.Controls.Add(this.button9);
this.tabPage25.Controls.Add(this.button10);
this.tabPage25.Controls.Add(this.button11);
this.tabPage25.Controls.Add(this.button12);
this.tabPage25.Location = new System.Drawing.Point(4, 22);
this.tabPage25.Name = "tabPage25";
this.tabPage25.Size = new System.Drawing.Size(290, 105);
this.tabPage25.TabIndex = 4;
this.tabPage25.Text = "Exit";
//
// button9
//
this.button9.BackColor = System.Drawing.SystemColors.HotTrack;
this.button9.ForeColor = System.Drawing.SystemColors.ActiveCaption;
this.button9.Location = new System.Drawing.Point(35, 73);
this.button9.Name = "button9";
this.button9.Size = new System.Drawing.Size(102, 27);
this.button9.TabIndex = 3;
this.button9.Text = "Exit in 6 hours";
this.button9.UseVisualStyleBackColor = false;
//
// button10
//
this.button10.BackColor = System.Drawing.SystemColors.HotTrack;
this.button10.ForeColor = System.Drawing.SystemColors.ActiveCaption;
this.button10.Location = new System.Drawing.Point(168, 9);
this.button10.Name = "button10";
this.button10.Size = new System.Drawing.Size(102, 27);
this.button10.TabIndex = 2;
this.button10.Text = "Exit in 12 hours";
this.button10.UseVisualStyleBackColor = false;
//
// button11
//
this.button11.BackColor = System.Drawing.SystemColors.HotTrack;
this.button11.ForeColor = System.Drawing.SystemColors.ActiveCaption;
this.button11.Location = new System.Drawing.Point(35, 9);
this.button11.Name = "button11";
this.button11.Size = new System.Drawing.Size(102, 27);
this.button11.TabIndex = 1;
this.button11.Text = "Exit in 1 Day";
this.button11.UseVisualStyleBackColor = false;
//
// button12
//
this.button12.BackColor = System.Drawing.SystemColors.HotTrack;
this.button12.ForeColor = System.Drawing.SystemColors.ActiveCaption;
this.button12.Location = new System.Drawing.Point(36, 40);
this.button12.Name = "button12";
this.button12.Size = new System.Drawing.Size(234, 27);
this.button12.TabIndex = 0;
this.button12.Text = "Exit now";
this.button12.UseVisualStyleBackColor = false;
//
// timer1
//
this.timer1.Interval = 86400000;
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
//
// timer2
//
this.timer2.Interval = 43200000;
this.timer2.Tick += new System.EventHandler(this.timer1_Tick);
//
// timer3
//
this.timer3.Interval = 21600000;
this.timer3.Tick += new System.EventHandler(this.timer1_Tick);
//
// timer4
//
this.timer4.Interval = 10800000;
this.timer4.Tick += new System.EventHandler(this.timer1_Tick);
//
// timer5
//
this.timer5.Interval = 1;
this.timer5.Tick += new System.EventHandler(this.Sekunde);
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(141, 143);
this.textBox1.Name = "textBox1";
this.textBox1.ReadOnly = true;
this.textBox1.Size = new System.Drawing.Size(57, 20);
this.textBox1.TabIndex = 7;
this.textBox1.Visible = false;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label3.Location = new System.Drawing.Point(41, 141);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(94, 20);
this.label3.TabIndex = 8;
this.label3.Text = "Beenden in:";
this.label3.Visible = false;
//
// button18
//
this.button18.BackColor = System.Drawing.SystemColors.HotTrack;
this.button18.ForeColor = System.Drawing.SystemColors.ActiveCaption;
this.button18.Location = new System.Drawing.Point(6, 137);
this.button18.Name = "button18";
this.button18.Size = new System.Drawing.Size(33, 29);
this.button18.TabIndex = 9;
this.button18.Text = "X";
this.button18.UseVisualStyleBackColor = false;
this.button18.Visible = false;
this.button18.Click += new System.EventHandler(this.button18_Click);
//
// label4
//
this.label4.AutoSize = true;
this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label4.Location = new System.Drawing.Point(204, 141);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(82, 20);
this.label4.TabIndex = 10;
this.label4.Text = "Sekunden";
this.label4.Visible = false;
//
// timer6
//
this.timer6.Tick += new System.EventHandler(this.prozessbar);
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
this.BackColor = System.Drawing.SystemColors.ControlText;
this.ClientSize = new System.Drawing.Size(288, 171);
this.Controls.Add(this.tabControl2);
this.Controls.Add(this.label4);
this.Controls.Add(this.button18);
this.Controls.Add(this.label3);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.button1);
this.Controls.Add(this.button2);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.ForeColor = System.Drawing.SystemColors.ActiveBorder;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this. Icon")));
this.MaximizeBox = false;
this.Name = "Form1";
this.Text = "Flyff-Bot 2.0";
this.Load += new System.EventHandler(this.Form1_Load);
this.tabControl2.ResumeLayout(false);
this.tabPage16.ResumeLayout(false);
this.tabPage16.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.p ictureBox2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.p ictureBox1)).EndInit();
this.tabPage17.ResumeLayout(false);
this.tabPage17.PerformLayout();
this.tabPage18.ResumeLayout(false);
this.tabPage18.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.t rackBar1)).EndInit();
this.tabPage19.ResumeLayout(false);
this.tabPage19.PerformLayout();
this.tabPage20.ResumeLayout(false);
this.tabPage25.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.TabPage tabPage6;
private System.Windows.Forms.TabPage tabPage7;
private System.Windows.Forms.TabPage tabPage8;
private System.Windows.Forms.TabPage tabPage9;
private System.Windows.Forms.TabPage tabPage10;
private System.Windows.Forms.TabPage tabPage11;
private System.Windows.Forms.TabPage tabPage12;
private System.Windows.Forms.TabPage tabPage13;
private System.Windows.Forms.TabPage tabPage14;
private System.Windows.Forms.TabPage tabPage15;
private System.Windows.Forms.TabControl tabControl2;
private System.Windows.Forms.TabPage tabPage16;
private System.Windows.Forms.TabPage tabPage17;
private System.Windows.Forms.TabPage tabPage18;
private System.Windows.Forms.TabPage tabPage19;
private System.Windows.Forms.TabPage tabPage20;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Button button6;
private System.Windows.Forms.Button button5;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.Button button7;
private System.Windows.Forms.Button button8;
private System.Windows.Forms.TabPage tabPage21;
private System.Windows.Forms.TabPage tabPage22;
private System.Windows.Forms.TabPage tabPage23;
private System.Windows.Forms.TabPage tabPage24;
private System.Windows.Forms.TabPage tabPage25;
private System.Windows.Forms.Button button9;
private System.Windows.Forms.Button button10;
private System.Windows.Forms.Button button11;
private System.Windows.Forms.Button button12;
private System.Windows.Forms.Timer timer1;
private System.Windows.Forms.Timer timer2;
private System.Windows.Forms.Timer timer3;
private System.Windows.Forms.Timer timer4;
private System.Windows.Forms.Timer timer5;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Button button18;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.TrackBar trackBar1;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.ProgressBar progressBar1;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Button button13;
private System.Windows.Forms.Button button15;
private System.Windows.Forms.Button button14;
private System.Windows.Forms.ComboBox comboBox2;
private System.Windows.Forms.ComboBox comboBox1;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.PictureBox pictureBox2;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.Button button16;
private System.Windows.Forms.Button button17;
private System.Windows.Forms.Button button19;
private System.Windows.Forms.Timer timer6;
private System.Windows.Forms.Button button20;
private System.Windows.Forms.CheckBox checkBox2;
private System.Windows.Forms.CheckBox checkBox1;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.Label label5;
Form-Load:
private void Form1_Load(object sender, EventArgs e)
{
#region ChangeText
#endregion ChangeText
#region FileCheck
SW = new StreamWriter("Settings.bot", true);
SW.Close();
SR = new StreamReader("Settings.bot");
Language = SR.ReadLine();
SR.Close();
if(Language == null || Language.Length < 10)
{
SW = new StreamWriter("Settings.bot", false);
SW.Write("Language: 0" + Environment.NewLine); //0=Default
SW.Close();
}
SR = new StreamReader("Settings.bot");
Language = SR.ReadLine();
Tasten = SR.ReadLine();
SR.Close();
if (Tasten == null || Tasten.Length < 5)
{
SW = new StreamWriter("Settings.bot", false);
SW.Write(Language+Environment.NewLine); //0=Default
SW.Write("Keys: 0"+ Environment.NewLine);
SW.Close();
}
SR = new StreamReader("Settings.bot");
Language = SR.ReadLine();
Tasten = SR.ReadLine();
Spamspeed = SR.ReadLine();
SR.Close();
if (Spamspeed == null || Spamspeed.Length < 10)
{
SW = new StreamWriter("Settings.bot", false);
SW.Write(Language+ Environment.NewLine); //0=Default
SW.Write(Tasten + Environment.NewLine);
SW.Write("Spamspeed: 0");
SW.Close();
}
SR = new StreamReader("Settings.bot");
Language = SR.ReadLine();
Tasten = SR.ReadLine();
Spamspeed = SR.ReadLine();
Language = Language.Remove(0, 10);
SR.Close();
if (Language.Length >= 2 && Language!= "0" && Language != "1" && Language != "2")
{
Language = Language.Remove(1);
if (Language == "0" || Language == "1" || Language == "2")
{
SW = new StreamWriter("Settings.bot", false);
SW.Write("Language: " + Language + Environment.NewLine);
SW.Write(Tasten+ Environment.NewLine);
SW.Write(Spamspeed);
SW.Close();
}
}
if (Language != "0" && Language != "1" && Language != "2")
{
SW = new StreamWriter("Settings.bot", false);
SW.Write("Language: 0" + Environment.NewLine); //0=Default
SW.Write(Tasten+ Environment.NewLine);
SW.Write(Spamspeed);
SW.Close();
}
SR = new StreamReader("Settings.bot");
OldLanguage = SR.ReadLine();
Tasten = SR.ReadLine();
Spamspeed = SR.ReadLine();
SR.Close();
Tasten = Tasten.Remove(0, 6);
for (int i = 0; i < Tasten.Length; i++)
{
if (Convert.ToString(Tasten[i]) == ",")
{
comboBox1.Items.Add(Test);
Test = "";
}
else
{
Test += Convert.ToString(Tasten[i]);
}
}
Spamspeed = Spamspeed.Remove(0,10);
if (Convert.ToInt64(Spamspeed) > 100 || Convert.ToInt64(Spamspeed) < 0)
{
SW = new StreamWriter("Settings.bot", false);
SW.Write(Language+ Environment.NewLine); //0=Default
SW.Write(Tasten + Environment.NewLine);
SW.Write("Spamspeed: 0");
SW.Close();
}
trackBar1.Value = Convert.ToInt32(Spamspeed);
#endregion FileCheck
#region Language J/N
if (Language == "0")
{
tabControl2.Visible = false;
label1.Visible = true;
label2.Visible = true;
button1.Visible = true;
button2.Visible = true;
}
else if (Language == "1")
{
German();
label1.Visible = false;
label2.Visible = false;
button1.Visible = false;
button2.Visible = false;
}
else if (Language == "2")
{
Englisch();
label1.Visible = false;
label2.Visible = false;
button1.Visible = false;
button2.Visible = false;
}
#endregion Language J/N
Activ();
}
Archiv-Methode:
public void Activ()
{
#region Flyff-Client Aktiv?
if (Process.GetProcessesByName(prozessname).Length > 0 || Process.GetProcessesByName(prozessname2).Length > 0) //Ja der Prozess ist gestartet!
{
started2 = true;
pictureBox2.Visible = true;
pictureBox1.Visible = false;
if (Convert.ToInt16(Language) == 1)
{
label12.Text = "Flyff ist gestartet!";
}
else
{
label12.Text = "Flyff is running!";
}
}
else //Nein der Prozess ist nicht gestartet!
{
started2 = false;
pictureBox1.Visible = true;
pictureBox2.Visible = false;
if (Convert.ToInt16(Language) == 1)
{
label12.Text = "Flyff ist nicht gestartet!";
}
else
{
label12.Text = "Flyff isn't running!";
}
}
if (started2)
{
button16.Visible = true;
button17.Visible = true;
progressBar1.Visible = true;
button19.Visible = false;
}
else
{
button16.Visible = false;
button17.Visible = false;
progressBar1.Visible = false;
button19.Visible = true;
}
#endregion Flyff-Client Aktiv?
}
private void button1_Click(object sender, EventArgs e)
{
Language = "1";
SW = new StreamWriter("Settings.bot", false);
SW.Write("Language: 1");
SW.Write("Keys: 0");
SW.Write("Spamspeed: 0");
SW.Close();
Weiter();
}
private void button2_Click(object sender, EventArgs e)
{
Language = "2";
SW = new StreamWriter("Settings.bot", false);
SW.Write("Language: 2");
SW.Write("Keys: 0");
SW.Write("Spamspeed: 0");
SW.Close();
Weiter();
}
public void Weiter()
{
if (Language == "1")
{
German();
label1.Visible = false;
label2.Visible = false;
button1.Visible = false;
button2.Visible = false;
}
else if (Language == "2")
{
Englisch();
label1.Visible = false;
label2.Visible = false;
button1.Visible = false;
button2.Visible = false;
}
}
Button-Clicks:
private void button1_Click(object sender, EventArgs e)
{
Language = "1";
SW = new StreamWriter("Settings.bot", false);
SW.Write("Language: 1");
SW.Write("Keys: 0");
SW.Write("Spamspeed: 0");
SW.Close();
Weiter();
}
private void button2_Click(object sender, EventArgs e)
{
Language = "2";
SW = new StreamWriter("Settings.bot", false);
SW.Write("Language: 2");
SW.Write("Keys: 0");
SW.Write("Spamspeed: 0");
SW.Close();
Weiter();
}
private void button3_Click(object sender, EventArgs e) //Englisch
{
MessageBox.Show("Flyff-Bot 2.0 by XeneX(toemsel)","Flyff-Bot 2.0");
Environment.Exit(0);
}
private void timer1_Tick(object sender, EventArgs e)
{
Environment.Exit(0);
}
private void button4_Click(object sender, EventArgs e) //1 Tag
{
timer2.Stop();
timer3.Stop();
timer4.Stop();
timer = 0;
timer1.Start();
selected = 86400000;
timer5.Start();
label3.Visible = true;
textBox1.Visible = true;
button18.Visible = true;
label4.Visible = true;
}
private void button5_Click(object sender, EventArgs e) //12 Stunden
{
timer1.Stop();
timer3.Stop();
timer4.Stop();
timer = 0;
timer2.Start();
selected = 43200000;
timer5.Start();
label3.Visible = true;
textBox1.Visible = true;
button18.Visible = true;
label4.Visible = true;
}
private void button6_Click(object sender, EventArgs e) //6 Stunden
{
timer2.Stop();
timer1.Stop();
timer4.Stop();
timer = 0;
timer3.Start();
selected = 21600000;
timer5.Start();
label3.Visible = true;
textBox1.Visible = true;
button18.Visible = true;
label4.Visible = true;
}
private void button7_Click(object sender, EventArgs e) //3 Stunden
{
timer2.Stop();
timer3.Stop();
timer1.Stop();
timer = 0;
timer4.Start();
selected = 10800000;
timer5.Start();
label3.Visible = true;
textBox1.Visible = true;
button18.Visible = true;
label4.Visible = true;
}
private void button18_Click(object sender, EventArgs e)
{
label3.Visible = false;
textBox1.Visible = false;
button18.Visible = false;
label4.Visible = false;
timer1.Stop();
timer2.Stop();
timer3.Stop();
timer4.Stop();
timer5.Stop();
timer = 0;
}
private void Button_Add(object sender, EventArgs e)
{
comboBox1.Items.Add(comboBox2.Text);
}
private void button15_Click_1(object sender, EventArgs e)
{
comboBox1.Items.Remove(comboBox1.Text);
comboBox1.Text = "";
}
private void button13_Click_1(object sender, EventArgs e)
{
if (comboBox1.Items.Count == 0)
{
if (Language == "1")
{
MessageBox.Show("Keine Einträge vorhanden!");
}
else
{
MessageBox.Show("No keys added!");
}
}
else
{
Tasten = "";
SR = new StreamReader("Settings.bot");
OldLanguage = SR.ReadLine();
OldTasten = SR.ReadLine();
OldSpamspeed = SR.ReadLine();
SR.Close();
for(int i=0; i<comboBox1.Items.Count; i++)
{
Tasten += comboBox1.Items[i] + ",";
}
SW = new StreamWriter("Settings.bot", false);
SW.Write(OldLanguage+Environment.NewLine);
SW.Write("Keys: "+Tasten+Environment.NewLine);
SW.Write(OldSpamspeed);
SW.Close();
if (Language == "1")
{
MessageBox.Show("Erfolgreich gespeichert!");
}
else
{
MessageBox.Show("Saved successfully");
}
}
}
private void button19_Click(object sender, EventArgs e)
{
Activ();
}
private void button16_Click(object sender, EventArgs e)
{
if (comboBox1.Items.Count == 0)
{
if (Language == Convert.ToString(1))
{
MessageBox.Show("Keine Tasteneinträge vorhanden!");
}
else
{
MessageBox.Show("No Keys added!");
}
}
else
{
started = true;
//timer6.Start();
int j = Form1.FindWindow(null, windowname);
Form1.ShowWindow(j, 1);//anzeigen
Form1.SetForegroundWindow(j);//in den vordergrund bringen
System.Threading.Thread.Sleep(fensterwechsel);//warten bis es im fordergrund ist
#region Tastenspam START
while (started == true)
{
for (int i = 0; i < comboBox1.Items.Count; i++)
{
//MessageBox.Show(Convert.ToString(comboBox1.Items[i]));
if (Convert.ToString(comboBox1.Items[i]) == "F1")
{
//SendKeys.SendWait("{F1}");
keybd_event(VK_F1, 0x45, KEYEVENTF_EXTENDEDKEY | 0, 0);
}
else if (Convert.ToString(comboBox1.Items[i]) == "F2")
{
//SendKeys.SendWait("{F2}");
keybd_event(VK_F2, 0x45, KEYEVENTF_EXTENDEDKEY | 0, 0);
//keybd_event(VK_F2, 0x45, WM_KEYDOWN | WM_KEYUP, 0);
}
else if (Convert.ToString(comboBox1.Items[i]) == "F3")
{
//SendKeys.SendWait("{F3}");
keybd_event(VK_F3, 0x45, KEYEVENTF_EXTENDEDKEY | 0, 0);
//keybd_event(VK_F3, 0x45, WM_KEYDOWN | WM_KEYUP, 0);
}
else if (Convert.ToString(comboBox1.Items[i]) == "F4")
{
//SendKeys.SendWait("{F4}");
keybd_event(VK_F4, 0x45, KEYEVENTF_EXTENDEDKEY | 0, 0);
//keybd_event(VK_F4, 0x45, WM_KEYDOWN | WM_KEYUP, 0);
}
else if (Convert.ToString(comboBox1.Items[i]) == "F5")
{
//SendKeys.SendWait("{F5}");
keybd_event(VK_F5, 0x45, KEYEVENTF_EXTENDEDKEY | 0, 0);
//keybd_event(VK_F5, 0x45, WM_KEYDOWN | WM_KEYUP, 0);
}
else if (Convert.ToString(comboBox1.Items[i]) == "F6")
{
//SendKeys.SendWait("{F6}");
keybd_event(VK_F6, 0x45, KEYEVENTF_EXTENDEDKEY | 0, 0);
//keybd_event(VK_F6, 0x45, WM_KEYDOWN | WM_KEYUP, 0);
}
else if (Convert.ToString(comboBox1.Items[i]) == "F7")
{
//SendKeys.SendWait("{F7}");
keybd_event(VK_F7, 0x45, KEYEVENTF_EXTENDEDKEY | 0, 0);
//keybd_event(VK_F7, 0x45, WM_KEYDOWN | WM_KEYUP, 0);
}
else if (Convert.ToString(comboBox1.Items[i]) == "F8")
{
//SendKeys.SendWait("{F8}");
keybd_event(VK_F8, 0x45, KEYEVENTF_EXTENDEDKEY | 0, 0);
//keybd_event(VK_F8, 0x45, WM_KEYDOWN | WM_KEYUP, 0);
}
else if (Convert.ToString(comboBox1.Items[i]) == "F9")
{
//SendKeys.SendWait("{F9}");
keybd_event(VK_F9, 0x45, KEYEVENTF_EXTENDEDKEY | 0, 0);
//keybd_event(VK_F9, 0x45, WM_KEYDOWN | WM_KEYUP, 0);
}
else if (Convert.ToString(comboBox1.Items[i]) == "C")
{
//SendKeys.SendWait("{C}");
keybd_event(VK_C, 0x45, KEYEVENTF_EXTENDEDKEY | 0, 0);
//keybd_event(VK_C, 0x45, WM_KEYDOWN | WM_KEYUP, 0);
}
if (progressBar1.Value == 100)
{
progressBar1.Value = 0;
}
else
{
progressBar1.Value += 1;
}
//SendKeys.Flush();
Application.DoEvents();
//System.Threading.Thread.Sleep(60000 - (6000*(Convert.ToInt16(Spamspeed))));
if (Convert.ToUInt16(Spamspeed) == 10)
{
System.Threading.Thread.Sleep(1000);
}
else if (Convert.ToUInt16(Spamspeed) == 9)
{
System.Threading.Thread.Sleep(2000);
}
else if (Convert.ToUInt16(Spamspeed) == 8)
{
System.Threading.Thread.Sleep(3000);
}
else if (Convert.ToUInt16(Spamspeed) == 7)
{
System.Threading.Thread.Sleep(4000);
}
else if (Convert.ToUInt16(Spamspeed) == 6)
{
System.Threading.Thread.Sleep(5000);
}
else if (Convert.ToUInt16(Spamspeed) == 5)
{
System.Threading.Thread.Sleep(6000);
}
else if (Convert.ToUInt16(Spamspeed) == 4)
{
System.Threading.Thread.Sleep(7000);
}
else if (Convert.ToUInt16(Spamspeed) == 3)
{
System.Threading.Thread.Sleep(8000);
}
else if (Convert.ToUInt16(Spamspeed) == 2)
{
System.Threading.Thread.Sleep(9000);
}
else if (Convert.ToUInt16(Spamspeed) == 1)
{
System.Threading.Thread.Sleep(10000);
}
else if (Convert.ToUInt16(Spamspeed) == 0)
{
System.Threading.Thread.Sleep(11000);
}
//MessageBox.Show(Convert.ToString(100 - (2*(Convert.ToInt16(Spamspeed)))));
}
}
}
#endregion Tastenspam START
}
private void button17_Click(object sender, EventArgs e)
{
started = false;
timer6.Stop();
progressBar1.Value = 0;
}
private void button20_Click(object sender, EventArgs e)
{
comboBox1.Items.Clear();
}
German-Methode:
#region German-Tabbox
public void German()
{
tabControl2.Visible = true;
tabPage16.Text = "Start";
tabPage17.Text = "Tasten";
tabPage18.Text = "Einstellungen";
tabPage19.Text = "Impressum";
tabPage20.Text = "Beenden";
label3.Text = "Beenden in:";
label4.Text = "Sekunden";
/*Start*/
button16.Text = "Starten";
button17.Text = "Beenden";
button19.Text = "Aktualisieren";
if (started2 == true)
{
label12.Text = "Flyff ist gestartet!";
}
else
{
label12.Text = "Flyff ist nicht gestartet!";
}
/*Start-End*/
/*Keys*/
label8.Text = "Hinzufügen";
label9.Text = "Hinzugefügt";
button13.Text = "Speichern";
button14.Text = "Hinzufügen";
button15.Text = "Löschen";
/*Keys-End*/
/*Settings*/
label5.Text = "Spamstärke";
label13.Text = "Sprache:";
checkBox1.Checked = true;
checkBox2.Checked = false;
/*Settings-End*/
/*Exit*/
button3.Text = "Jetzt Beenden";
button4.Text = "In 1 Tag beenden";
button5.Text = "In 12h. beenden";
button6.Text = "In 6h. beenden";
button7.Text = "In 3h. beenden";
/*Exit-End*/
}
#endregion German-Tabbox
Englisch-Methode:
#region Englisch-Tabbox
public void Englisch()
{
tabControl2.Visible = true;
tabPage16.Text = "Start";
tabPage17.Text = "Keys";
tabPage18.Text = "Settings";
tabPage19.Text = "Impressum";
tabPage20.Text = "Exit";
label3.Text = "Is closing in:";
label4.Text = "seconds";
/*Start*/
button16.Text = "Start";
button17.Text = "Abort";
button19.Text = "Refresh";
if (started2 == true)
{
label12.Text = "Flyff is running!";
}
else
{
label12.Text = "Flyff isn't running!";
}
/*Start-End*/
/*Keys*/
label8.Text = "Add Key";
label9.Text = "Added Keys";
button13.Text = "Save";
button14.Text = "Add";
button15.Text = "Clear";
/*Keys-End*/
/*Settings*/
label5.Text = "Spamspeed";
label13.Text = "Language:";
checkBox1.Checked = false;
checkBox2.Checked = true;
/*Settings-End*/
/*Exit*/
button3.Text = "Exit now";
button4.Text = "Exit in 1 Day";
button5.Text = "Exit in 12 hours";
button6.Text = "Exit in 6 hours";
button7.Text = "Exit in 3 hours";
/*Exit-End*/
}
#endregion Englisch-Tabbox
Timer:
private void timer1_Tick(object sender, EventArgs e)
{
Environment.Exit(0);
}
Methode-Sekunde:
private void Sekunde(object sender, EventArgs e)
{
timer += 1;
textBox1.Text = Convert.ToString((selected - timer)/1000);
}
Trackbar:
private void trackBar1_Scroll(object sender, EventArgs e)
{
SR = new StreamReader("Settings.bot");
Language = SR.ReadLine();
Tasten = SR.ReadLine();
Spamspeed = SR.ReadLine();
SR.Close();
SW = new StreamWriter("Settings.bot", false);
SW.Write(Language + Environment.NewLine);
SW.Write(Tasten + Environment.NewLine);
SW.Write("Spamspeed: "+trackBar1.Value);
SW.Close();
Spamspeed = Convert.ToString(trackBar1.Value);
}
Prozessbar:
public void prozessbar(object sender, EventArgs e)
{
progressBar1.Value += 1;
if (progressBar1.Value == 100)
{
progressBar1.Value = 0;
}
}
CheckBox:
private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
if (checkBox1.Checked == true)
{
checkBox2.Checked = false;
SR = new StreamReader("Settings.bot");
OldLanguage = SR.ReadLine();
OldTasten = SR.ReadLine();
OldSpamspeed = SR.ReadLine();
SR.Close();
SW = new StreamWriter("Settings.bot", false);
SW.Write("Language: 1"+Environment.NewLine);
SW.Write(OldTasten + Environment.NewLine);
SW.Write(OldSpamspeed);
SW.Close();
Language = "1";
German();
}
}
private void checkBox2_CheckedChanged(object sender, EventArgs e)
{
if (checkBox2.Checked == true)
{
checkBox1.Checked = false;
SR = new StreamReader("Settings.bot");
OldLanguage = SR.ReadLine();
OldTasten = SR.ReadLine();
OldSpamspeed = SR.ReadLine();
SR.Close();
SW = new StreamWriter("Settings.bot", false);
SW.Write("Language: 2" + Environment.NewLine);
SW.Write(OldTasten + Environment.NewLine);
SW.Write(OldSpamspeed);
SW.Close();
Language = "2";
Englisch();
}
}
An dieser Stelle wäre ein THANKS angebracht ;)