Last active
August 29, 2015 14:10
-
-
Save mokiding/44ede77694cd8edfd771 to your computer and use it in GitHub Desktop.
noobot_launcher src
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace NooBot_Launcher | |
{ | |
using Microsoft.Win32; | |
using NooBot_Launcher.Properties; | |
using System; | |
using System.ComponentModel; | |
using System.Diagnostics; | |
using System.Drawing; | |
using System.IO; | |
using System.Linq; | |
using System.Net; | |
using System.Net.NetworkInformation; | |
using System.Net.Sockets; | |
using System.Runtime.InteropServices; | |
using System.Text; | |
using System.Threading; | |
using System.Windows.Forms; | |
using WikiReader; | |
public class Form1 : Form | |
{ | |
private Form4 BanBox = new Form4(); | |
private Button button1; | |
private Button button2; | |
private Button button3; | |
private Button button4; | |
private Button button5; | |
private Button button6; | |
private Button button7; | |
private Button button8; | |
private int ButtonTimer = 0; | |
private IContainer components = null; | |
private LinkLabel ConnectionText; | |
private Form2 CreditsBox = new Form2(); | |
private const int CS_DBLCLKS = 8; | |
private CheckBox DisableKB; | |
private Button DonationButton; | |
private Form3 ErrorBox = new Form3(); | |
private Button FaceBook; | |
private Button Forum; | |
public string GTAPath; | |
private int HasCleo = 0; | |
private int HasModSA = 0; | |
private UserActivityHook hook; | |
public const int HT_CAPTION = 2; | |
private TextBox Ime; | |
private Form6 InfoBox = new Form6(); | |
private Button InfoButton; | |
private bool InGame = false; | |
private bool InGameNB = false; | |
private int InitialConnectionTimer = 0; | |
private bool IsConsoleActive = false; | |
private TextBox KeyBindBox1; | |
private TextBox KeyBindBox10; | |
private TextBox KeyBindBox11; | |
private TextBox KeyBindBox12; | |
private TextBox KeyBindBox13; | |
private TextBox KeyBindBox14; | |
private TextBox KeyBindBox15; | |
private TextBox KeyBindBox16; | |
private TextBox KeyBindBox17; | |
private TextBox KeyBindBox18; | |
private TextBox KeyBindBox19; | |
private TextBox KeyBindBox2; | |
private TextBox KeyBindBox20; | |
private TextBox KeyBindBox21; | |
private TextBox KeyBindBox22; | |
private TextBox KeyBindBox23; | |
private TextBox KeyBindBox24; | |
private TextBox KeyBindBox25; | |
private TextBox KeyBindBox26; | |
private TextBox KeyBindBox3; | |
private TextBox KeyBindBox4; | |
private TextBox KeyBindBox5; | |
private TextBox KeyBindBox6; | |
private TextBox KeyBindBox7; | |
private TextBox KeyBindBox8; | |
private TextBox KeyBindBox9; | |
private Form5 KeyBinderBox = new Form5(); | |
private CheckBox KeyBinderCB1; | |
private CheckBox KeyBinderCB10; | |
private CheckBox KeyBinderCB11; | |
private CheckBox KeyBinderCB12; | |
private CheckBox KeyBinderCB13; | |
private CheckBox KeyBinderCB14; | |
private CheckBox KeyBinderCB15; | |
private CheckBox KeyBinderCB16; | |
private CheckBox KeyBinderCB17; | |
private CheckBox KeyBinderCB18; | |
private CheckBox KeyBinderCB19; | |
private CheckBox KeyBinderCB2; | |
private CheckBox KeyBinderCB20; | |
private CheckBox KeyBinderCB21; | |
private CheckBox KeyBinderCB22; | |
private CheckBox KeyBinderCB23; | |
private CheckBox KeyBinderCB24; | |
private CheckBox KeyBinderCB25; | |
private CheckBox KeyBinderCB26; | |
private CheckBox KeyBinderCB3; | |
private CheckBox KeyBinderCB4; | |
private CheckBox KeyBinderCB5; | |
private CheckBox KeyBinderCB6; | |
private CheckBox KeyBinderCB7; | |
private CheckBox KeyBinderCB8; | |
private CheckBox KeyBinderCB9; | |
private Panel KeyBinderPanel; | |
private TextBox KeyBindInput1; | |
private TextBox KeyBindInput10; | |
private TextBox KeyBindInput11; | |
private TextBox KeyBindInput12; | |
private TextBox KeyBindInput13; | |
private TextBox KeyBindInput14; | |
private TextBox KeyBindInput15; | |
private TextBox KeyBindInput16; | |
private TextBox KeyBindInput17; | |
private TextBox KeyBindInput18; | |
private TextBox KeyBindInput19; | |
private TextBox KeyBindInput2; | |
private TextBox KeyBindInput20; | |
private TextBox KeyBindInput21; | |
private TextBox KeyBindInput22; | |
private TextBox KeyBindInput23; | |
private TextBox KeyBindInput24; | |
private TextBox KeyBindInput25; | |
private TextBox KeyBindInput26; | |
private TextBox KeyBindInput3; | |
private TextBox KeyBindInput4; | |
private TextBox KeyBindInput5; | |
private TextBox KeyBindInput6; | |
private TextBox KeyBindInput7; | |
private TextBox KeyBindInput8; | |
private TextBox KeyBindInput9; | |
private Label label1; | |
private RegistryKey LauncherKey = Registry.CurrentUser.OpenSubKey(@"Software\NBL", true); | |
private LinkLabel linkLabel1; | |
private LinkLabel linkLabel10; | |
private LinkLabel linkLabel11; | |
private LinkLabel linkLabel12; | |
private LinkLabel linkLabel13; | |
private LinkLabel linkLabel14; | |
private LinkLabel linkLabel2; | |
private LinkLabel linkLabel3; | |
private LinkLabel linkLabel4; | |
private LinkLabel linkLabel5; | |
private LinkLabel linkLabel6; | |
private LinkLabel linkLabel7; | |
private LinkLabel linkLabel8; | |
private LinkLabel linkLabel9; | |
private int LostConnection = 0; | |
private byte[] MyBuffer = new byte[0x400]; | |
private RegistryKey myKey = Registry.CurrentUser.OpenSubKey(@"Software\SAMP", true); | |
private Socket MySocket; | |
private int ObjectsRemoved = 0; | |
private string OnLineTXDVersion = null; | |
private TextBox Password; | |
private int PwBanTimer = 0; | |
private int QueryTimer = 0; | |
private int ReconnectSocket = 0; | |
private int RefreshTimer = 0; | |
private CheckBox SavePassword; | |
private System.Windows.Forms.Timer SecTimer = new System.Windows.Forms.Timer(); | |
private string ServerPassword = null; | |
private int ServerPassworded = 0; | |
private int ServerResponded = 0; | |
private CheckBox SimpleKB; | |
private Query.Query sQuery; | |
private int TXDDownloadTimer = 0; | |
private string TXDVersion; | |
private bool UserIsOnLine = false; | |
private string UserMac; | |
private int UserPing = 0; | |
private bool ValidName = false; | |
private bool ValidPass = false; | |
private string Version = "1.0.0.3"; | |
private const int WM_NCLBUTTONDBLCLK = 0xa3; | |
public const int WM_NCLBUTTONDOWN = 0xa1; | |
private int WrongPass = 0; | |
private const int WS_MINIMIZEBOX = 0x20000; | |
public Form1() | |
{ | |
this.InitializeComponent(); | |
if (this.LauncherKey == null) | |
{ | |
Registry.CurrentUser.CreateSubKey(@"Software\NBL").Close(); | |
this.LauncherKey = Registry.CurrentUser.OpenSubKey(@"Software\NBL", true); | |
this.LoadKeyBinder(); | |
if (this.LauncherKey.GetValue("PasswordBanTimer") == null) | |
{ | |
this.LauncherKey.SetValue("PasswordBanTimer", "0", RegistryValueKind.String); | |
} | |
if (this.LauncherKey.GetValue("ServerPassword") == null) | |
{ | |
this.LauncherKey.SetValue("ServerPassword", "0", RegistryValueKind.String); | |
} | |
if (this.LauncherKey.GetValue("Password") == null) | |
{ | |
this.LauncherKey.SetValue("Password", "", RegistryValueKind.String); | |
} | |
if (this.LauncherKey.GetValue("SavePassword") == null) | |
{ | |
this.LauncherKey.SetValue("SavePassword", "1", RegistryValueKind.String); | |
} | |
if (this.LauncherKey.GetValue("TXDVersion") == null) | |
{ | |
this.LauncherKey.SetValue("TXDVersion", "0", RegistryValueKind.String); | |
} | |
this.PwBanTimer = Convert.ToInt32(this.LauncherKey.GetValue("PasswordBanTimer")); | |
} | |
else | |
{ | |
this.LoadKeyBinder(); | |
if (this.LauncherKey.GetValue("PasswordBanTimer") == null) | |
{ | |
this.LauncherKey.SetValue("PasswordBanTimer", "0", RegistryValueKind.String); | |
} | |
if (this.LauncherKey.GetValue("ServerPassword") == null) | |
{ | |
this.LauncherKey.SetValue("ServerPassword", "0", RegistryValueKind.String); | |
} | |
if (this.LauncherKey.GetValue("Password") == null) | |
{ | |
this.LauncherKey.SetValue("Password", "", RegistryValueKind.String); | |
} | |
if (this.LauncherKey.GetValue("SavePassword") == null) | |
{ | |
this.LauncherKey.SetValue("SavePassword", "1", RegistryValueKind.String); | |
} | |
if (this.LauncherKey.GetValue("TXDVersion") == null) | |
{ | |
this.LauncherKey.SetValue("TXDVersion", "0", RegistryValueKind.String); | |
} | |
this.PwBanTimer = Convert.ToInt32(this.LauncherKey.GetValue("PasswordBanTimer")); | |
} | |
this.hook = new UserActivityHook(); | |
base.KeyPreview = true; | |
} | |
private void button1_Click(object sender, EventArgs e) | |
{ | |
if (this.PwBanTimer > 0) | |
{ | |
this.ShowError("Connection Refused", "Više puta ste uneli pogrešan password.\nMoćićete ponovo da se konektujete za " + this.PwBanTimer + " sekundi."); | |
} | |
else if (this.ServerResponded > 0) | |
{ | |
this.ShowError("Connection Refused", "Server jos uvek nije odgovorio na vas prethodni zahtev za povezivanje.\nMoguće da je server offline."); | |
} | |
else | |
{ | |
this.button1.BackgroundImage = Resources.Connect_Disabled; | |
this.button1.Enabled = false; | |
this.ButtonTimer = 5; | |
this.CheckPassword(); | |
this.CheckName(); | |
if (!this.ValidName) | |
{ | |
this.ShowError("Error", "Vaše ime mora biti u RolePlay formatu: Ime_Prezime\nBez simbola i brojeva, sa velikim početnim slovima.\nIme treba da bude napisano bez kvačica (č,ć,š,ž,đ).\nIzmeđu imena i prezimena treba da bude donja crta.\nMaksimalna dužina imena je 24 karaktera.\nPrimer: Petar_Petrovic"); | |
} | |
else if (!this.ValidPass) | |
{ | |
this.ShowError("Error", "Vaš password može sadržati sledeće karaktere: 'A-Z', 'a-z', '0-9', '.,!-'"); | |
} | |
else if (!this.UserIsOnLine) | |
{ | |
this.ShowError("Error", "Morate biti povezani na internet da bi se konektovali na server."); | |
} | |
else if (Process.GetProcessesByName("gta_sa").Length > 0) | |
{ | |
this.ShowError("Error", "Gta je već pokrenut."); | |
} | |
else | |
{ | |
this.HasCleo = 0; | |
this.HasModSA = 0; | |
this.ServerResponded = 7; | |
this.SocketConnection(); | |
this.SendToServer(string.Concat(new object[] { "connect:", this.Ime.Text, ":", this.Password.Text, ":", this.UserMac, ":", this.Version, ":", this.ObjectsRemoved, ":", this.HasCleo, ":", this.HasModSA })); | |
} | |
} | |
} | |
private void button1_MouseEnter(object sender, EventArgs e) | |
{ | |
this.button1.BackgroundImage = Resources.Connect_MouseOver; | |
} | |
private void button1_MouseLeave(object sender, EventArgs e) | |
{ | |
if (this.button1.Enabled) | |
{ | |
this.button1.BackgroundImage = Resources.Connect; | |
} | |
} | |
private void button2_Click(object sender, EventArgs e) | |
{ | |
if ((this.MySocket != null) && this.MySocket.Connected) | |
{ | |
this.MySocket.Shutdown(SocketShutdown.Both); | |
Thread.Sleep(10); | |
this.MySocket.Close(); | |
} | |
this.SaveKeyBinder(); | |
base.Close(); | |
Application.Exit(); | |
} | |
private void button2_MouseEnter(object sender, EventArgs e) | |
{ | |
this.button2.BackgroundImage = Resources.Power_MouseOver; | |
} | |
private void button2_MouseLeave(object sender, EventArgs e) | |
{ | |
this.button2.BackgroundImage = Resources.Power; | |
} | |
private void button3_Click(object sender, EventArgs e) | |
{ | |
base.WindowState = FormWindowState.Minimized; | |
} | |
private void button3_MouseEnter(object sender, EventArgs e) | |
{ | |
this.button3.BackgroundImage = Resources.Minimize_MouseOver; | |
} | |
private void button3_MouseLeave(object sender, EventArgs e) | |
{ | |
this.button3.BackgroundImage = Resources.Minimize; | |
} | |
private void button4_Click(object sender, EventArgs e) | |
{ | |
if (this.IsUserAlive()) | |
{ | |
if (this.InitialConnectionTimer > 1) | |
{ | |
this.InitialConnection(); | |
this.InitialConnectionTimer = 0; | |
} | |
else | |
{ | |
this.UpdateServerInfo(); | |
} | |
} | |
} | |
private void button5_Click(object sender, EventArgs e) | |
{ | |
this.KeyBinderPanel.Visible = true; | |
this.button8.Enabled = true; | |
this.button5.Enabled = false; | |
} | |
private void button6_Click(object sender, EventArgs e) | |
{ | |
this.CreditsBox.Show(); | |
} | |
private void button6_MouseEnter(object sender, EventArgs e) | |
{ | |
this.button6.BackgroundImage = Resources.Question_Mark_MouseOver; | |
} | |
private void button6_MouseLeave(object sender, EventArgs e) | |
{ | |
this.button6.BackgroundImage = Resources.Question_Mark; | |
} | |
private void button7_Click(object sender, EventArgs e) | |
{ | |
Process.Start("http://m0k1.cf"); | |
} | |
private void button7_Click_1(object sender, EventArgs e) | |
{ | |
this.KeyBinderBox.Show(); | |
} | |
private void button7_MouseEnter_1(object sender, EventArgs e) | |
{ | |
this.button7.BackgroundImage = Resources.Question_Mark_MouseOver; | |
} | |
private void button7_MouseLeave_1(object sender, EventArgs e) | |
{ | |
this.button7.BackgroundImage = Resources.Question_Mark; | |
} | |
private void button8_Click(object sender, EventArgs e) | |
{ | |
this.KeyBinderPanel.Visible = false; | |
this.button8.Enabled = false; | |
this.button5.Enabled = true; | |
} | |
private void button9_MouseEnter(object sender, EventArgs e) | |
{ | |
this.InfoButton.BackgroundImage = Resources.InfoActive; | |
} | |
private void button9_MouseLeave(object sender, EventArgs e) | |
{ | |
this.InfoButton.BackgroundImage = Resources.InfoInactive; | |
} | |
private void ChangeInputKey(object sender, KeyEventArgs e) | |
{ | |
TextBox box = sender as TextBox; | |
bool flag = false; | |
string str = e.KeyCode.ToString(); | |
switch (str) | |
{ | |
case "LWin": | |
case "RWin": | |
case "ControlKey": | |
case "ShiftKey": | |
case "Tab": | |
this.ShowError("Error", "Ne možete da koristite \"" + str + "\" za KeyBind"); | |
box.Text = ""; | |
box.ReadOnly = false; | |
return; | |
case "F6": | |
case "T": | |
case "Escape": | |
this.ShowError("Error", "Ne možete da koristite \"" + str + "\" za KeyBind\nTo dugme se koristi u SA:MP-u za otvaranje chata."); | |
box.Text = ""; | |
box.ReadOnly = false; | |
return; | |
default: | |
if (str.Length <= 0) | |
{ | |
box.ReadOnly = false; | |
return; | |
} | |
foreach (Control control in this.KeyBinderPanel.Controls) | |
{ | |
if (control.GetType().ToString() == "System.Windows.Forms.TextBox") | |
{ | |
if ((str != control.Text) || (control == box)) | |
{ | |
flag = true; | |
} | |
else | |
{ | |
flag = false; | |
box.Text = ""; | |
this.ShowError("Error", "Dugme \"" + str + "\" već koristite za drugu komandu!"); | |
break; | |
} | |
} | |
} | |
break; | |
} | |
box.ReadOnly = false; | |
if (flag) | |
{ | |
if (str != "Back") | |
{ | |
box.Text = str; | |
} | |
else | |
{ | |
box.Text = ""; | |
} | |
} | |
} | |
public static bool CheckConnection() | |
{ | |
try | |
{ | |
int num; | |
return InternetGetConnectedState(out num, 0); | |
} | |
catch | |
{ | |
return false; | |
} | |
} | |
private void CheckConsoleStatus(string keyname) | |
{ | |
if (keyname == "T") | |
{ | |
if (!this.IsConsoleActive) | |
{ | |
this.IsConsoleActive = true; | |
} | |
} | |
else if ((((keyname == "Return") || (keyname == "Escape")) || (keyname == "LWin")) || (keyname == "RWin")) | |
{ | |
this.IsConsoleActive = false; | |
} | |
else if (keyname == "F6") | |
{ | |
if (this.IsConsoleActive) | |
{ | |
this.IsConsoleActive = false; | |
} | |
else | |
{ | |
this.IsConsoleActive = true; | |
} | |
} | |
} | |
private void CheckName() | |
{ | |
string text = this.Ime.Text; | |
if (text.Trim() == "") | |
{ | |
this.ValidName = false; | |
} | |
else if (text.Length > 0x18) | |
{ | |
this.ValidName = false; | |
this.Ime.ForeColor = System.Drawing.Color.Red; | |
} | |
else | |
{ | |
int num; | |
if (text.Length > 2) | |
{ | |
this.ValidName = true; | |
for (num = 2; num < text.Length; num++) | |
{ | |
char ch = char.ToLower(text[num - 2]); | |
char ch2 = char.ToLower(text[num - 1]); | |
char ch3 = char.ToLower(text[num]); | |
if ((ch == ch2) && (ch == ch3)) | |
{ | |
this.ValidName = false; | |
this.Ime.ForeColor = System.Drawing.Color.Red; | |
break; | |
} | |
if ((text[num - 1] == '_') && ((text[num] < 'A') || (text[num] > 'Z'))) | |
{ | |
this.ValidName = false; | |
this.Ime.ForeColor = System.Drawing.Color.Red; | |
break; | |
} | |
} | |
if (!this.ValidName) | |
{ | |
return; | |
} | |
} | |
if (char.IsLower(text[0])) | |
{ | |
this.ValidName = false; | |
this.Ime.ForeColor = System.Drawing.Color.Red; | |
} | |
else | |
{ | |
for (num = 0; num < text.Length; num++) | |
{ | |
if ((((text[num] >= 'a') && (text[num] <= 'z')) || ((text[num] >= 'A') && (text[num] <= 'Z'))) || (text[num] == '_')) | |
{ | |
this.ValidName = true; | |
this.Ime.ForeColor = System.Drawing.Color.FromArgb(0x33, 0x99, 0xff); | |
} | |
else | |
{ | |
this.ValidName = false; | |
this.Ime.ForeColor = System.Drawing.Color.Red; | |
break; | |
} | |
} | |
} | |
} | |
} | |
private void CheckPassword() | |
{ | |
string text = this.Password.Text; | |
for (int i = 0; i < text.Length; i++) | |
{ | |
if ((((((text[i] >= 'a') && (text[i] <= 'z')) || ((text[i] >= 'A') && (text[i] <= 'Z'))) || (((text[i] >= '0') && (text[i] <= '9')) || ((text[i] == '-') || (text[i] == '.')))) || (text[i] == ',')) || (text[i] == '!')) | |
{ | |
this.ValidPass = true; | |
this.Password.ForeColor = System.Drawing.Color.FromArgb(0x33, 0x99, 0xff); | |
} | |
else | |
{ | |
this.ValidPass = false; | |
this.Password.ForeColor = System.Drawing.Color.Red; | |
break; | |
} | |
} | |
} | |
private void Completed(object sender, AsyncCompletedEventArgs e) | |
{ | |
this.TXDVersion = this.OnLineTXDVersion; | |
this.LauncherKey.SetValue("TXDVersion", this.TXDVersion, RegistryValueKind.String); | |
} | |
private void ConnectionText_MouseMove(object sender, MouseEventArgs e) | |
{ | |
this.MoveWindow(e); | |
} | |
protected override void Dispose(bool disposing) | |
{ | |
if (disposing && (this.components != null)) | |
{ | |
this.components.Dispose(); | |
} | |
base.Dispose(disposing); | |
} | |
private void DonationButton_Click(object sender, EventArgs e) | |
{ | |
Process.Start("http://www.NooBot.info/donate"); | |
} | |
private void DonationButton_MouseEnter(object sender, EventArgs e) | |
{ | |
this.DonationButton.BackgroundImage = Resources.DonationActive; | |
} | |
private void DonationButton_MouseLeave(object sender, EventArgs e) | |
{ | |
this.DonationButton.BackgroundImage = Resources.DonationInactive; | |
} | |
private void FaceBook_Click(object sender, EventArgs e) | |
{ | |
Process.Start("https://fb.me/mokriding"); | |
} | |
private void FaceBook_MouseEnter(object sender, EventArgs e) | |
{ | |
this.FaceBook.BackgroundImage = Resources.FaceActive; | |
} | |
private void FaceBook_MouseLeave(object sender, EventArgs e) | |
{ | |
this.FaceBook.BackgroundImage = Resources.FaceInactive; | |
} | |
[DllImport("USER32.DLL", CharSet=CharSet.Unicode)] | |
public static extern IntPtr FindWindow(string lpClassName, string lpWindowName); | |
private void Form1_Load(object sender, EventArgs e) | |
{ | |
this.SecTimer.Interval = 0x3e8; | |
this.SecTimer.Tick += new EventHandler(this.timer_Tick); | |
this.SecTimer.Start(); | |
this.button8.Enabled = false; | |
if (this.myKey != null) | |
{ | |
this.Ime.Text = this.myKey.GetValue("PlayerName").ToString(); | |
this.GTAPath = this.myKey.GetValue("gta_sa_exe").ToString(); | |
this.GTAPath = this.GTAPath.Substring(0, this.GTAPath.Length - 11); | |
if (!System.IO.File.Exists(this.GTAPath + @"\gta_sa.exe")) | |
{ | |
MessageBox.Show("Nije pronađen gta_sa.exe u GTA Folderu:\n" + this.GTAPath + "\nPokušajte sa reinstalacijom SA-MP clienta, ukoliko i dalje bude javljalo istu grešku reinstalirajte GTA.", "Greška", MessageBoxButtons.OK, MessageBoxIcon.Hand); | |
base.Close(); | |
Application.Exit(); | |
} | |
else if (!System.IO.File.Exists(this.GTAPath + @"\samp.exe")) | |
{ | |
MessageBox.Show("Nije pronađen samp.exe u GTA Folderu:\n" + this.GTAPath + "\nReinstalirajte SA-MP Client.", "Greška", MessageBoxButtons.OK, MessageBoxIcon.Hand); | |
base.Close(); | |
Application.Exit(); | |
} | |
this.TXDVersion = this.LauncherKey.GetValue("TXDVersion").ToString(); | |
this.Password.Text = this.LauncherKey.GetValue("Password").ToString(); | |
if (this.LauncherKey.GetValue("SavePassword").ToString() == "1") | |
{ | |
this.SavePassword.Checked = true; | |
} | |
else | |
{ | |
this.SavePassword.Checked = false; | |
} | |
this.UserMac = this.GetMACAddress(); | |
} | |
else | |
{ | |
MessageBox.Show("Pre pokretanja ovog programa morate instalirati SA:MP\nMožete ga skinuti sa oficijalne stranice:\nhttp://sa-mp.com/download.php", "Greška", MessageBoxButtons.OK, MessageBoxIcon.Hand); | |
base.Close(); | |
Application.Exit(); | |
} | |
if (this.IsUserAlive()) | |
{ | |
this.InitialConnection(); | |
} | |
else | |
{ | |
this.InitialConnectionTimer = 10; | |
} | |
this.KeyBinder(); | |
this.StatusMsg(this.GTAPath + @"\samp.exe"); | |
} | |
private void Forum_MouseEnter(object sender, EventArgs e) | |
{ | |
this.Forum.BackgroundImage = Resources.SiteActive; | |
} | |
private void Forum_MouseLeave(object sender, EventArgs e) | |
{ | |
this.Forum.BackgroundImage = Resources.SiteInactive; | |
} | |
private string GetActiveWindowTitle() | |
{ | |
StringBuilder text = new StringBuilder(0x100); | |
if (GetWindowText(GetForegroundWindow(), text, 0x100) > 0) | |
{ | |
return text.ToString(); | |
} | |
return null; | |
} | |
private bool GetCheckBoxCheckedByName(string cbname) | |
{ | |
foreach (Control control in this.KeyBinderPanel.Controls) | |
{ | |
if ((control.GetType().ToString() == "System.Windows.Forms.CheckBox") && (cbname == control.Name)) | |
{ | |
return ((CheckBox) control).Checked; | |
} | |
} | |
return false; | |
} | |
[DllImport("user32.dll")] | |
private static extern IntPtr GetForegroundWindow(); | |
private Keys GetKey(IntPtr LParam) | |
{ | |
return (Keys) (LParam.ToInt32() >> 0x10); | |
} | |
public string GetMACAddress() | |
{ | |
NetworkInterface[] allNetworkInterfaces = NetworkInterface.GetAllNetworkInterfaces(); | |
string str = string.Empty; | |
foreach (NetworkInterface interface2 in allNetworkInterfaces) | |
{ | |
if (str == string.Empty) | |
{ | |
IPInterfaceProperties iPProperties = interface2.GetIPProperties(); | |
str = interface2.GetPhysicalAddress().ToString(); | |
} | |
} | |
return str; | |
} | |
private string GetTextBoxTextByName(string tbname) | |
{ | |
foreach (Control control in this.KeyBinderPanel.Controls) | |
{ | |
if ((control.GetType().ToString() == "System.Windows.Forms.TextBox") && (tbname == control.Name)) | |
{ | |
return control.Text; | |
} | |
} | |
return ""; | |
} | |
[DllImport("user32.dll")] | |
private static extern int GetWindowText(IntPtr hWnd, StringBuilder text, int count); | |
private void InfoButton_Click(object sender, EventArgs e) | |
{ | |
if (this.UserIsOnLine) | |
{ | |
byte[] buffer = new byte[0x2000]; | |
HttpWebRequest request = (HttpWebRequest) WebRequest.Create("http://noobot.info/NBLauncher/info"); | |
Stream responseStream = ((HttpWebResponse) request.GetResponse()).GetResponseStream(); | |
string text = null; | |
int count = 0; | |
do | |
{ | |
count = responseStream.Read(buffer, 0, buffer.Length); | |
if (count != 0) | |
{ | |
text = Encoding.ASCII.GetString(buffer, 0, count); | |
} | |
} | |
while (count > 0); | |
this.ShowInfo("InfoBox - Obaveštenja", text); | |
} | |
} | |
private void InitialConnection() | |
{ | |
this.sQuery = new Query.Query("noobot.info", 0x22b8); | |
this.sQuery.Send('r'); | |
int count = this.sQuery.Receive(); | |
string[] strArray = this.sQuery.Store(count); | |
if (count > 5) | |
{ | |
this.linkLabel4.Text = strArray[5]; | |
} | |
this.UpdateServerInfo(); | |
this.TXDDownloadTimer = 5; | |
} | |
private void InitializeComponent() | |
{ | |
ComponentResourceManager manager = new ComponentResourceManager(typeof(Form1)); | |
this.button1 = new Button(); | |
this.Ime = new TextBox(); | |
this.button2 = new Button(); | |
this.button3 = new Button(); | |
this.button5 = new Button(); | |
this.Password = new TextBox(); | |
this.FaceBook = new Button(); | |
this.Forum = new Button(); | |
this.label1 = new Label(); | |
this.button6 = new Button(); | |
this.linkLabel1 = new LinkLabel(); | |
this.linkLabel2 = new LinkLabel(); | |
this.linkLabel3 = new LinkLabel(); | |
this.linkLabel4 = new LinkLabel(); | |
this.linkLabel5 = new LinkLabel(); | |
this.button4 = new Button(); | |
this.button8 = new Button(); | |
this.KeyBindBox3 = new TextBox(); | |
this.KeyBindBox7 = new TextBox(); | |
this.KeyBindBox5 = new TextBox(); | |
this.KeyBindBox4 = new TextBox(); | |
this.KeyBindBox10 = new TextBox(); | |
this.KeyBindBox9 = new TextBox(); | |
this.KeyBindBox8 = new TextBox(); | |
this.KeyBindBox11 = new TextBox(); | |
this.KeyBindBox12 = new TextBox(); | |
this.KeyBindBox13 = new TextBox(); | |
this.KeyBindBox6 = new TextBox(); | |
this.KeyBinderPanel = new Panel(); | |
this.button7 = new Button(); | |
this.linkLabel14 = new LinkLabel(); | |
this.linkLabel13 = new LinkLabel(); | |
this.linkLabel12 = new LinkLabel(); | |
this.linkLabel11 = new LinkLabel(); | |
this.linkLabel10 = new LinkLabel(); | |
this.linkLabel8 = new LinkLabel(); | |
this.DisableKB = new CheckBox(); | |
this.SimpleKB = new CheckBox(); | |
this.linkLabel7 = new LinkLabel(); | |
this.linkLabel6 = new LinkLabel(); | |
this.KeyBindInput19 = new TextBox(); | |
this.KeyBindInput18 = new TextBox(); | |
this.KeyBindInput24 = new TextBox(); | |
this.KeyBindInput23 = new TextBox(); | |
this.KeyBindInput22 = new TextBox(); | |
this.KeyBindInput21 = new TextBox(); | |
this.KeyBindInput20 = new TextBox(); | |
this.KeyBindInput14 = new TextBox(); | |
this.KeyBindInput15 = new TextBox(); | |
this.KeyBindInput16 = new TextBox(); | |
this.KeyBindInput17 = new TextBox(); | |
this.KeyBindInput26 = new TextBox(); | |
this.KeyBindInput25 = new TextBox(); | |
this.KeyBindBox23 = new TextBox(); | |
this.KeyBindBox24 = new TextBox(); | |
this.KeyBindBox25 = new TextBox(); | |
this.KeyBindBox26 = new TextBox(); | |
this.KeyBindBox20 = new TextBox(); | |
this.KeyBindBox21 = new TextBox(); | |
this.KeyBindBox22 = new TextBox(); | |
this.KeyBindBox14 = new TextBox(); | |
this.KeyBindBox15 = new TextBox(); | |
this.KeyBindBox16 = new TextBox(); | |
this.KeyBindBox17 = new TextBox(); | |
this.KeyBindBox18 = new TextBox(); | |
this.KeyBindBox19 = new TextBox(); | |
this.KeyBinderCB15 = new CheckBox(); | |
this.KeyBinderCB14 = new CheckBox(); | |
this.KeyBinderCB17 = new CheckBox(); | |
this.KeyBinderCB16 = new CheckBox(); | |
this.KeyBinderCB20 = new CheckBox(); | |
this.KeyBinderCB19 = new CheckBox(); | |
this.KeyBinderCB18 = new CheckBox(); | |
this.KeyBinderCB26 = new CheckBox(); | |
this.KeyBinderCB25 = new CheckBox(); | |
this.KeyBinderCB24 = new CheckBox(); | |
this.KeyBinderCB23 = new CheckBox(); | |
this.KeyBinderCB22 = new CheckBox(); | |
this.KeyBinderCB21 = new CheckBox(); | |
this.KeyBindInput2 = new TextBox(); | |
this.KeyBindInput1 = new TextBox(); | |
this.KeyBindInput4 = new TextBox(); | |
this.KeyBindInput5 = new TextBox(); | |
this.KeyBindInput3 = new TextBox(); | |
this.KeyBindInput6 = new TextBox(); | |
this.KeyBindInput7 = new TextBox(); | |
this.KeyBindInput8 = new TextBox(); | |
this.KeyBindInput9 = new TextBox(); | |
this.KeyBindInput10 = new TextBox(); | |
this.KeyBindInput11 = new TextBox(); | |
this.KeyBindInput12 = new TextBox(); | |
this.KeyBindInput13 = new TextBox(); | |
this.KeyBinderCB2 = new CheckBox(); | |
this.KeyBinderCB1 = new CheckBox(); | |
this.KeyBindBox2 = new TextBox(); | |
this.KeyBindBox1 = new TextBox(); | |
this.KeyBinderCB4 = new CheckBox(); | |
this.KeyBinderCB3 = new CheckBox(); | |
this.KeyBinderCB9 = new CheckBox(); | |
this.KeyBinderCB8 = new CheckBox(); | |
this.KeyBinderCB7 = new CheckBox(); | |
this.KeyBinderCB6 = new CheckBox(); | |
this.KeyBinderCB5 = new CheckBox(); | |
this.KeyBinderCB10 = new CheckBox(); | |
this.KeyBinderCB12 = new CheckBox(); | |
this.KeyBinderCB11 = new CheckBox(); | |
this.KeyBinderCB13 = new CheckBox(); | |
this.linkLabel9 = new LinkLabel(); | |
this.ConnectionText = new LinkLabel(); | |
this.InfoButton = new Button(); | |
this.DonationButton = new Button(); | |
this.SavePassword = new CheckBox(); | |
this.KeyBinderPanel.SuspendLayout(); | |
base.SuspendLayout(); | |
this.button1.BackColor = System.Drawing.Color.Transparent; | |
this.button1.Cursor = Cursors.Hand; | |
this.button1.FlatAppearance.BorderSize = 0; | |
this.button1.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; | |
this.button1.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; | |
this.button1.FlatStyle = FlatStyle.Flat; | |
this.button1.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Pixel, 0xee); | |
this.button1.ForeColor = SystemColors.ControlLightLight; | |
this.button1.Location = new Point(0x1ca, 0x5e); | |
this.button1.Name = "button1"; | |
this.button1.Size = new Size(0xe0, 0x3e); | |
this.button1.TabIndex = 3; | |
this.button1.UseVisualStyleBackColor = false; | |
this.button1.Click += new EventHandler(this.button1_Click); | |
this.button1.MouseEnter += new EventHandler(this.button1_MouseEnter); | |
this.button1.MouseLeave += new EventHandler(this.button1_MouseLeave); | |
this.Ime.BackColor = System.Drawing.Color.Black; | |
this.Ime.BorderStyle = BorderStyle.None; | |
this.Ime.Font = new Font("Microsoft Sans Serif", 17f, FontStyle.Bold, GraphicsUnit.Pixel, 0xee); | |
this.Ime.ForeColor = System.Drawing.Color.FromArgb(0x33, 0x99, 0xff); | |
this.Ime.Location = new Point(0xaf, 0x62); | |
this.Ime.MaxLength = 0x18; | |
this.Ime.Name = "Ime"; | |
this.Ime.Size = new Size(0x10f, 20); | |
this.Ime.TabIndex = 1; | |
this.Ime.Text = "Ime_Prezime"; | |
this.Ime.TextAlign = HorizontalAlignment.Center; | |
this.Ime.TextChanged += new EventHandler(this.textBox1_TextChanged); | |
this.button2.BackColor = System.Drawing.Color.Transparent; | |
this.button2.BackgroundImage = Resources.Power; | |
this.button2.BackgroundImageLayout = ImageLayout.Center; | |
this.button2.Cursor = Cursors.Hand; | |
this.button2.FlatAppearance.BorderSize = 0; | |
this.button2.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; | |
this.button2.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; | |
this.button2.FlatStyle = FlatStyle.Flat; | |
this.button2.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0xee); | |
this.button2.ForeColor = System.Drawing.Color.FromArgb(0x33, 0x99, 0xff); | |
this.button2.Location = new Point(0x29b, 12); | |
this.button2.Name = "button2"; | |
this.button2.RightToLeft = RightToLeft.No; | |
this.button2.Size = new Size(0x15, 0x17); | |
this.button2.TabIndex = 9; | |
this.button2.TabStop = false; | |
this.button2.UseVisualStyleBackColor = false; | |
this.button2.Click += new EventHandler(this.button2_Click); | |
this.button2.MouseEnter += new EventHandler(this.button2_MouseEnter); | |
this.button2.MouseLeave += new EventHandler(this.button2_MouseLeave); | |
this.button3.BackColor = System.Drawing.Color.Transparent; | |
this.button3.BackgroundImage = Resources.Minimize; | |
this.button3.BackgroundImageLayout = ImageLayout.Center; | |
this.button3.Cursor = Cursors.Hand; | |
this.button3.FlatAppearance.BorderSize = 0; | |
this.button3.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; | |
this.button3.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; | |
this.button3.FlatStyle = FlatStyle.Flat; | |
this.button3.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0xee); | |
this.button3.ForeColor = System.Drawing.Color.FromArgb(0x33, 0x99, 0xff); | |
this.button3.Location = new Point(0x27d, 12); | |
this.button3.Name = "button3"; | |
this.button3.RightToLeft = RightToLeft.No; | |
this.button3.Size = new Size(0x18, 0x17); | |
this.button3.TabIndex = 8; | |
this.button3.TabStop = false; | |
this.button3.UseVisualStyleBackColor = false; | |
this.button3.Click += new EventHandler(this.button3_Click); | |
this.button3.MouseEnter += new EventHandler(this.button3_MouseEnter); | |
this.button3.MouseLeave += new EventHandler(this.button3_MouseLeave); | |
this.button5.BackColor = System.Drawing.Color.Transparent; | |
this.button5.Cursor = Cursors.Hand; | |
this.button5.FlatAppearance.BorderSize = 0; | |
this.button5.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; | |
this.button5.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; | |
this.button5.FlatStyle = FlatStyle.Flat; | |
this.button5.ForeColor = System.Drawing.Color.Black; | |
this.button5.Location = new Point(0xe4, 0); | |
this.button5.Name = "button5"; | |
this.button5.Size = new Size(0xc3, 0x33); | |
this.button5.TabIndex = 7; | |
this.button5.TabStop = false; | |
this.button5.UseVisualStyleBackColor = false; | |
this.button5.Click += new EventHandler(this.button5_Click); | |
this.Password.BackColor = System.Drawing.Color.Black; | |
this.Password.BorderStyle = BorderStyle.None; | |
this.Password.Font = new Font("Microsoft Sans Serif", 17f, FontStyle.Bold, GraphicsUnit.Pixel, 0xee); | |
this.Password.ForeColor = System.Drawing.Color.FromArgb(0x33, 0x99, 0xff); | |
this.Password.Location = new Point(0xaf, 0x84); | |
this.Password.MaxLength = 20; | |
this.Password.Name = "Password"; | |
this.Password.PasswordChar = '•'; | |
this.Password.Size = new Size(0x10f, 20); | |
this.Password.TabIndex = 2; | |
this.Password.TextAlign = HorizontalAlignment.Center; | |
this.Password.TextChanged += new EventHandler(this.textBox2_TextChanged); | |
this.FaceBook.BackColor = System.Drawing.Color.Transparent; | |
this.FaceBook.BackgroundImage = Resources.FaceInactive; | |
this.FaceBook.BackgroundImageLayout = ImageLayout.Center; | |
this.FaceBook.Cursor = Cursors.Hand; | |
this.FaceBook.FlatAppearance.BorderSize = 0; | |
this.FaceBook.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; | |
this.FaceBook.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; | |
this.FaceBook.FlatStyle = FlatStyle.Flat; | |
this.FaceBook.ForeColor = System.Drawing.Color.Transparent; | |
this.FaceBook.Location = new Point(15, 350); | |
this.FaceBook.Name = "FaceBook"; | |
this.FaceBook.Size = new Size(80, 80); | |
this.FaceBook.TabIndex = 0x11; | |
this.FaceBook.TabStop = false; | |
this.FaceBook.UseVisualStyleBackColor = false; | |
this.FaceBook.Click += new EventHandler(this.FaceBook_Click); | |
this.FaceBook.MouseEnter += new EventHandler(this.FaceBook_MouseEnter); | |
this.FaceBook.MouseLeave += new EventHandler(this.FaceBook_MouseLeave); | |
this.Forum.BackColor = System.Drawing.Color.Transparent; | |
this.Forum.BackgroundImage = Resources.SiteInactive; | |
this.Forum.BackgroundImageLayout = ImageLayout.Center; | |
this.Forum.Cursor = Cursors.Hand; | |
this.Forum.FlatAppearance.BorderSize = 0; | |
this.Forum.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; | |
this.Forum.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; | |
this.Forum.FlatStyle = FlatStyle.Flat; | |
this.Forum.ForeColor = System.Drawing.Color.Transparent; | |
this.Forum.Location = new Point(15, 210); | |
this.Forum.Name = "Forum"; | |
this.Forum.Size = new Size(80, 80); | |
this.Forum.TabIndex = 5; | |
this.Forum.TabStop = false; | |
this.Forum.UseVisualStyleBackColor = false; | |
this.Forum.Click += new EventHandler(this.button7_Click); | |
this.Forum.MouseEnter += new EventHandler(this.Forum_MouseEnter); | |
this.Forum.MouseLeave += new EventHandler(this.Forum_MouseLeave); | |
this.label1.AutoEllipsis = true; | |
this.label1.BackColor = System.Drawing.Color.Transparent; | |
this.label1.ForeColor = System.Drawing.Color.Black; | |
this.label1.Location = new Point(0x4c, 0x1d9); | |
this.label1.Name = "label1"; | |
this.label1.Size = new Size(0x228, 13); | |
this.label1.TabIndex = 4; | |
this.label1.Text = "Statusna linija"; | |
this.label1.TextAlign = ContentAlignment.MiddleLeft; | |
this.label1.MouseMove += new MouseEventHandler(this.label1_MouseMove); | |
this.button6.BackColor = System.Drawing.Color.Transparent; | |
this.button6.BackgroundImage = Resources.Question_Mark; | |
this.button6.BackgroundImageLayout = ImageLayout.Center; | |
this.button6.Cursor = Cursors.Hand; | |
this.button6.FlatAppearance.BorderSize = 0; | |
this.button6.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; | |
this.button6.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; | |
this.button6.FlatStyle = FlatStyle.Flat; | |
this.button6.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0xee); | |
this.button6.ForeColor = System.Drawing.Color.FromArgb(0x33, 0x99, 0xff); | |
this.button6.Location = new Point(0x265, 12); | |
this.button6.Name = "button6"; | |
this.button6.RightToLeft = RightToLeft.No; | |
this.button6.Size = new Size(0x18, 0x17); | |
this.button6.TabIndex = 0x12; | |
this.button6.TabStop = false; | |
this.button6.UseVisualStyleBackColor = false; | |
this.button6.Click += new EventHandler(this.button6_Click); | |
this.button6.MouseEnter += new EventHandler(this.button6_MouseEnter); | |
this.button6.MouseLeave += new EventHandler(this.button6_MouseLeave); | |
this.linkLabel1.BackColor = System.Drawing.Color.Transparent; | |
this.linkLabel1.Font = new Font("Microsoft Sans Serif", 10f, FontStyle.Regular, GraphicsUnit.Point, 0xee); | |
this.linkLabel1.ForeColor = System.Drawing.Color.FromArgb(0x33, 0x99, 0xff); | |
this.linkLabel1.LinkArea = new LinkArea(70, 1); | |
this.linkLabel1.LinkColor = System.Drawing.Color.FromArgb(0x33, 0x99, 0xff); | |
this.linkLabel1.Location = new Point(0x126, 0xe5); | |
this.linkLabel1.Name = "linkLabel1"; | |
this.linkLabel1.Size = new Size(0x4b, 0x13); | |
this.linkLabel1.TabIndex = 11; | |
this.linkLabel1.Text = "100/500"; | |
this.linkLabel1.UseCompatibleTextRendering = true; | |
this.linkLabel1.MouseMove += new MouseEventHandler(this.linkLabel1_MouseMove); | |
this.linkLabel2.BackColor = System.Drawing.Color.Transparent; | |
this.linkLabel2.Font = new Font("Microsoft Sans Serif", 10f, FontStyle.Regular, GraphicsUnit.Point, 0xee); | |
this.linkLabel2.ForeColor = System.Drawing.Color.FromArgb(0x33, 0x99, 0xff); | |
this.linkLabel2.LinkArea = new LinkArea(70, 0); | |
this.linkLabel2.LinkColor = System.Drawing.Color.FromArgb(0x33, 0x99, 0xff); | |
this.linkLabel2.Location = new Point(0xf5, 0x108); | |
this.linkLabel2.Name = "linkLabel2"; | |
this.linkLabel2.Size = new Size(0x3e, 0x11); | |
this.linkLabel2.TabIndex = 12; | |
this.linkLabel2.Text = "65535ms"; | |
this.linkLabel2.UseCompatibleTextRendering = true; | |
this.linkLabel2.MouseMove += new MouseEventHandler(this.linkLabel2_MouseMove); | |
this.linkLabel3.BackColor = System.Drawing.Color.Transparent; | |
this.linkLabel3.Font = new Font("Microsoft Sans Serif", 10f, FontStyle.Regular, GraphicsUnit.Point, 0xee); | |
this.linkLabel3.ForeColor = System.Drawing.Color.FromArgb(0x33, 0x99, 0xff); | |
this.linkLabel3.LinkArea = new LinkArea(70, 1); | |
this.linkLabel3.LinkColor = System.Drawing.Color.FromArgb(0x33, 0x99, 0xff); | |
this.linkLabel3.Location = new Point(0xef, 0x12a); | |
this.linkLabel3.Name = "linkLabel3"; | |
this.linkLabel3.Size = new Size(0xd3, 15); | |
this.linkLabel3.TabIndex = 13; | |
this.linkLabel3.Text = "NooBotVille"; | |
this.linkLabel3.UseCompatibleTextRendering = true; | |
this.linkLabel3.MouseMove += new MouseEventHandler(this.linkLabel3_MouseMove); | |
this.linkLabel4.BackColor = System.Drawing.Color.Transparent; | |
this.linkLabel4.Font = new Font("Microsoft Sans Serif", 10f, FontStyle.Regular, GraphicsUnit.Point, 0xee); | |
this.linkLabel4.ForeColor = System.Drawing.Color.FromArgb(0x33, 0x99, 0xff); | |
this.linkLabel4.LinkArea = new LinkArea(70, 1); | |
this.linkLabel4.LinkColor = System.Drawing.Color.FromArgb(0x33, 0x99, 0xff); | |
this.linkLabel4.Location = new Point(290, 0x14b); | |
this.linkLabel4.Name = "linkLabel4"; | |
this.linkLabel4.Size = new Size(0x4f, 0x12); | |
this.linkLabel4.TabIndex = 14; | |
this.linkLabel4.Text = "0.3z-R4"; | |
this.linkLabel4.UseCompatibleTextRendering = true; | |
this.linkLabel4.MouseMove += new MouseEventHandler(this.linkLabel4_MouseMove); | |
this.linkLabel5.BackColor = System.Drawing.Color.Transparent; | |
this.linkLabel5.Font = new Font("Microsoft Sans Serif", 10f, FontStyle.Regular, GraphicsUnit.Point, 0xee); | |
this.linkLabel5.ForeColor = System.Drawing.Color.FromArgb(0x33, 0x99, 0xff); | |
this.linkLabel5.LinkArea = new LinkArea(70, 1); | |
this.linkLabel5.LinkColor = System.Drawing.Color.FromArgb(0x33, 0x99, 0xff); | |
this.linkLabel5.Location = new Point(0xfe, 0x169); | |
this.linkLabel5.Name = "linkLabel5"; | |
this.linkLabel5.Size = new Size(0xa9, 0x12); | |
this.linkLabel5.TabIndex = 15; | |
this.linkLabel5.Text = "DraGoN FiRe v3.0.1"; | |
this.linkLabel5.UseCompatibleTextRendering = true; | |
this.linkLabel5.MouseMove += new MouseEventHandler(this.linkLabel5_MouseMove); | |
this.button4.BackColor = System.Drawing.Color.Transparent; | |
this.button4.BackgroundImageLayout = ImageLayout.Stretch; | |
this.button4.Cursor = Cursors.Hand; | |
this.button4.FlatAppearance.BorderSize = 0; | |
this.button4.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; | |
this.button4.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; | |
this.button4.FlatStyle = FlatStyle.Flat; | |
this.button4.ForeColor = System.Drawing.Color.Black; | |
this.button4.Location = new Point(0x1f3, 0xde); | |
this.button4.Name = "button4"; | |
this.button4.Size = new Size(0x18, 0x18); | |
this.button4.TabIndex = 0x10; | |
this.button4.TabStop = false; | |
this.button4.UseVisualStyleBackColor = false; | |
this.button4.Click += new EventHandler(this.button4_Click); | |
this.button8.BackColor = System.Drawing.Color.Transparent; | |
this.button8.Cursor = Cursors.Hand; | |
this.button8.FlatAppearance.BorderSize = 0; | |
this.button8.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; | |
this.button8.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; | |
this.button8.FlatStyle = FlatStyle.Flat; | |
this.button8.ForeColor = System.Drawing.Color.Transparent; | |
this.button8.Location = new Point(0x12, 3); | |
this.button8.Name = "button8"; | |
this.button8.Size = new Size(0xc2, 0x33); | |
this.button8.TabIndex = 12; | |
this.button8.TabStop = false; | |
this.button8.UseVisualStyleBackColor = false; | |
this.button8.Click += new EventHandler(this.button8_Click); | |
this.KeyBindBox3.Location = new Point(0x27, 170); | |
this.KeyBindBox3.Name = "KeyBindBox3"; | |
this.KeyBindBox3.Size = new Size(0x37, 20); | |
this.KeyBindBox3.TabIndex = 13; | |
this.KeyBindBox3.KeyDown += new KeyEventHandler(this.KeyBinerInputKeyDown); | |
this.KeyBindBox3.KeyUp += new KeyEventHandler(this.KeyBinerInputKeyUp); | |
this.KeyBindBox7.Location = new Point(0x27, 0x112); | |
this.KeyBindBox7.Name = "KeyBindBox7"; | |
this.KeyBindBox7.Size = new Size(0x37, 20); | |
this.KeyBindBox7.TabIndex = 14; | |
this.KeyBindBox7.KeyDown += new KeyEventHandler(this.KeyBinerInputKeyDown); | |
this.KeyBindBox7.KeyUp += new KeyEventHandler(this.KeyBinerInputKeyUp); | |
this.KeyBindBox5.Location = new Point(0x27, 0xde); | |
this.KeyBindBox5.Name = "KeyBindBox5"; | |
this.KeyBindBox5.Size = new Size(0x37, 20); | |
this.KeyBindBox5.TabIndex = 15; | |
this.KeyBindBox5.KeyDown += new KeyEventHandler(this.KeyBinerInputKeyDown); | |
this.KeyBindBox5.KeyUp += new KeyEventHandler(this.KeyBinerInputKeyUp); | |
this.KeyBindBox4.Location = new Point(0x27, 0xc4); | |
this.KeyBindBox4.Name = "KeyBindBox4"; | |
this.KeyBindBox4.Size = new Size(0x37, 20); | |
this.KeyBindBox4.TabIndex = 0x10; | |
this.KeyBindBox4.KeyDown += new KeyEventHandler(this.KeyBinerInputKeyDown); | |
this.KeyBindBox4.KeyUp += new KeyEventHandler(this.KeyBinerInputKeyUp); | |
this.KeyBindBox10.Location = new Point(0x27, 0x160); | |
this.KeyBindBox10.Name = "KeyBindBox10"; | |
this.KeyBindBox10.Size = new Size(0x37, 20); | |
this.KeyBindBox10.TabIndex = 0x11; | |
this.KeyBindBox10.KeyDown += new KeyEventHandler(this.KeyBinerInputKeyDown); | |
this.KeyBindBox10.KeyUp += new KeyEventHandler(this.KeyBinerInputKeyUp); | |
this.KeyBindBox9.Location = new Point(0x27, 0x146); | |
this.KeyBindBox9.Name = "KeyBindBox9"; | |
this.KeyBindBox9.Size = new Size(0x37, 20); | |
this.KeyBindBox9.TabIndex = 0x12; | |
this.KeyBindBox9.KeyDown += new KeyEventHandler(this.KeyBinerInputKeyDown); | |
this.KeyBindBox9.KeyUp += new KeyEventHandler(this.KeyBinerInputKeyUp); | |
this.KeyBindBox8.Location = new Point(0x27, 300); | |
this.KeyBindBox8.Name = "KeyBindBox8"; | |
this.KeyBindBox8.Size = new Size(0x37, 20); | |
this.KeyBindBox8.TabIndex = 0x13; | |
this.KeyBindBox8.KeyDown += new KeyEventHandler(this.KeyBinerInputKeyDown); | |
this.KeyBindBox8.KeyUp += new KeyEventHandler(this.KeyBinerInputKeyUp); | |
this.KeyBindBox11.Location = new Point(0x27, 0x17a); | |
this.KeyBindBox11.Name = "KeyBindBox11"; | |
this.KeyBindBox11.Size = new Size(0x37, 20); | |
this.KeyBindBox11.TabIndex = 20; | |
this.KeyBindBox11.KeyDown += new KeyEventHandler(this.KeyBinerInputKeyDown); | |
this.KeyBindBox11.KeyUp += new KeyEventHandler(this.KeyBinerInputKeyUp); | |
this.KeyBindBox12.Location = new Point(0x27, 0x194); | |
this.KeyBindBox12.Name = "KeyBindBox12"; | |
this.KeyBindBox12.Size = new Size(0x37, 20); | |
this.KeyBindBox12.TabIndex = 0x15; | |
this.KeyBindBox12.KeyDown += new KeyEventHandler(this.KeyBinerInputKeyDown); | |
this.KeyBindBox12.KeyUp += new KeyEventHandler(this.KeyBinerInputKeyUp); | |
this.KeyBindBox13.Location = new Point(0x27, 430); | |
this.KeyBindBox13.Name = "KeyBindBox13"; | |
this.KeyBindBox13.Size = new Size(0x37, 20); | |
this.KeyBindBox13.TabIndex = 0x16; | |
this.KeyBindBox13.KeyDown += new KeyEventHandler(this.KeyBinerInputKeyDown); | |
this.KeyBindBox13.KeyUp += new KeyEventHandler(this.KeyBinerInputKeyUp); | |
this.KeyBindBox6.Location = new Point(0x27, 0xf8); | |
this.KeyBindBox6.Name = "KeyBindBox6"; | |
this.KeyBindBox6.Size = new Size(0x37, 20); | |
this.KeyBindBox6.TabIndex = 0x18; | |
this.KeyBindBox6.KeyDown += new KeyEventHandler(this.KeyBinerInputKeyDown); | |
this.KeyBindBox6.KeyUp += new KeyEventHandler(this.KeyBinerInputKeyUp); | |
this.KeyBinderPanel.BackgroundImage = Resources.KeyBinder_BackGround; | |
this.KeyBinderPanel.BackgroundImageLayout = ImageLayout.Stretch; | |
this.KeyBinderPanel.Controls.Add(this.button7); | |
this.KeyBinderPanel.Controls.Add(this.linkLabel14); | |
this.KeyBinderPanel.Controls.Add(this.linkLabel13); | |
this.KeyBinderPanel.Controls.Add(this.linkLabel12); | |
this.KeyBinderPanel.Controls.Add(this.linkLabel11); | |
this.KeyBinderPanel.Controls.Add(this.linkLabel10); | |
this.KeyBinderPanel.Controls.Add(this.linkLabel8); | |
this.KeyBinderPanel.Controls.Add(this.DisableKB); | |
this.KeyBinderPanel.Controls.Add(this.SimpleKB); | |
this.KeyBinderPanel.Controls.Add(this.linkLabel7); | |
this.KeyBinderPanel.Controls.Add(this.linkLabel6); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindInput19); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindInput18); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindInput24); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindInput23); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindInput22); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindInput21); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindInput20); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindInput14); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindInput15); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindInput16); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindInput17); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindInput26); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindInput25); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindBox23); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindBox24); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindBox25); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindBox26); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindBox20); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindBox21); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindBox22); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindBox14); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindBox15); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindBox16); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindBox17); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindBox18); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindBox19); | |
this.KeyBinderPanel.Controls.Add(this.KeyBinderCB15); | |
this.KeyBinderPanel.Controls.Add(this.KeyBinderCB14); | |
this.KeyBinderPanel.Controls.Add(this.KeyBinderCB17); | |
this.KeyBinderPanel.Controls.Add(this.KeyBinderCB16); | |
this.KeyBinderPanel.Controls.Add(this.KeyBinderCB20); | |
this.KeyBinderPanel.Controls.Add(this.KeyBinderCB19); | |
this.KeyBinderPanel.Controls.Add(this.KeyBinderCB18); | |
this.KeyBinderPanel.Controls.Add(this.KeyBinderCB26); | |
this.KeyBinderPanel.Controls.Add(this.KeyBinderCB25); | |
this.KeyBinderPanel.Controls.Add(this.KeyBinderCB24); | |
this.KeyBinderPanel.Controls.Add(this.KeyBinderCB23); | |
this.KeyBinderPanel.Controls.Add(this.KeyBinderCB22); | |
this.KeyBinderPanel.Controls.Add(this.KeyBinderCB21); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindInput2); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindInput1); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindInput4); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindInput5); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindInput3); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindInput6); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindInput7); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindInput8); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindInput9); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindInput10); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindInput11); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindInput12); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindInput13); | |
this.KeyBinderPanel.Controls.Add(this.KeyBinderCB2); | |
this.KeyBinderPanel.Controls.Add(this.KeyBinderCB1); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindBox2); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindBox1); | |
this.KeyBinderPanel.Controls.Add(this.KeyBinderCB4); | |
this.KeyBinderPanel.Controls.Add(this.KeyBinderCB3); | |
this.KeyBinderPanel.Controls.Add(this.KeyBinderCB9); | |
this.KeyBinderPanel.Controls.Add(this.KeyBinderCB8); | |
this.KeyBinderPanel.Controls.Add(this.KeyBinderCB7); | |
this.KeyBinderPanel.Controls.Add(this.KeyBinderCB6); | |
this.KeyBinderPanel.Controls.Add(this.KeyBinderCB5); | |
this.KeyBinderPanel.Controls.Add(this.KeyBinderCB10); | |
this.KeyBinderPanel.Controls.Add(this.KeyBinderCB12); | |
this.KeyBinderPanel.Controls.Add(this.KeyBinderCB11); | |
this.KeyBinderPanel.Controls.Add(this.KeyBinderCB13); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindBox6); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindBox13); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindBox12); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindBox11); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindBox8); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindBox9); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindBox10); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindBox4); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindBox5); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindBox7); | |
this.KeyBinderPanel.Controls.Add(this.KeyBindBox3); | |
this.KeyBinderPanel.Controls.Add(this.button8); | |
this.KeyBinderPanel.Dock = DockStyle.Fill; | |
this.KeyBinderPanel.Location = new Point(0, 0); | |
this.KeyBinderPanel.Name = "KeyBinderPanel"; | |
this.KeyBinderPanel.Size = new Size(700, 500); | |
this.KeyBinderPanel.TabIndex = 7; | |
this.KeyBinderPanel.Visible = false; | |
this.KeyBinderPanel.MouseMove += new MouseEventHandler(this.KeyBinderPanel_MouseMove); | |
this.button7.BackColor = System.Drawing.Color.Transparent; | |
this.button7.BackgroundImage = Resources.Question_Mark; | |
this.button7.BackgroundImageLayout = ImageLayout.Center; | |
this.button7.Cursor = Cursors.Hand; | |
this.button7.FlatAppearance.BorderSize = 0; | |
this.button7.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; | |
this.button7.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; | |
this.button7.FlatStyle = FlatStyle.Flat; | |
this.button7.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0xee); | |
this.button7.ForeColor = System.Drawing.Color.FromArgb(0x33, 0x99, 0xff); | |
this.button7.Location = new Point(0x265, 12); | |
this.button7.Name = "button7"; | |
this.button7.RightToLeft = RightToLeft.No; | |
this.button7.Size = new Size(0x18, 0x17); | |
this.button7.TabIndex = 0x99; | |
this.button7.TabStop = false; | |
this.button7.UseVisualStyleBackColor = false; | |
this.button7.Click += new EventHandler(this.button7_Click_1); | |
this.button7.MouseEnter += new EventHandler(this.button7_MouseEnter_1); | |
this.button7.MouseLeave += new EventHandler(this.button7_MouseLeave_1); | |
this.linkLabel14.AutoSize = true; | |
this.linkLabel14.BackColor = System.Drawing.Color.Transparent; | |
this.linkLabel14.Font = new Font("Comic Sans MS", 7f, FontStyle.Bold); | |
this.linkLabel14.ForeColor = System.Drawing.Color.FromArgb(0x33, 0x99, 0xff); | |
this.linkLabel14.LinkArea = new LinkArea(50, 0); | |
this.linkLabel14.LinkBehavior = LinkBehavior.NeverUnderline; | |
this.linkLabel14.Location = new Point(0x9e, 100); | |
this.linkLabel14.Name = "linkLabel14"; | |
this.linkLabel14.Size = new Size(110, 0x12); | |
this.linkLabel14.TabIndex = 0x98; | |
this.linkLabel14.Text = "Input Text / Command"; | |
this.linkLabel14.UseCompatibleTextRendering = true; | |
this.linkLabel14.MouseMove += new MouseEventHandler(this.linkLabel14_MouseMove); | |
this.linkLabel13.AutoSize = true; | |
this.linkLabel13.BackColor = System.Drawing.Color.Transparent; | |
this.linkLabel13.Font = new Font("Comic Sans MS", 7f, FontStyle.Bold); | |
this.linkLabel13.ForeColor = System.Drawing.Color.FromArgb(0x33, 0x99, 0xff); | |
this.linkLabel13.LinkArea = new LinkArea(50, 0); | |
this.linkLabel13.LinkBehavior = LinkBehavior.NeverUnderline; | |
this.linkLabel13.Location = new Point(0x1fc, 100); | |
this.linkLabel13.Name = "linkLabel13"; | |
this.linkLabel13.Size = new Size(110, 0x12); | |
this.linkLabel13.TabIndex = 0x97; | |
this.linkLabel13.Text = "Input Text / Command"; | |
this.linkLabel13.UseCompatibleTextRendering = true; | |
this.linkLabel13.MouseMove += new MouseEventHandler(this.linkLabel13_MouseMove); | |
this.linkLabel12.AutoSize = true; | |
this.linkLabel12.BackColor = System.Drawing.Color.Transparent; | |
this.linkLabel12.Font = new Font("Comic Sans MS", 7f, FontStyle.Bold); | |
this.linkLabel12.ForeColor = System.Drawing.Color.FromArgb(0x33, 0x99, 0xff); | |
this.linkLabel12.LinkArea = new LinkArea(50, 0); | |
this.linkLabel12.LinkBehavior = LinkBehavior.NeverUnderline; | |
this.linkLabel12.Location = new Point(0x196, 100); | |
this.linkLabel12.Name = "linkLabel12"; | |
this.linkLabel12.Size = new Size(20, 0x12); | |
this.linkLabel12.TabIndex = 150; | |
this.linkLabel12.Text = "Key"; | |
this.linkLabel12.UseCompatibleTextRendering = true; | |
this.linkLabel12.MouseMove += new MouseEventHandler(this.linkLabel12_MouseMove); | |
this.linkLabel11.AutoSize = true; | |
this.linkLabel11.BackColor = System.Drawing.Color.Transparent; | |
this.linkLabel11.Font = new Font("Comic Sans MS", 7f, FontStyle.Bold); | |
this.linkLabel11.ForeColor = System.Drawing.Color.FromArgb(0x33, 0x99, 0xff); | |
this.linkLabel11.LinkArea = new LinkArea(50, 0); | |
this.linkLabel11.LinkBehavior = LinkBehavior.NeverUnderline; | |
this.linkLabel11.Location = new Point(0x38, 100); | |
this.linkLabel11.Name = "linkLabel11"; | |
this.linkLabel11.Size = new Size(20, 0x12); | |
this.linkLabel11.TabIndex = 0x95; | |
this.linkLabel11.Text = "Key"; | |
this.linkLabel11.UseCompatibleTextRendering = true; | |
this.linkLabel11.MouseMove += new MouseEventHandler(this.linkLabel11_MouseMove); | |
this.linkLabel10.AutoSize = true; | |
this.linkLabel10.BackColor = System.Drawing.Color.Transparent; | |
this.linkLabel10.Font = new Font("Comic Sans MS", 7f, FontStyle.Bold); | |
this.linkLabel10.ForeColor = System.Drawing.Color.FromArgb(0x33, 0x99, 0xff); | |
this.linkLabel10.LinkArea = new LinkArea(50, 0); | |
this.linkLabel10.LinkBehavior = LinkBehavior.NeverUnderline; | |
this.linkLabel10.Location = new Point(0x166, 100); | |
this.linkLabel10.Name = "linkLabel10"; | |
this.linkLabel10.Size = new Size(0x21, 0x12); | |
this.linkLabel10.TabIndex = 0x94; | |
this.linkLabel10.Text = "Active"; | |
this.linkLabel10.UseCompatibleTextRendering = true; | |
this.linkLabel10.MouseMove += new MouseEventHandler(this.linkLabel10_MouseMove); | |
this.linkLabel8.AutoSize = true; | |
this.linkLabel8.BackColor = System.Drawing.Color.Transparent; | |
this.linkLabel8.Font = new Font("Comic Sans MS", 7f, FontStyle.Bold); | |
this.linkLabel8.ForeColor = System.Drawing.Color.FromArgb(0x33, 0x99, 0xff); | |
this.linkLabel8.LinkArea = new LinkArea(50, 0); | |
this.linkLabel8.LinkBehavior = LinkBehavior.NeverUnderline; | |
this.linkLabel8.Location = new Point(6, 100); | |
this.linkLabel8.Name = "linkLabel8"; | |
this.linkLabel8.Size = new Size(0x21, 0x12); | |
this.linkLabel8.TabIndex = 0x93; | |
this.linkLabel8.Text = "Active"; | |
this.linkLabel8.UseCompatibleTextRendering = true; | |
this.linkLabel8.MouseMove += new MouseEventHandler(this.linkLabel8_MouseMove); | |
this.DisableKB.AutoSize = true; | |
this.DisableKB.BackColor = System.Drawing.Color.Transparent; | |
this.DisableKB.Font = new Font("Comic Sans MS", 7f, FontStyle.Bold); | |
this.DisableKB.ForeColor = System.Drawing.Color.FromArgb(0xff, 0, 0x22); | |
this.DisableKB.Location = new Point(0x87, 0x4a); | |
this.DisableKB.Name = "DisableKB"; | |
this.DisableKB.Size = new Size(0x73, 0x12); | |
this.DisableKB.TabIndex = 0x92; | |
this.DisableKB.Text = "Disable KeyBinder"; | |
this.DisableKB.UseVisualStyleBackColor = false; | |
this.SimpleKB.AutoSize = true; | |
this.SimpleKB.BackColor = System.Drawing.Color.Transparent; | |
this.SimpleKB.Checked = true; | |
this.SimpleKB.CheckState = CheckState.Checked; | |
this.SimpleKB.Font = new Font("Comic Sans MS", 7f, FontStyle.Bold); | |
this.SimpleKB.ForeColor = System.Drawing.Color.FromArgb(0x33, 0x99, 0xff); | |
this.SimpleKB.Location = new Point(0x12, 0x4a); | |
this.SimpleKB.Name = "SimpleKB"; | |
this.SimpleKB.Size = new Size(0x6f, 0x12); | |
this.SimpleKB.TabIndex = 0x91; | |
this.SimpleKB.Text = "Simple KeyBinder"; | |
this.SimpleKB.UseVisualStyleBackColor = false; | |
this.linkLabel7.BackColor = System.Drawing.Color.Transparent; | |
this.linkLabel7.Font = new Font("Comic Sans MS", 7f, FontStyle.Bold, GraphicsUnit.Point, 0xee); | |
this.linkLabel7.ForeColor = System.Drawing.Color.FromArgb(0x33, 0x99, 0xff); | |
this.linkLabel7.LinkArea = new LinkArea(0, 15); | |
this.linkLabel7.LinkBehavior = LinkBehavior.NeverUnderline; | |
this.linkLabel7.LinkColor = System.Drawing.Color.FromArgb(0x33, 0x99, 0xff); | |
this.linkLabel7.Location = new Point(3, 0x1d9); | |
this.linkLabel7.Name = "linkLabel7"; | |
this.linkLabel7.Size = new Size(700, 11); | |
this.linkLabel7.TabIndex = 0x90; | |
this.linkLabel7.TabStop = true; | |
this.linkLabel7.Text = "www.NooBot.info"; | |
this.linkLabel7.TextAlign = ContentAlignment.MiddleCenter; | |
this.linkLabel7.LinkClicked += new LinkLabelLinkClickedEventHandler(this.linkLabel7_LinkClicked); | |
this.linkLabel6.BackColor = System.Drawing.Color.Transparent; | |
this.linkLabel6.Font = new Font("Comic Sans MS", 7f, FontStyle.Bold, GraphicsUnit.Point, 0xee); | |
this.linkLabel6.ForeColor = System.Drawing.Color.FromArgb(0x33, 0x99, 0xff); | |
this.linkLabel6.LinkArea = new LinkArea(70, 1); | |
this.linkLabel6.LinkColor = System.Drawing.Color.FromArgb(0x33, 0x99, 0xff); | |
this.linkLabel6.Location = new Point(0, 0x1e5); | |
this.linkLabel6.Name = "linkLabel6"; | |
this.linkLabel6.Size = new Size(700, 11); | |
this.linkLabel6.TabIndex = 0x8f; | |
this.linkLabel6.Text = "NooBot Community \x00a9 2009 - 2014 All rights reserved"; | |
this.linkLabel6.TextAlign = ContentAlignment.MiddleCenter; | |
this.linkLabel6.UseCompatibleTextRendering = true; | |
this.linkLabel6.MouseMove += new MouseEventHandler(this.linkLabel6_MouseMove); | |
this.KeyBindInput19.Location = new Point(0x1c1, 0xf8); | |
this.KeyBindInput19.Name = "KeyBindInput19"; | |
this.KeyBindInput19.Size = new Size(0xe7, 20); | |
this.KeyBindInput19.TabIndex = 0x8e; | |
this.KeyBindInput18.Location = new Point(0x1c1, 0xde); | |
this.KeyBindInput18.Name = "KeyBindInput18"; | |
this.KeyBindInput18.Size = new Size(0xe7, 20); | |
this.KeyBindInput18.TabIndex = 0x8d; | |
this.KeyBindInput24.Location = new Point(0x1c1, 0x17a); | |
this.KeyBindInput24.Name = "KeyBindInput24"; | |
this.KeyBindInput24.Size = new Size(0xe7, 20); | |
this.KeyBindInput24.TabIndex = 140; | |
this.KeyBindInput23.Location = new Point(0x1c1, 0x160); | |
this.KeyBindInput23.Name = "KeyBindInput23"; | |
this.KeyBindInput23.Size = new Size(0xe7, 20); | |
this.KeyBindInput23.TabIndex = 0x8b; | |
this.KeyBindInput22.Location = new Point(0x1c1, 0x146); | |
this.KeyBindInput22.Name = "KeyBindInput22"; | |
this.KeyBindInput22.Size = new Size(0xe7, 20); | |
this.KeyBindInput22.TabIndex = 0x8a; | |
this.KeyBindInput21.Location = new Point(0x1c1, 300); | |
this.KeyBindInput21.Name = "KeyBindInput21"; | |
this.KeyBindInput21.Size = new Size(0xe7, 20); | |
this.KeyBindInput21.TabIndex = 0x89; | |
this.KeyBindInput20.Location = new Point(0x1c1, 0x112); | |
this.KeyBindInput20.Name = "KeyBindInput20"; | |
this.KeyBindInput20.Size = new Size(0xe7, 20); | |
this.KeyBindInput20.TabIndex = 0x88; | |
this.KeyBindInput14.Location = new Point(0x1c1, 0x76); | |
this.KeyBindInput14.Name = "KeyBindInput14"; | |
this.KeyBindInput14.Size = new Size(0xe7, 20); | |
this.KeyBindInput14.TabIndex = 0x87; | |
this.KeyBindInput15.Location = new Point(0x1c1, 0x90); | |
this.KeyBindInput15.Name = "KeyBindInput15"; | |
this.KeyBindInput15.Size = new Size(0xe7, 20); | |
this.KeyBindInput15.TabIndex = 0x86; | |
this.KeyBindInput16.Location = new Point(0x1c1, 170); | |
this.KeyBindInput16.Name = "KeyBindInput16"; | |
this.KeyBindInput16.Size = new Size(0xe7, 20); | |
this.KeyBindInput16.TabIndex = 0x85; | |
this.KeyBindInput17.Location = new Point(0x1c1, 0xc4); | |
this.KeyBindInput17.Name = "KeyBindInput17"; | |
this.KeyBindInput17.Size = new Size(0xe7, 20); | |
this.KeyBindInput17.TabIndex = 0x84; | |
this.KeyBindInput26.Location = new Point(0x1c1, 430); | |
this.KeyBindInput26.Name = "KeyBindInput26"; | |
this.KeyBindInput26.Size = new Size(0xe7, 20); | |
this.KeyBindInput26.TabIndex = 130; | |
this.KeyBindInput25.Location = new Point(0x1c1, 0x194); | |
this.KeyBindInput25.Name = "KeyBindInput25"; | |
this.KeyBindInput25.Size = new Size(0xe7, 20); | |
this.KeyBindInput25.TabIndex = 0x81; | |
this.KeyBindBox23.Location = new Point(0x184, 0x160); | |
this.KeyBindBox23.Name = "KeyBindBox23"; | |
this.KeyBindBox23.Size = new Size(0x37, 20); | |
this.KeyBindBox23.TabIndex = 0x80; | |
this.KeyBindBox23.KeyDown += new KeyEventHandler(this.KeyBinerInputKeyDown); | |
this.KeyBindBox23.KeyUp += new KeyEventHandler(this.KeyBinerInputKeyUp); | |
this.KeyBindBox24.Location = new Point(0x184, 0x17a); | |
this.KeyBindBox24.Name = "KeyBindBox24"; | |
this.KeyBindBox24.Size = new Size(0x37, 20); | |
this.KeyBindBox24.TabIndex = 0x7f; | |
this.KeyBindBox24.KeyDown += new KeyEventHandler(this.KeyBinerInputKeyDown); | |
this.KeyBindBox24.KeyUp += new KeyEventHandler(this.KeyBinerInputKeyUp); | |
this.KeyBindBox25.Location = new Point(0x184, 0x194); | |
this.KeyBindBox25.Name = "KeyBindBox25"; | |
this.KeyBindBox25.Size = new Size(0x37, 20); | |
this.KeyBindBox25.TabIndex = 0x7e; | |
this.KeyBindBox25.KeyDown += new KeyEventHandler(this.KeyBinerInputKeyDown); | |
this.KeyBindBox25.KeyUp += new KeyEventHandler(this.KeyBinerInputKeyUp); | |
this.KeyBindBox26.Location = new Point(0x184, 430); | |
this.KeyBindBox26.Name = "KeyBindBox26"; | |
this.KeyBindBox26.Size = new Size(0x37, 20); | |
this.KeyBindBox26.TabIndex = 0x7d; | |
this.KeyBindBox26.KeyDown += new KeyEventHandler(this.KeyBinerInputKeyDown); | |
this.KeyBindBox26.KeyUp += new KeyEventHandler(this.KeyBinerInputKeyUp); | |
this.KeyBindBox20.Location = new Point(0x184, 0x112); | |
this.KeyBindBox20.Name = "KeyBindBox20"; | |
this.KeyBindBox20.Size = new Size(0x37, 20); | |
this.KeyBindBox20.TabIndex = 0x7a; | |
this.KeyBindBox20.KeyDown += new KeyEventHandler(this.KeyBinerInputKeyDown); | |
this.KeyBindBox20.KeyUp += new KeyEventHandler(this.KeyBinerInputKeyUp); | |
this.KeyBindBox21.Location = new Point(0x184, 300); | |
this.KeyBindBox21.Name = "KeyBindBox21"; | |
this.KeyBindBox21.Size = new Size(0x37, 20); | |
this.KeyBindBox21.TabIndex = 0x79; | |
this.KeyBindBox21.KeyDown += new KeyEventHandler(this.KeyBinerInputKeyDown); | |
this.KeyBindBox21.KeyUp += new KeyEventHandler(this.KeyBinerInputKeyUp); | |
this.KeyBindBox22.Location = new Point(0x184, 0x146); | |
this.KeyBindBox22.Name = "KeyBindBox22"; | |
this.KeyBindBox22.Size = new Size(0x37, 20); | |
this.KeyBindBox22.TabIndex = 120; | |
this.KeyBindBox22.KeyDown += new KeyEventHandler(this.KeyBinerInputKeyDown); | |
this.KeyBindBox22.KeyUp += new KeyEventHandler(this.KeyBinerInputKeyUp); | |
this.KeyBindBox14.Location = new Point(0x184, 0x76); | |
this.KeyBindBox14.Name = "KeyBindBox14"; | |
this.KeyBindBox14.Size = new Size(0x37, 20); | |
this.KeyBindBox14.TabIndex = 0x77; | |
this.KeyBindBox14.KeyDown += new KeyEventHandler(this.KeyBinerInputKeyDown); | |
this.KeyBindBox14.KeyUp += new KeyEventHandler(this.KeyBinerInputKeyUp); | |
this.KeyBindBox15.Location = new Point(0x184, 0x90); | |
this.KeyBindBox15.Name = "KeyBindBox15"; | |
this.KeyBindBox15.Size = new Size(0x37, 20); | |
this.KeyBindBox15.TabIndex = 0x76; | |
this.KeyBindBox15.KeyDown += new KeyEventHandler(this.KeyBinerInputKeyDown); | |
this.KeyBindBox15.KeyUp += new KeyEventHandler(this.KeyBinerInputKeyUp); | |
this.KeyBindBox16.Location = new Point(0x184, 170); | |
this.KeyBindBox16.Name = "KeyBindBox16"; | |
this.KeyBindBox16.Size = new Size(0x37, 20); | |
this.KeyBindBox16.TabIndex = 0x75; | |
this.KeyBindBox16.KeyDown += new KeyEventHandler(this.KeyBinerInputKeyDown); | |
this.KeyBindBox16.KeyUp += new KeyEventHandler(this.KeyBinerInputKeyUp); | |
this.KeyBindBox17.Location = new Point(0x184, 0xc4); | |
this.KeyBindBox17.Name = "KeyBindBox17"; | |
this.KeyBindBox17.Size = new Size(0x37, 20); | |
this.KeyBindBox17.TabIndex = 0x74; | |
this.KeyBindBox17.KeyDown += new KeyEventHandler(this.KeyBinerInputKeyDown); | |
this.KeyBindBox17.KeyUp += new KeyEventHandler(this.KeyBinerInputKeyUp); | |
this.KeyBindBox18.Location = new Point(0x184, 0xde); | |
this.KeyBindBox18.Name = "KeyBindBox18"; | |
this.KeyBindBox18.Size = new Size(0x37, 20); | |
this.KeyBindBox18.TabIndex = 0x73; | |
this.KeyBindBox18.KeyDown += new KeyEventHandler(this.KeyBinerInputKeyDown); | |
this.KeyBindBox18.KeyUp += new KeyEventHandler(this.KeyBinerInputKeyUp); | |
this.KeyBindBox19.Location = new Point(0x184, 0xf8); | |
this.KeyBindBox19.Name = "KeyBindBox19"; | |
this.KeyBindBox19.Size = new Size(0x37, 20); | |
this.KeyBindBox19.TabIndex = 0x72; | |
this.KeyBindBox19.KeyDown += new KeyEventHandler(this.KeyBinerInputKeyDown); | |
this.KeyBindBox19.KeyUp += new KeyEventHandler(this.KeyBinerInputKeyUp); | |
this.KeyBinderCB15.AutoSize = true; | |
this.KeyBinderCB15.BackColor = System.Drawing.Color.Transparent; | |
this.KeyBinderCB15.Location = new Point(0x16f, 0x93); | |
this.KeyBinderCB15.Name = "KeyBinderCB15"; | |
this.KeyBinderCB15.Size = new Size(15, 14); | |
this.KeyBinderCB15.TabIndex = 0x71; | |
this.KeyBinderCB15.UseVisualStyleBackColor = false; | |
this.KeyBinderCB14.AutoSize = true; | |
this.KeyBinderCB14.BackColor = System.Drawing.Color.Transparent; | |
this.KeyBinderCB14.Location = new Point(0x16f, 0x79); | |
this.KeyBinderCB14.Name = "KeyBinderCB14"; | |
this.KeyBinderCB14.Size = new Size(15, 14); | |
this.KeyBinderCB14.TabIndex = 0x70; | |
this.KeyBinderCB14.UseVisualStyleBackColor = false; | |
this.KeyBinderCB17.AutoSize = true; | |
this.KeyBinderCB17.BackColor = System.Drawing.Color.Transparent; | |
this.KeyBinderCB17.Location = new Point(0x16f, 0xc7); | |
this.KeyBinderCB17.Name = "KeyBinderCB17"; | |
this.KeyBinderCB17.Size = new Size(15, 14); | |
this.KeyBinderCB17.TabIndex = 0x6f; | |
this.KeyBinderCB17.UseVisualStyleBackColor = false; | |
this.KeyBinderCB16.AutoSize = true; | |
this.KeyBinderCB16.BackColor = System.Drawing.Color.Transparent; | |
this.KeyBinderCB16.Location = new Point(0x16f, 0xad); | |
this.KeyBinderCB16.Name = "KeyBinderCB16"; | |
this.KeyBinderCB16.Size = new Size(15, 14); | |
this.KeyBinderCB16.TabIndex = 110; | |
this.KeyBinderCB16.UseVisualStyleBackColor = false; | |
this.KeyBinderCB20.AutoSize = true; | |
this.KeyBinderCB20.BackColor = System.Drawing.Color.Transparent; | |
this.KeyBinderCB20.Location = new Point(0x16f, 0x115); | |
this.KeyBinderCB20.Name = "KeyBinderCB20"; | |
this.KeyBinderCB20.Size = new Size(15, 14); | |
this.KeyBinderCB20.TabIndex = 0x6d; | |
this.KeyBinderCB20.UseVisualStyleBackColor = false; | |
this.KeyBinderCB19.AutoSize = true; | |
this.KeyBinderCB19.BackColor = System.Drawing.Color.Transparent; | |
this.KeyBinderCB19.Location = new Point(0x16f, 0xfb); | |
this.KeyBinderCB19.Name = "KeyBinderCB19"; | |
this.KeyBinderCB19.Size = new Size(15, 14); | |
this.KeyBinderCB19.TabIndex = 0x6c; | |
this.KeyBinderCB19.UseVisualStyleBackColor = false; | |
this.KeyBinderCB18.AutoSize = true; | |
this.KeyBinderCB18.BackColor = System.Drawing.Color.Transparent; | |
this.KeyBinderCB18.Location = new Point(0x16f, 0xe1); | |
this.KeyBinderCB18.Name = "KeyBinderCB18"; | |
this.KeyBinderCB18.Size = new Size(15, 14); | |
this.KeyBinderCB18.TabIndex = 0x6b; | |
this.KeyBinderCB18.UseVisualStyleBackColor = false; | |
this.KeyBinderCB26.AutoSize = true; | |
this.KeyBinderCB26.BackColor = System.Drawing.Color.Transparent; | |
this.KeyBinderCB26.Location = new Point(0x16f, 0x1b1); | |
this.KeyBinderCB26.Name = "KeyBinderCB26"; | |
this.KeyBinderCB26.Size = new Size(15, 14); | |
this.KeyBinderCB26.TabIndex = 0x6a; | |
this.KeyBinderCB26.UseVisualStyleBackColor = false; | |
this.KeyBinderCB25.AutoSize = true; | |
this.KeyBinderCB25.BackColor = System.Drawing.Color.Transparent; | |
this.KeyBinderCB25.Location = new Point(0x16f, 0x197); | |
this.KeyBinderCB25.Name = "KeyBinderCB25"; | |
this.KeyBinderCB25.Size = new Size(15, 14); | |
this.KeyBinderCB25.TabIndex = 0x69; | |
this.KeyBinderCB25.UseVisualStyleBackColor = false; | |
this.KeyBinderCB24.AutoSize = true; | |
this.KeyBinderCB24.BackColor = System.Drawing.Color.Transparent; | |
this.KeyBinderCB24.Location = new Point(0x16f, 0x17d); | |
this.KeyBinderCB24.Name = "KeyBinderCB24"; | |
this.KeyBinderCB24.Size = new Size(15, 14); | |
this.KeyBinderCB24.TabIndex = 0x68; | |
this.KeyBinderCB24.UseVisualStyleBackColor = false; | |
this.KeyBinderCB23.AutoSize = true; | |
this.KeyBinderCB23.BackColor = System.Drawing.Color.Transparent; | |
this.KeyBinderCB23.Location = new Point(0x16f, 0x163); | |
this.KeyBinderCB23.Name = "KeyBinderCB23"; | |
this.KeyBinderCB23.Size = new Size(15, 14); | |
this.KeyBinderCB23.TabIndex = 0x67; | |
this.KeyBinderCB23.UseVisualStyleBackColor = false; | |
this.KeyBinderCB22.AutoSize = true; | |
this.KeyBinderCB22.BackColor = System.Drawing.Color.Transparent; | |
this.KeyBinderCB22.Location = new Point(0x16f, 0x149); | |
this.KeyBinderCB22.Name = "KeyBinderCB22"; | |
this.KeyBinderCB22.Size = new Size(15, 14); | |
this.KeyBinderCB22.TabIndex = 0x66; | |
this.KeyBinderCB22.UseVisualStyleBackColor = false; | |
this.KeyBinderCB21.AutoSize = true; | |
this.KeyBinderCB21.BackColor = System.Drawing.Color.Transparent; | |
this.KeyBinderCB21.Location = new Point(0x16f, 0x12f); | |
this.KeyBinderCB21.Name = "KeyBinderCB21"; | |
this.KeyBinderCB21.Size = new Size(15, 14); | |
this.KeyBinderCB21.TabIndex = 0x65; | |
this.KeyBinderCB21.UseVisualStyleBackColor = false; | |
this.KeyBindInput2.Location = new Point(100, 0x90); | |
this.KeyBindInput2.Name = "KeyBindInput2"; | |
this.KeyBindInput2.Size = new Size(0xe7, 20); | |
this.KeyBindInput2.TabIndex = 0x63; | |
this.KeyBindInput1.Location = new Point(100, 0x76); | |
this.KeyBindInput1.Name = "KeyBindInput1"; | |
this.KeyBindInput1.Size = new Size(0xe7, 20); | |
this.KeyBindInput1.TabIndex = 0x62; | |
this.KeyBindInput4.Location = new Point(100, 0xc4); | |
this.KeyBindInput4.Name = "KeyBindInput4"; | |
this.KeyBindInput4.Size = new Size(0xe7, 20); | |
this.KeyBindInput4.TabIndex = 0x61; | |
this.KeyBindInput5.Location = new Point(100, 0xde); | |
this.KeyBindInput5.Name = "KeyBindInput5"; | |
this.KeyBindInput5.Size = new Size(0xe7, 20); | |
this.KeyBindInput5.TabIndex = 0x60; | |
this.KeyBindInput3.Location = new Point(100, 170); | |
this.KeyBindInput3.Name = "KeyBindInput3"; | |
this.KeyBindInput3.Size = new Size(0xe7, 20); | |
this.KeyBindInput3.TabIndex = 0x60; | |
this.KeyBindInput6.Location = new Point(100, 0xf8); | |
this.KeyBindInput6.Name = "KeyBindInput6"; | |
this.KeyBindInput6.Size = new Size(0xe7, 20); | |
this.KeyBindInput6.TabIndex = 0x5f; | |
this.KeyBindInput7.Location = new Point(100, 0x112); | |
this.KeyBindInput7.Name = "KeyBindInput7"; | |
this.KeyBindInput7.Size = new Size(0xe7, 20); | |
this.KeyBindInput7.TabIndex = 0x5e; | |
this.KeyBindInput8.Location = new Point(100, 300); | |
this.KeyBindInput8.Name = "KeyBindInput8"; | |
this.KeyBindInput8.Size = new Size(0xe7, 20); | |
this.KeyBindInput8.TabIndex = 0x5d; | |
this.KeyBindInput9.Location = new Point(100, 0x146); | |
this.KeyBindInput9.Name = "KeyBindInput9"; | |
this.KeyBindInput9.Size = new Size(0xe7, 20); | |
this.KeyBindInput9.TabIndex = 0x5c; | |
this.KeyBindInput10.Location = new Point(100, 0x160); | |
this.KeyBindInput10.Name = "KeyBindInput10"; | |
this.KeyBindInput10.Size = new Size(0xe7, 20); | |
this.KeyBindInput10.TabIndex = 0x5b; | |
this.KeyBindInput11.Location = new Point(100, 0x17a); | |
this.KeyBindInput11.Name = "KeyBindInput11"; | |
this.KeyBindInput11.Size = new Size(0xe7, 20); | |
this.KeyBindInput11.TabIndex = 90; | |
this.KeyBindInput12.Location = new Point(100, 0x194); | |
this.KeyBindInput12.Name = "KeyBindInput12"; | |
this.KeyBindInput12.Size = new Size(0xe7, 20); | |
this.KeyBindInput12.TabIndex = 0x59; | |
this.KeyBindInput13.Location = new Point(100, 430); | |
this.KeyBindInput13.Name = "KeyBindInput13"; | |
this.KeyBindInput13.Size = new Size(0xe7, 20); | |
this.KeyBindInput13.TabIndex = 0x58; | |
this.KeyBinderCB2.AutoSize = true; | |
this.KeyBinderCB2.BackColor = System.Drawing.Color.Transparent; | |
this.KeyBinderCB2.Location = new Point(0x12, 0x93); | |
this.KeyBinderCB2.Name = "KeyBinderCB2"; | |
this.KeyBinderCB2.Size = new Size(15, 14); | |
this.KeyBinderCB2.TabIndex = 0x57; | |
this.KeyBinderCB2.UseVisualStyleBackColor = false; | |
this.KeyBinderCB1.AutoSize = true; | |
this.KeyBinderCB1.BackColor = System.Drawing.Color.Transparent; | |
this.KeyBinderCB1.Location = new Point(0x12, 0x79); | |
this.KeyBinderCB1.Name = "KeyBinderCB1"; | |
this.KeyBinderCB1.Size = new Size(15, 14); | |
this.KeyBinderCB1.TabIndex = 0x56; | |
this.KeyBinderCB1.UseVisualStyleBackColor = false; | |
this.KeyBindBox2.Location = new Point(0x27, 0x90); | |
this.KeyBindBox2.Name = "KeyBindBox2"; | |
this.KeyBindBox2.Size = new Size(0x37, 20); | |
this.KeyBindBox2.TabIndex = 0x55; | |
this.KeyBindBox2.KeyDown += new KeyEventHandler(this.KeyBinerInputKeyDown); | |
this.KeyBindBox2.KeyUp += new KeyEventHandler(this.KeyBinerInputKeyUp); | |
this.KeyBindBox1.Location = new Point(0x27, 0x76); | |
this.KeyBindBox1.Name = "KeyBindBox1"; | |
this.KeyBindBox1.Size = new Size(0x37, 20); | |
this.KeyBindBox1.TabIndex = 0x54; | |
this.KeyBindBox1.KeyDown += new KeyEventHandler(this.KeyBinerInputKeyDown); | |
this.KeyBindBox1.KeyUp += new KeyEventHandler(this.KeyBinerInputKeyUp); | |
this.KeyBinderCB4.AutoSize = true; | |
this.KeyBinderCB4.BackColor = System.Drawing.Color.Transparent; | |
this.KeyBinderCB4.Location = new Point(0x12, 0xc7); | |
this.KeyBinderCB4.Name = "KeyBinderCB4"; | |
this.KeyBinderCB4.Size = new Size(15, 14); | |
this.KeyBinderCB4.TabIndex = 0x53; | |
this.KeyBinderCB4.UseVisualStyleBackColor = false; | |
this.KeyBinderCB3.AutoSize = true; | |
this.KeyBinderCB3.BackColor = System.Drawing.Color.Transparent; | |
this.KeyBinderCB3.Location = new Point(0x12, 0xad); | |
this.KeyBinderCB3.Name = "KeyBinderCB3"; | |
this.KeyBinderCB3.Size = new Size(15, 14); | |
this.KeyBinderCB3.TabIndex = 0x52; | |
this.KeyBinderCB3.UseVisualStyleBackColor = false; | |
this.KeyBinderCB9.AutoSize = true; | |
this.KeyBinderCB9.BackColor = System.Drawing.Color.Transparent; | |
this.KeyBinderCB9.Location = new Point(0x12, 0x149); | |
this.KeyBinderCB9.Name = "KeyBinderCB9"; | |
this.KeyBinderCB9.Size = new Size(15, 14); | |
this.KeyBinderCB9.TabIndex = 0x51; | |
this.KeyBinderCB9.UseVisualStyleBackColor = false; | |
this.KeyBinderCB8.AutoSize = true; | |
this.KeyBinderCB8.BackColor = System.Drawing.Color.Transparent; | |
this.KeyBinderCB8.Location = new Point(0x12, 0x12f); | |
this.KeyBinderCB8.Name = "KeyBinderCB8"; | |
this.KeyBinderCB8.Size = new Size(15, 14); | |
this.KeyBinderCB8.TabIndex = 80; | |
this.KeyBinderCB8.UseVisualStyleBackColor = false; | |
this.KeyBinderCB7.AutoSize = true; | |
this.KeyBinderCB7.BackColor = System.Drawing.Color.Transparent; | |
this.KeyBinderCB7.Location = new Point(0x12, 0x115); | |
this.KeyBinderCB7.Name = "KeyBinderCB7"; | |
this.KeyBinderCB7.Size = new Size(15, 14); | |
this.KeyBinderCB7.TabIndex = 0x4f; | |
this.KeyBinderCB7.UseVisualStyleBackColor = false; | |
this.KeyBinderCB6.AutoSize = true; | |
this.KeyBinderCB6.BackColor = System.Drawing.Color.Transparent; | |
this.KeyBinderCB6.Location = new Point(0x12, 0xfb); | |
this.KeyBinderCB6.Name = "KeyBinderCB6"; | |
this.KeyBinderCB6.Size = new Size(15, 14); | |
this.KeyBinderCB6.TabIndex = 0x4e; | |
this.KeyBinderCB6.UseVisualStyleBackColor = false; | |
this.KeyBinderCB5.AutoSize = true; | |
this.KeyBinderCB5.BackColor = System.Drawing.Color.Transparent; | |
this.KeyBinderCB5.Location = new Point(0x12, 0xe1); | |
this.KeyBinderCB5.Name = "KeyBinderCB5"; | |
this.KeyBinderCB5.Size = new Size(15, 14); | |
this.KeyBinderCB5.TabIndex = 0x4d; | |
this.KeyBinderCB5.UseVisualStyleBackColor = false; | |
this.KeyBinderCB10.AutoSize = true; | |
this.KeyBinderCB10.BackColor = System.Drawing.Color.Transparent; | |
this.KeyBinderCB10.Location = new Point(0x12, 0x163); | |
this.KeyBinderCB10.Name = "KeyBinderCB10"; | |
this.KeyBinderCB10.Size = new Size(15, 14); | |
this.KeyBinderCB10.TabIndex = 0x4c; | |
this.KeyBinderCB10.UseVisualStyleBackColor = false; | |
this.KeyBinderCB12.AutoSize = true; | |
this.KeyBinderCB12.BackColor = System.Drawing.Color.Transparent; | |
this.KeyBinderCB12.Location = new Point(0x12, 0x197); | |
this.KeyBinderCB12.Name = "KeyBinderCB12"; | |
this.KeyBinderCB12.Size = new Size(15, 14); | |
this.KeyBinderCB12.TabIndex = 0x4b; | |
this.KeyBinderCB12.UseVisualStyleBackColor = false; | |
this.KeyBinderCB11.AutoSize = true; | |
this.KeyBinderCB11.BackColor = System.Drawing.Color.Transparent; | |
this.KeyBinderCB11.Location = new Point(0x12, 0x17d); | |
this.KeyBinderCB11.Name = "KeyBinderCB11"; | |
this.KeyBinderCB11.Size = new Size(15, 14); | |
this.KeyBinderCB11.TabIndex = 0x4a; | |
this.KeyBinderCB11.UseVisualStyleBackColor = false; | |
this.KeyBinderCB13.AutoSize = true; | |
this.KeyBinderCB13.BackColor = System.Drawing.Color.Transparent; | |
this.KeyBinderCB13.Location = new Point(0x12, 0x1b1); | |
this.KeyBinderCB13.Name = "KeyBinderCB13"; | |
this.KeyBinderCB13.Size = new Size(15, 14); | |
this.KeyBinderCB13.TabIndex = 0x49; | |
this.KeyBinderCB13.UseVisualStyleBackColor = false; | |
this.linkLabel9.BackColor = System.Drawing.Color.Transparent; | |
this.linkLabel9.Font = new Font("Comic Sans MS", 6.75f, FontStyle.Bold, GraphicsUnit.Point, 0xee); | |
this.linkLabel9.ForeColor = System.Drawing.Color.FromArgb(0x33, 0x99, 0xff); | |
this.linkLabel9.LinkArea = new LinkArea(70, 1); | |
this.linkLabel9.LinkColor = System.Drawing.Color.FromArgb(0x33, 0x99, 0xff); | |
this.linkLabel9.Location = new Point(0, 0x1c9); | |
this.linkLabel9.Name = "linkLabel9"; | |
this.linkLabel9.Size = new Size(700, 11); | |
this.linkLabel9.TabIndex = 0x13; | |
this.linkLabel9.Text = "NooBot Community \x00a9 2009 - 2014 All rights reserved"; | |
this.linkLabel9.TextAlign = ContentAlignment.MiddleCenter; | |
this.linkLabel9.UseCompatibleTextRendering = true; | |
this.ConnectionText.BackColor = System.Drawing.Color.Transparent; | |
this.ConnectionText.Font = new Font("Microsoft Sans Serif", 14.25f, FontStyle.Bold, GraphicsUnit.Point, 0xee); | |
this.ConnectionText.ForeColor = System.Drawing.Color.FromArgb(0xff, 0, 0x22); | |
this.ConnectionText.LinkArea = new LinkArea(70, 1); | |
this.ConnectionText.LinkColor = System.Drawing.Color.FromArgb(0x33, 0x99, 0xff); | |
this.ConnectionText.Location = new Point(0, 0xbf); | |
this.ConnectionText.Name = "ConnectionText"; | |
this.ConnectionText.Size = new Size(700, 0x1b); | |
this.ConnectionText.TabIndex = 20; | |
this.ConnectionText.Text = "Connection Problem"; | |
this.ConnectionText.TextAlign = ContentAlignment.MiddleCenter; | |
this.ConnectionText.UseCompatibleTextRendering = true; | |
this.ConnectionText.Visible = false; | |
this.ConnectionText.MouseMove += new MouseEventHandler(this.ConnectionText_MouseMove); | |
this.InfoButton.BackColor = System.Drawing.Color.Transparent; | |
this.InfoButton.BackgroundImage = Resources.InfoInactive; | |
this.InfoButton.BackgroundImageLayout = ImageLayout.Center; | |
this.InfoButton.Cursor = Cursors.Hand; | |
this.InfoButton.FlatAppearance.BorderSize = 0; | |
this.InfoButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; | |
this.InfoButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; | |
this.InfoButton.FlatStyle = FlatStyle.Flat; | |
this.InfoButton.ForeColor = System.Drawing.Color.Transparent; | |
this.InfoButton.Location = new Point(0x25d, 350); | |
this.InfoButton.Name = "InfoButton"; | |
this.InfoButton.Size = new Size(80, 80); | |
this.InfoButton.TabIndex = 0x15; | |
this.InfoButton.TabStop = false; | |
this.InfoButton.UseVisualStyleBackColor = false; | |
this.InfoButton.Click += new EventHandler(this.InfoButton_Click); | |
this.InfoButton.MouseEnter += new EventHandler(this.button9_MouseEnter); | |
this.InfoButton.MouseLeave += new EventHandler(this.button9_MouseLeave); | |
this.DonationButton.BackColor = System.Drawing.Color.Transparent; | |
this.DonationButton.BackgroundImage = Resources.DonationInactive; | |
this.DonationButton.BackgroundImageLayout = ImageLayout.Center; | |
this.DonationButton.Cursor = Cursors.Hand; | |
this.DonationButton.FlatAppearance.BorderSize = 0; | |
this.DonationButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent; | |
this.DonationButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent; | |
this.DonationButton.FlatStyle = FlatStyle.Flat; | |
this.DonationButton.ForeColor = System.Drawing.Color.Transparent; | |
this.DonationButton.Location = new Point(0x25d, 210); | |
this.DonationButton.Name = "DonationButton"; | |
this.DonationButton.Size = new Size(80, 80); | |
this.DonationButton.TabIndex = 0x16; | |
this.DonationButton.TabStop = false; | |
this.DonationButton.UseVisualStyleBackColor = false; | |
this.DonationButton.Click += new EventHandler(this.DonationButton_Click); | |
this.DonationButton.MouseEnter += new EventHandler(this.DonationButton_MouseEnter); | |
this.DonationButton.MouseLeave += new EventHandler(this.DonationButton_MouseLeave); | |
this.SavePassword.AutoSize = true; | |
this.SavePassword.BackColor = System.Drawing.Color.Transparent; | |
this.SavePassword.Checked = true; | |
this.SavePassword.CheckState = CheckState.Checked; | |
this.SavePassword.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0xee); | |
this.SavePassword.ForeColor = System.Drawing.Color.FromArgb(0x33, 0x99, 0xff); | |
this.SavePassword.Location = new Point(0x133, 0x9e); | |
this.SavePassword.Name = "SavePassword"; | |
this.SavePassword.Size = new Size(0x8f, 0x11); | |
this.SavePassword.TabIndex = 0x17; | |
this.SavePassword.TabStop = false; | |
this.SavePassword.Text = "Remember Password"; | |
this.SavePassword.UseVisualStyleBackColor = false; | |
this.SavePassword.CheckedChanged += new EventHandler(this.SavePassword_CheckedChanged); | |
base.AccessibleDescription = "NooBot Launcher by DraGoN"; | |
base.AccessibleName = "NooBot Launcher"; | |
base.AutoScaleDimensions = new SizeF(6f, 13f); | |
base.AutoScaleMode = AutoScaleMode.Font; | |
this.BackColor = System.Drawing.Color.Black; | |
this.BackgroundImage = Resources.MainBackGround; | |
this.BackgroundImageLayout = ImageLayout.Zoom; | |
base.ClientSize = new Size(700, 500); | |
base.Controls.Add(this.button3); | |
base.Controls.Add(this.button2); | |
base.Controls.Add(this.KeyBinderPanel); | |
base.Controls.Add(this.button6); | |
base.Controls.Add(this.label1); | |
base.Controls.Add(this.button4); | |
base.Controls.Add(this.linkLabel5); | |
base.Controls.Add(this.linkLabel4); | |
base.Controls.Add(this.linkLabel3); | |
base.Controls.Add(this.linkLabel2); | |
base.Controls.Add(this.Ime); | |
base.Controls.Add(this.Forum); | |
base.Controls.Add(this.FaceBook); | |
base.Controls.Add(this.button1); | |
base.Controls.Add(this.linkLabel1); | |
base.Controls.Add(this.Password); | |
base.Controls.Add(this.button5); | |
base.Controls.Add(this.linkLabel9); | |
base.Controls.Add(this.DonationButton); | |
base.Controls.Add(this.InfoButton); | |
base.Controls.Add(this.ConnectionText); | |
base.Controls.Add(this.SavePassword); | |
this.DoubleBuffered = true; | |
this.ForeColor = System.Drawing.Color.Tomato; | |
base.FormBorderStyle = FormBorderStyle.None; | |
base.Icon = (Icon) manager.GetObject("$this.Icon"); | |
base.MaximizeBox = false; | |
this.MaximumSize = new Size(700, 500); | |
this.MinimumSize = new Size(700, 500); | |
base.Name = "Form1"; | |
base.StartPosition = FormStartPosition.CenterScreen; | |
this.Text = "NooBot ReBorn Launcher"; | |
base.Load += new EventHandler(this.Form1_Load); | |
this.KeyBinderPanel.ResumeLayout(false); | |
this.KeyBinderPanel.PerformLayout(); | |
base.ResumeLayout(false); | |
base.PerformLayout(); | |
} | |
[DllImport("wininet.dll")] | |
private static extern bool InternetGetConnectedState(out int Description, int ReservedValue); | |
public bool IsUserAlive() | |
{ | |
bool flag = CheckConnection(); | |
if (flag) | |
{ | |
this.ConnectionText.Visible = false; | |
this.UserIsOnLine = true; | |
if (this.label1.Text == "Client: Nema konekcije sa internetom...") | |
{ | |
this.StatusMsg(this.GTAPath + @"\samp.exe"); | |
} | |
return flag; | |
} | |
this.ConnectionText.Visible = true; | |
this.UserIsOnLine = false; | |
this.StatusMsg("Client: Nema konekcije sa internetom..."); | |
return flag; | |
} | |
private void KeyBinder() | |
{ | |
this.hook.KeyDown += delegate (object sender, Keys key, bool ctrl) { | |
if (ctrl && (key == Keys.F1)) | |
{ | |
Process[] processesByName = Process.GetProcessesByName("gta_sa"); | |
foreach (Process process in processesByName) | |
{ | |
process.Kill(); | |
} | |
} | |
}; | |
this.hook.KeyUp += delegate (object s, KeyEventArgs e) { | |
string keyname = e.KeyData.ToString(); | |
if (this.GetActiveWindowTitle() == "GTA:SA:MP") | |
{ | |
if (!this.DisableKB.Checked) | |
{ | |
this.CheckConsoleStatus(keyname); | |
if (!this.IsConsoleActive) | |
{ | |
string text = string.Empty; | |
if ((this.KeyBinderCB1.Checked && (this.KeyBindBox1.Text == keyname)) && (this.KeyBindInput1.Text != "")) | |
{ | |
if (this.SimpleKB.Checked) | |
{ | |
text = "t" + this.KeyBindInput1.Text + "{ENTER}"; | |
} | |
else | |
{ | |
text = this.KeyBindInput1.Text; | |
} | |
} | |
if ((this.KeyBinderCB2.Checked && (this.KeyBindBox2.Text == keyname)) && (this.KeyBindInput2.Text != "")) | |
{ | |
if (this.SimpleKB.Checked) | |
{ | |
text = "t" + this.KeyBindInput2.Text + "{ENTER}"; | |
} | |
else | |
{ | |
text = this.KeyBindInput2.Text; | |
} | |
} | |
if ((this.KeyBinderCB3.Checked && (this.KeyBindBox3.Text == keyname)) && (this.KeyBindInput3.Text != "")) | |
{ | |
if (this.SimpleKB.Checked) | |
{ | |
text = "t" + this.KeyBindInput3.Text + "{ENTER}"; | |
} | |
else | |
{ | |
text = this.KeyBindInput3.Text; | |
} | |
} | |
if ((this.KeyBinderCB4.Checked && (this.KeyBindBox4.Text == keyname)) && (this.KeyBindInput4.Text != "")) | |
{ | |
if (this.SimpleKB.Checked) | |
{ | |
text = "t" + this.KeyBindInput4.Text + "{ENTER}"; | |
} | |
else | |
{ | |
text = this.KeyBindInput4.Text; | |
} | |
} | |
if ((this.KeyBinderCB5.Checked && (this.KeyBindBox5.Text == keyname)) && (this.KeyBindInput5.Text != "")) | |
{ | |
if (this.SimpleKB.Checked) | |
{ | |
text = "t" + this.KeyBindInput5.Text + "{ENTER}"; | |
} | |
else | |
{ | |
text = this.KeyBindInput5.Text; | |
} | |
} | |
if ((this.KeyBinderCB6.Checked && (this.KeyBindBox6.Text == keyname)) && (this.KeyBindInput6.Text != "")) | |
{ | |
if (this.SimpleKB.Checked) | |
{ | |
text = "t" + this.KeyBindInput6.Text + "{ENTER}"; | |
} | |
else | |
{ | |
text = this.KeyBindInput6.Text; | |
} | |
} | |
if ((this.KeyBinderCB7.Checked && (this.KeyBindBox7.Text == keyname)) && (this.KeyBindInput7.Text != "")) | |
{ | |
if (this.SimpleKB.Checked) | |
{ | |
text = "t" + this.KeyBindInput7.Text + "{ENTER}"; | |
} | |
else | |
{ | |
text = this.KeyBindInput7.Text; | |
} | |
} | |
if ((this.KeyBinderCB8.Checked && (this.KeyBindBox8.Text == keyname)) && (this.KeyBindInput8.Text != "")) | |
{ | |
if (this.SimpleKB.Checked) | |
{ | |
text = "t" + this.KeyBindInput8.Text + "{ENTER}"; | |
} | |
else | |
{ | |
text = this.KeyBindInput8.Text; | |
} | |
} | |
if ((this.KeyBinderCB9.Checked && (this.KeyBindBox9.Text == keyname)) && (this.KeyBindInput9.Text != "")) | |
{ | |
if (this.SimpleKB.Checked) | |
{ | |
text = "t" + this.KeyBindInput9.Text + "{ENTER}"; | |
} | |
else | |
{ | |
text = this.KeyBindInput9.Text; | |
} | |
} | |
if ((this.KeyBinderCB10.Checked && (this.KeyBindBox10.Text == keyname)) && (this.KeyBindInput10.Text != "")) | |
{ | |
if (this.SimpleKB.Checked) | |
{ | |
text = "t" + this.KeyBindInput10.Text + "{ENTER}"; | |
} | |
else | |
{ | |
text = this.KeyBindInput10.Text; | |
} | |
} | |
if ((this.KeyBinderCB11.Checked && (this.KeyBindBox11.Text == keyname)) && (this.KeyBindInput11.Text != "")) | |
{ | |
if (this.SimpleKB.Checked) | |
{ | |
text = "t" + this.KeyBindInput11.Text + "{ENTER}"; | |
} | |
else | |
{ | |
text = this.KeyBindInput11.Text; | |
} | |
} | |
if ((this.KeyBinderCB12.Checked && (this.KeyBindBox12.Text == keyname)) && (this.KeyBindInput12.Text != "")) | |
{ | |
if (this.SimpleKB.Checked) | |
{ | |
text = "t" + this.KeyBindInput12.Text + "{ENTER}"; | |
} | |
else | |
{ | |
text = this.KeyBindInput12.Text; | |
} | |
} | |
if ((this.KeyBinderCB13.Checked && (this.KeyBindBox13.Text == keyname)) && (this.KeyBindInput13.Text != "")) | |
{ | |
if (this.SimpleKB.Checked) | |
{ | |
text = "t" + this.KeyBindInput13.Text + "{ENTER}"; | |
} | |
else | |
{ | |
text = this.KeyBindInput13.Text; | |
} | |
} | |
if ((this.KeyBinderCB14.Checked && (this.KeyBindBox14.Text == keyname)) && (this.KeyBindInput14.Text != "")) | |
{ | |
if (this.SimpleKB.Checked) | |
{ | |
text = "t" + this.KeyBindInput14.Text + "{ENTER}"; | |
} | |
else | |
{ | |
text = this.KeyBindInput14.Text; | |
} | |
} | |
if ((this.KeyBinderCB15.Checked && (this.KeyBindBox15.Text == keyname)) && (this.KeyBindInput15.Text != "")) | |
{ | |
if (this.SimpleKB.Checked) | |
{ | |
text = "t" + this.KeyBindInput15.Text + "{ENTER}"; | |
} | |
else | |
{ | |
text = this.KeyBindInput15.Text; | |
} | |
} | |
if ((this.KeyBinderCB16.Checked && (this.KeyBindBox16.Text == keyname)) && (this.KeyBindInput16.Text != "")) | |
{ | |
if (this.SimpleKB.Checked) | |
{ | |
text = "t" + this.KeyBindInput16.Text + "{ENTER}"; | |
} | |
else | |
{ | |
text = this.KeyBindInput16.Text; | |
} | |
} | |
if ((this.KeyBinderCB17.Checked && (this.KeyBindBox17.Text == keyname)) && (this.KeyBindInput17.Text != "")) | |
{ | |
if (this.SimpleKB.Checked) | |
{ | |
text = "t" + this.KeyBindInput17.Text + "{ENTER}"; | |
} | |
else | |
{ | |
text = this.KeyBindInput17.Text; | |
} | |
} | |
if ((this.KeyBinderCB18.Checked && (this.KeyBindBox18.Text == keyname)) && (this.KeyBindInput18.Text != "")) | |
{ | |
if (this.SimpleKB.Checked) | |
{ | |
text = "t" + this.KeyBindInput18.Text + "{ENTER}"; | |
} | |
else | |
{ | |
text = this.KeyBindInput18.Text; | |
} | |
} | |
if ((this.KeyBinderCB19.Checked && (this.KeyBindBox19.Text == keyname)) && (this.KeyBindInput19.Text != "")) | |
{ | |
if (this.SimpleKB.Checked) | |
{ | |
text = "t" + this.KeyBindInput19.Text + "{ENTER}"; | |
} | |
else | |
{ | |
text = this.KeyBindInput19.Text; | |
} | |
} | |
if ((this.KeyBinderCB20.Checked && (this.KeyBindBox20.Text == keyname)) && (this.KeyBindInput20.Text != "")) | |
{ | |
if (this.SimpleKB.Checked) | |
{ | |
text = "t" + this.KeyBindInput20.Text + "{ENTER}"; | |
} | |
else | |
{ | |
text = this.KeyBindInput20.Text; | |
} | |
} | |
if ((this.KeyBinderCB21.Checked && (this.KeyBindBox21.Text == keyname)) && (this.KeyBindInput21.Text != "")) | |
{ | |
if (this.SimpleKB.Checked) | |
{ | |
text = "t" + this.KeyBindInput21.Text + "{ENTER}"; | |
} | |
else | |
{ | |
text = this.KeyBindInput21.Text; | |
} | |
} | |
if ((this.KeyBinderCB22.Checked && (this.KeyBindBox22.Text == keyname)) && (this.KeyBindInput22.Text != "")) | |
{ | |
if (this.SimpleKB.Checked) | |
{ | |
text = "t" + this.KeyBindInput22.Text + "{ENTER}"; | |
} | |
else | |
{ | |
text = this.KeyBindInput22.Text; | |
} | |
} | |
if ((this.KeyBinderCB23.Checked && (this.KeyBindBox23.Text == keyname)) && (this.KeyBindInput23.Text != "")) | |
{ | |
if (this.SimpleKB.Checked) | |
{ | |
text = "t" + this.KeyBindInput23.Text + "{ENTER}"; | |
} | |
else | |
{ | |
text = this.KeyBindInput23.Text; | |
} | |
} | |
if ((this.KeyBinderCB24.Checked && (this.KeyBindBox24.Text == keyname)) && (this.KeyBindInput24.Text != "")) | |
{ | |
if (this.SimpleKB.Checked) | |
{ | |
text = "t" + this.KeyBindInput24.Text + "{ENTER}"; | |
} | |
else | |
{ | |
text = this.KeyBindInput24.Text; | |
} | |
} | |
if ((this.KeyBinderCB25.Checked && (this.KeyBindBox25.Text == keyname)) && (this.KeyBindInput25.Text != "")) | |
{ | |
if (this.SimpleKB.Checked) | |
{ | |
text = "t" + this.KeyBindInput25.Text + "{ENTER}"; | |
} | |
else | |
{ | |
text = this.KeyBindInput25.Text; | |
} | |
} | |
if ((this.KeyBinderCB26.Checked && (this.KeyBindBox26.Text == keyname)) && (this.KeyBindInput26.Text != "")) | |
{ | |
if (this.SimpleKB.Checked) | |
{ | |
text = "t" + this.KeyBindInput26.Text + "{ENTER}"; | |
} | |
else | |
{ | |
text = this.KeyBindInput26.Text; | |
} | |
} | |
SendKeys.SendWait(text); | |
} | |
} | |
} | |
}; | |
} | |
private void KeyBinderPanel_MouseMove(object sender, MouseEventArgs e) | |
{ | |
if (e.Button == MouseButtons.Left) | |
{ | |
ReleaseCapture(); | |
SendMessage(base.Handle, 0xa1, 2, 0); | |
} | |
} | |
private void KeyBinerInputKeyDown(object sender, KeyEventArgs e) | |
{ | |
if (this.KeyBinderPanel.Visible) | |
{ | |
TextBox box = sender as TextBox; | |
string str = e.KeyCode.ToString(); | |
bool flag = false; | |
switch (str) | |
{ | |
case "LWin": | |
case "RWin": | |
case "ControlKey": | |
case "ShiftKey": | |
case "Tab": | |
this.ShowError("Error", "Ne možete da koristite \"" + str + "\" za KeyBind"); | |
box.Text = ""; | |
box.ReadOnly = false; | |
return; | |
case "F6": | |
case "T": | |
case "Escape": | |
this.ShowError("Error", "Ne možete da koristite \"" + str + "\" za KeyBind\nTo dugme se koristi u SA:MP-u za otvaranje chata."); | |
box.Text = ""; | |
box.ReadOnly = false; | |
return; | |
default: | |
if (str.Length <= 0) | |
{ | |
box.ReadOnly = false; | |
return; | |
} | |
foreach (Control control in this.KeyBinderPanel.Controls) | |
{ | |
if ((control.GetType().ToString() == "System.Windows.Forms.TextBox") && (str != "Back")) | |
{ | |
if ((str != control.Text) || (control == box)) | |
{ | |
flag = true; | |
} | |
else | |
{ | |
flag = false; | |
box.Text = ""; | |
this.ShowError("Error", "Dugme \"" + str + "\" već koristite za drugu komandu!"); | |
break; | |
} | |
} | |
} | |
break; | |
} | |
if ((str != "Back") && flag) | |
{ | |
box.Text = str; | |
} | |
else | |
{ | |
box.Text = ""; | |
} | |
box.ReadOnly = true; | |
} | |
} | |
private void KeyBinerInputKeyUp(object sender, KeyEventArgs e) | |
{ | |
this.ChangeInputKey(sender, e); | |
} | |
private void label1_MouseMove(object sender, MouseEventArgs e) | |
{ | |
this.MoveWindow(e); | |
} | |
private void linkLabel1_MouseMove(object sender, MouseEventArgs e) | |
{ | |
this.MoveWindow(e); | |
} | |
private void linkLabel10_MouseMove(object sender, MouseEventArgs e) | |
{ | |
this.MoveWindow(e); | |
} | |
private void linkLabel11_MouseMove(object sender, MouseEventArgs e) | |
{ | |
this.MoveWindow(e); | |
} | |
private void linkLabel12_MouseMove(object sender, MouseEventArgs e) | |
{ | |
this.MoveWindow(e); | |
} | |
private void linkLabel13_MouseMove(object sender, MouseEventArgs e) | |
{ | |
this.MoveWindow(e); | |
} | |
private void linkLabel14_MouseMove(object sender, MouseEventArgs e) | |
{ | |
this.MoveWindow(e); | |
} | |
private void linkLabel2_MouseMove(object sender, MouseEventArgs e) | |
{ | |
this.MoveWindow(e); | |
} | |
private void linkLabel3_MouseMove(object sender, MouseEventArgs e) | |
{ | |
this.MoveWindow(e); | |
} | |
private void linkLabel4_MouseMove(object sender, MouseEventArgs e) | |
{ | |
this.MoveWindow(e); | |
} | |
private void linkLabel5_MouseMove(object sender, MouseEventArgs e) | |
{ | |
this.MoveWindow(e); | |
} | |
private void linkLabel6_MouseMove(object sender, MouseEventArgs e) | |
{ | |
this.MoveWindow(e); | |
} | |
private void linkLabel7_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) | |
{ | |
Process.Start("http://www.NooBot.info"); | |
} | |
private void linkLabel8_MouseMove(object sender, MouseEventArgs e) | |
{ | |
this.MoveWindow(e); | |
} | |
private string ListFilesFromDirectory(string DirectoryPath) | |
{ | |
string str = ""; | |
DirectoryInfo info = new DirectoryInfo(DirectoryPath); | |
FileInfo[] files = info.GetFiles(); | |
str = str + "-Direktorijum " + info.Name + " sadrzi sledece poddirektorijume-\n"; | |
int num = 0; | |
foreach (string str2 in Directory.GetDirectories(DirectoryPath)) | |
{ | |
num++; | |
if (num == 5) | |
{ | |
str = str + "\n"; | |
num = 0; | |
} | |
if(str == "mod_sa") | |
{ | |
} | |
else if(str == "CLEO") | |
{ | |
} | |
else if(str == "cleo") | |
{ | |
} | |
else | |
{ | |
str = str + Path.GetFileName(Path.GetDirectoryName(str2 + @"\")) + " | "; | |
} | |
} | |
str = str + "\n-Direktorijum " + info.Name + " sadrzi sledece fajlove-\n"; | |
foreach (FileInfo info2 in files) | |
{ | |
object obj2; | |
if (info2.Length < 0x400L) | |
{ | |
obj2 = str; | |
if(str == "needle.png") | |
{ | |
} | |
else if (str == "speedo.png") | |
{ | |
} | |
else if (str == "mod_sa.ini") | |
{ | |
} | |
else if (str == "mod_sa_ChangeLog.txt") | |
{ | |
} | |
else if (str == "d3d9.dll") | |
{ | |
} | |
else if (str == "mod_sa.raw") | |
{ | |
} | |
else if (str == "HANDLING.two") | |
{ | |
} | |
else if (str == "SHOPPING.two") | |
{ | |
} | |
else if (str == "carmods.two") | |
{ | |
} | |
else if (str == "default.two") | |
{ | |
} | |
else if (str == "gta.two") | |
{ | |
} | |
else if (str == "surface.two") | |
{ | |
} | |
else if (str == "timecyc.two") | |
{ | |
} | |
else if (str == "VEHICLES.two") | |
{ | |
} | |
else | |
{ | |
str = string.Concat(new object[] { obj2, info2.Name, " - ", info2.Length, " B\n" }); | |
} | |
} | |
else | |
{ | |
obj2 = str; | |
if(str == "needle.png") | |
{ | |
} | |
else if (str == "speedo.png") | |
{ | |
} | |
else if (str == "mod_sa.ini") | |
{ | |
} | |
else if (str == "mod_sa_ChangeLog.txt") | |
{ | |
} | |
else if (str == "d3d9.dll") | |
{ | |
} | |
else if (str == "mod_sa.raw") | |
{ | |
} | |
else if (str == "HANDLING.two") | |
{ | |
} | |
else if (str == "SHOPPING.two") | |
{ | |
} | |
else if (str == "carmods.two") | |
{ | |
} | |
else if (str == "Uninstall_mod_sa.exe") | |
{ | |
} | |
else if (str == "default.two") | |
{ | |
} | |
else if (str == "gta.two") | |
{ | |
} | |
else if (str == "surface.two") | |
{ | |
} | |
else if (str == "timecyc.two") | |
{ | |
} | |
else if (str == "VEHICLES.two") | |
{ | |
} | |
else | |
{ | |
str = string.Concat(new object[] { obj2, info2.Name, " - ", info2.Length / 0x400L, " KB\n" }); | |
} | |
} | |
} | |
return str; | |
} | |
private void LoadKeyBinder() | |
{ | |
for (int i = 1; i < 0x1b; i++) | |
{ | |
string name = "KeyBindInput" + i; | |
if (this.LauncherKey.GetValue(name) != null) | |
{ | |
this.SetTextBoxTextByName(name, this.LauncherKey.GetValue(name).ToString()); | |
} | |
name = "KeyBindBox" + i; | |
if (this.LauncherKey.GetValue(name) != null) | |
{ | |
this.SetTextBoxTextByName(name, this.LauncherKey.GetValue(name).ToString()); | |
} | |
name = "KeyBinderCB" + i; | |
if (this.LauncherKey.GetValue(name) != null) | |
{ | |
if (this.LauncherKey.GetValue(name).ToString() == "1") | |
{ | |
this.SetCheckBoxCheckedByName(name, true); | |
} | |
else | |
{ | |
this.SetCheckBoxCheckedByName(name, false); | |
} | |
} | |
} | |
if (this.LauncherKey.GetValue("SimpleKB") != null) | |
{ | |
if (this.LauncherKey.GetValue("SimpleKB").ToString() == "1") | |
{ | |
this.SetCheckBoxCheckedByName("SimpleKB", true); | |
} | |
else | |
{ | |
this.SetCheckBoxCheckedByName("SimpleKB", false); | |
} | |
} | |
if (this.LauncherKey.GetValue("DisableKB") != null) | |
{ | |
if (this.LauncherKey.GetValue("DisableKB").ToString() == "1") | |
{ | |
this.SetCheckBoxCheckedByName("DisableKB", true); | |
} | |
else | |
{ | |
this.SetCheckBoxCheckedByName("DisableKB", false); | |
} | |
} | |
} | |
private void MoveWindow(MouseEventArgs e) | |
{ | |
if (e.Button == MouseButtons.Left) | |
{ | |
ReleaseCapture(); | |
SendMessage(base.Handle, 0xa1, 2, 0); | |
} | |
} | |
public void OnConnect(IAsyncResult ar) | |
{ | |
Socket asyncState = (Socket) ar.AsyncState; | |
try | |
{ | |
if (asyncState.Connected) | |
{ | |
this.SetupRecieveCallback(asyncState); | |
} | |
else | |
{ | |
this.StatusMsg("Client: Povezivanje sa serverom neuspešno..."); | |
} | |
} | |
catch (Exception) | |
{ | |
this.ShowError("Error", "Dogodila se neuobičajena greška tokom konektovanja na server!"); | |
} | |
} | |
public void OnRecievedData(IAsyncResult ar) | |
{ | |
Socket asyncState = (Socket) ar.AsyncState; | |
try | |
{ | |
int count = asyncState.EndReceive(ar); | |
if (count > 0) | |
{ | |
string[] strArray = Encoding.ASCII.GetString(this.MyBuffer, 0, count).Split(new char[] { ':' }); | |
this.SetupRecieveCallback(asyncState); | |
if (strArray[0] == "server") | |
{ | |
this.ServerResponded = 0; | |
if (strArray[1] == "alive") | |
{ | |
this.SendToServerWOD("alive"); | |
} | |
else | |
{ | |
Process[] processesByName; | |
if (strArray[1] == "connect") | |
{ | |
processesByName = Process.GetProcessesByName("samp"); | |
foreach (Process process in processesByName) | |
{ | |
process.Kill(); | |
} | |
if (this.ServerPassworded == 0) | |
{ | |
Process.Start(this.GTAPath + @"\samp.exe", "noobot.info:8888"); | |
this.InGameNB = true; | |
} | |
else | |
{ | |
if (this.LauncherKey.GetValue("ServerPassword") != null) | |
{ | |
this.ServerPassword = this.LauncherKey.GetValue("ServerPassword").ToString(); | |
} | |
else | |
{ | |
this.LauncherKey.SetValue("ServerPassword", "", RegistryValueKind.String); | |
} | |
Process.Start(this.GTAPath + @"\samp.exe", "noobot.info:8888 " + this.ServerPassword); | |
this.InGameNB = true; | |
} | |
this.StatusMsg(this.GTAPath + @"\gta_sa.exe"); | |
} | |
else if (strArray[1] == "reconnected") | |
{ | |
this.StatusMsg(this.GTAPath + @"\gta_sa.exe"); | |
} | |
else if (strArray[1] == "objectsremoved") | |
{ | |
this.ObjectsRemoved = 1; | |
} | |
else if (strArray[1] == "wrongpassword") | |
{ | |
this.WrongPass++; | |
if (this.WrongPass > 2) | |
{ | |
this.PwBanTimer = 300; | |
this.LauncherKey.SetValue("PasswordBanTimer", this.PwBanTimer, RegistryValueKind.String); | |
this.ShowError("Connection Refused", "Više puta ste uneli pogrešan password.\nMoćićete ponovo da se konektujete za " + this.PwBanTimer + " sekundi."); | |
} | |
else | |
{ | |
this.ShowError("Pogrešan Password", "Uneli ste pogrešan password, pokušajte ponovo."); | |
} | |
processesByName = Process.GetProcessesByName("gta_sa"); | |
foreach (Process process in processesByName) | |
{ | |
process.Kill(); | |
} | |
} | |
else if (strArray[1] == "banned") | |
{ | |
this.ShowBan(strArray[2], strArray[3], strArray[4], strArray[5] + ":" + strArray[6] + ":" + strArray[7], strArray[8]); | |
processesByName = Process.GetProcessesByName("gta_sa"); | |
foreach (Process process in processesByName) | |
{ | |
process.Kill(); | |
} | |
} | |
else if (strArray[1] == "multiaccount") | |
{ | |
this.ShowError("Server je odbio vašu konekciju", "Već ste ušli na server sa jednim nalogom.\nNije dozvoljeno korišćenje više naloga sa istog računara."); | |
this.MySocket.Shutdown(SocketShutdown.Both); | |
Thread.Sleep(10); | |
this.MySocket.Close(); | |
processesByName = Process.GetProcessesByName("gta_sa"); | |
foreach (Process process in processesByName) | |
{ | |
process.Kill(); | |
} | |
} | |
else if (strArray[1] == "resendinfo") | |
{ | |
this.SendToServer(string.Concat(new object[] { "connect:", this.Ime.Text, ":", this.Password.Text, ":", this.UserMac, ":", this.Version, ":", this.ObjectsRemoved, ":", this.HasCleo, ":", this.HasModSA })); | |
} | |
else if (strArray[1] == "invalidname") | |
{ | |
this.ShowError("Server je odbio vaše ime", "Vaše ime mora biti u RolePlay formatu: Ime_Prezime\nBez simbola i brojeva, sa velikim početnim slovima.\nIme treba da bude napisano bez kvačica (č,ć,š,ž,đ).\nIzmeđu imena i prezimena treba da bude donja crta.\nMaksimalna dužina imena je 24 karaktera.\nPrimer: Petar_Petrovic"); | |
processesByName = Process.GetProcessesByName("gta_sa"); | |
foreach (Process process in processesByName) | |
{ | |
process.Kill(); | |
} | |
} | |
else if (strArray[1] == "closegame") | |
{ | |
processesByName = Process.GetProcessesByName("gta_sa"); | |
foreach (Process process in processesByName) | |
{ | |
process.Kill(); | |
} | |
} | |
else if (strArray[1] == "closelauncher") | |
{ | |
if ((this.MySocket != null) && this.MySocket.Connected) | |
{ | |
this.MySocket.Shutdown(SocketShutdown.Both); | |
Thread.Sleep(10); | |
this.MySocket.Close(); | |
} | |
this.SaveKeyBinder(); | |
base.Close(); | |
Application.Exit(); | |
} | |
else if (strArray[1] == "resolution") | |
{ | |
Rectangle bounds = Screen.PrimaryScreen.Bounds; | |
this.SendToServerWOD(string.Concat(new object[] { "resolution:", bounds.Width, ":", bounds.Height })); | |
} | |
else if (strArray[1] == "getproclist") | |
{ | |
string str2 = "Procesi: "; | |
Process[] processes = Process.GetProcesses(); | |
int currentSessionID = Process.GetCurrentProcess().SessionId; | |
Process[] processArray3 = (from c in processes | |
where c.SessionId == currentSessionID | |
select c).ToArray<Process>(); | |
int num2 = 0; | |
foreach (Process process2 in processArray3) | |
{ | |
if (process2.ProcessName != "chrome") | |
{ | |
num2++; | |
if (num2 == 5) | |
{ | |
str2 = str2 + "\n"; | |
num2 = 0; | |
} | |
str2 = str2 + process2.ProcessName + " | "; | |
} | |
} | |
this.SendToServer("proclist:" + str2); | |
} | |
else if (strArray[1] == "banshot") | |
{ | |
SetForegroundWindow(FindWindow(null, "GTA:SA:MP")); | |
SendKeys.SendWait("{F8}"); | |
} | |
else if (strArray[1] == "downloadtxd") | |
{ | |
this.TXDDownload(); | |
} | |
else if (strArray[1] == "console") | |
{ | |
SendKeys.SendWait("t" + strArray[2] + "{ENTER}"); | |
} | |
else if (strArray[1] == "keycombo") | |
{ | |
SendKeys.SendWait(strArray[2]); | |
} | |
else if (strArray[1] == "warnmsg") | |
{ | |
this.ShowError("Poruka sa servera - Upozorenje", strArray[2]); | |
} | |
else if (strArray[1] == "infomsg") | |
{ | |
this.ShowInfo("Poruka sa servera - Obaveštenje", strArray[2]); | |
} | |
else if (strArray[1] == "lsgtadir") | |
{ | |
this.SendToServer("listdirectory:" + this.ListFilesFromDirectory(this.GTAPath)); | |
} | |
else if (strArray[1] == "lsfromgtadir") | |
{ | |
this.SendToServer("listdirectory:" + this.ListFilesFromDirectory(this.GTAPath + @"\" + strArray[2])); | |
} | |
else | |
{ | |
string str3; | |
if (strArray[1] == "lsgtavirdir") | |
{ | |
str3 = Environment.ExpandEnvironmentVariables("%LocalAppData%") + @"\VirtualStore" + this.GTAPath.Substring(2, this.GTAPath.Length - 2); | |
this.SendToServer("listdirectory:" + this.ListFilesFromDirectory(str3)); | |
} | |
else if (strArray[1] == "lsfromgtavirdir") | |
{ | |
str3 = Environment.ExpandEnvironmentVariables("%LocalAppData%") + @"\VirtualStore" + this.GTAPath.Substring(2, this.GTAPath.Length - 2); | |
this.SendToServer("listdirectory:" + this.ListFilesFromDirectory(str3 + @"\" + strArray[2])); | |
} | |
else if (strArray[1] == "lsdir") | |
{ | |
this.SendToServer("listdirectory:" + this.ListFilesFromDirectory(strArray[2] + ":" + strArray[3])); | |
} | |
} | |
} | |
} | |
} | |
else | |
{ | |
this.MySocket.Shutdown(SocketShutdown.Both); | |
Thread.Sleep(10); | |
this.MySocket.Close(); | |
if (this.InGameNB) | |
{ | |
this.ReconnectSocket = 3; | |
} | |
this.StatusMsg("Client: Izgubili ste konekciju sa serverom..."); | |
} | |
} | |
catch (Exception) | |
{ | |
} | |
} | |
[DllImport("user32.dll")] | |
public static extern bool ReleaseCapture(); | |
private void SaveKeyBinder() | |
{ | |
for (int i = 1; i < 0x1b; i++) | |
{ | |
string name = "KeyBindInput" + i; | |
this.LauncherKey.SetValue(name, this.GetTextBoxTextByName(name), RegistryValueKind.String); | |
name = "KeyBindBox" + i; | |
this.LauncherKey.SetValue(name, this.GetTextBoxTextByName(name), RegistryValueKind.String); | |
name = "KeyBinderCB" + i; | |
if (this.GetCheckBoxCheckedByName(name)) | |
{ | |
this.LauncherKey.SetValue(name, "1", RegistryValueKind.String); | |
} | |
else | |
{ | |
this.LauncherKey.SetValue(name, "0", RegistryValueKind.String); | |
} | |
} | |
if (this.GetCheckBoxCheckedByName("SimpleKB")) | |
{ | |
this.LauncherKey.SetValue("SimpleKB", "1", RegistryValueKind.String); | |
} | |
else | |
{ | |
this.LauncherKey.SetValue("SimpleKB", "0", RegistryValueKind.String); | |
} | |
if (this.GetCheckBoxCheckedByName("DisableKB")) | |
{ | |
this.LauncherKey.SetValue("DisableKB", "1", RegistryValueKind.String); | |
} | |
else | |
{ | |
this.LauncherKey.SetValue("DisableKB", "0", RegistryValueKind.String); | |
} | |
} | |
private void SavePassword_CheckedChanged(object sender, EventArgs e) | |
{ | |
if (this.SavePassword.Checked) | |
{ | |
this.LauncherKey.SetValue("Password", this.Password.Text, RegistryValueKind.String); | |
this.LauncherKey.SetValue("SavePassword", "1", RegistryValueKind.String); | |
} | |
else | |
{ | |
this.LauncherKey.SetValue("Password", "", RegistryValueKind.String); | |
this.LauncherKey.SetValue("SavePassword", "0", RegistryValueKind.String); | |
} | |
} | |
[DllImport("user32.dll")] | |
public static extern int SendMessage(IntPtr hWnd, int Msg, int wParam, int lParam); | |
private void SendToServer(string query) | |
{ | |
Thread.Sleep((int) (this.UserPing * 5)); | |
if ((this.MySocket != null) && this.MySocket.Connected) | |
{ | |
try | |
{ | |
query = "client:" + query; | |
byte[] bytes = Encoding.ASCII.GetBytes(query.ToCharArray()); | |
this.MySocket.Send(bytes, bytes.Length, SocketFlags.None); | |
} | |
catch (Exception) | |
{ | |
this.ShowError("Error", "Dogodila se greška tokom slanja podataka na server!"); | |
} | |
} | |
} | |
private void SendToServerWOD(string query) | |
{ | |
if ((this.MySocket != null) && this.MySocket.Connected) | |
{ | |
try | |
{ | |
query = "client:" + query; | |
byte[] bytes = Encoding.ASCII.GetBytes(query.ToCharArray()); | |
this.MySocket.Send(bytes, bytes.Length, SocketFlags.None); | |
} | |
catch (Exception) | |
{ | |
this.ShowError("Error", "Dogodila se greška tokom slanja podataka na server!"); | |
} | |
} | |
} | |
private void SetCheckBoxCheckedByName(string cbname, bool check) | |
{ | |
foreach (Control control in this.KeyBinderPanel.Controls) | |
{ | |
if ((control.GetType().ToString() == "System.Windows.Forms.CheckBox") && (cbname == control.Name)) | |
{ | |
((CheckBox) control).Checked = check; | |
} | |
} | |
} | |
private void SetErrorDesc(string text = "Text") | |
{ | |
try | |
{ | |
if (base.InvokeRequired) | |
{ | |
base.Invoke(new Action<string>(this.SetErrorDesc), new object[] { text }); | |
} | |
else | |
{ | |
this.ErrorBox.ErrorDesc.Text = text; | |
} | |
} | |
catch | |
{ | |
} | |
} | |
[DllImport("USER32.DLL")] | |
public static extern bool SetForegroundWindow(IntPtr hWnd); | |
private void SetTextBoxTextByName(string tbname, string tbinput) | |
{ | |
foreach (Control control in this.KeyBinderPanel.Controls) | |
{ | |
if ((control.GetType().ToString() == "System.Windows.Forms.TextBox") && (tbname == control.Name)) | |
{ | |
control.Text = tbinput; | |
} | |
} | |
} | |
public void SetupRecieveCallback(Socket sock) | |
{ | |
try | |
{ | |
AsyncCallback callback = new AsyncCallback(this.OnRecievedData); | |
sock.BeginReceive(this.MyBuffer, 0, this.MyBuffer.Length, SocketFlags.None, callback, sock); | |
} | |
catch (Exception exception) | |
{ | |
this.ShowError("Dogodila se greška tokom primanja podataka!", exception.Message); | |
} | |
} | |
public void SetUserPing() | |
{ | |
Ping ping = new Ping(); | |
string hostNameOrAddress = "noobot.info"; | |
byte[] buffer = new byte[0x20]; | |
int timeout = 0x3e8; | |
PingOptions options = new PingOptions(); | |
try | |
{ | |
PingReply reply = ping.Send(hostNameOrAddress, timeout, buffer, options); | |
if (reply.Status == IPStatus.Success) | |
{ | |
this.UserPing = (int) reply.RoundtripTime; | |
if (this.UserPing > 100) | |
{ | |
this.UserPing = 100; | |
} | |
} | |
else | |
{ | |
this.UserPing = 100; | |
} | |
} | |
catch | |
{ | |
this.UserPing = 100; | |
} | |
} | |
private void ShowBan(string banname, string banreason, string bannedby, string bandate, string bannedip) | |
{ | |
try | |
{ | |
if (base.InvokeRequired) | |
{ | |
base.Invoke(new Action<string, string, string, string, string>(this.ShowBan), new object[] { banname, banreason, bannedby, bandate, bannedip }); | |
} | |
else | |
{ | |
this.BanBox.BanName.Text = banname; | |
this.BanBox.BanReason.Text = banreason; | |
this.BanBox.BannedBy.Text = bannedby; | |
this.BanBox.BanDate.Text = bandate; | |
this.BanBox.BannedIP.Text = bannedip; | |
this.BanBox.Show(); | |
} | |
} | |
catch | |
{ | |
} | |
} | |
private void ShowError(string title = "Error", string text = "Text") | |
{ | |
try | |
{ | |
if (base.InvokeRequired) | |
{ | |
base.Invoke(new Action<string, string>(this.ShowError), new object[] { title, text }); | |
} | |
else | |
{ | |
this.ErrorBox.ErrorTitle.Text = title; | |
this.ErrorBox.ErrorDesc.Text = text; | |
this.ErrorBox.Show(); | |
} | |
} | |
catch | |
{ | |
} | |
} | |
private void ShowInfo(string title = "InfoBox - Obaveštenja", string text = "Text") | |
{ | |
try | |
{ | |
if (base.InvokeRequired) | |
{ | |
base.Invoke(new Action<string, string>(this.ShowInfo), new object[] { title, text }); | |
} | |
else | |
{ | |
this.InfoBox.InfoTitle.Text = title; | |
this.InfoBox.InfoDesc.Text = text; | |
this.InfoBox.Show(); | |
} | |
} | |
catch | |
{ | |
} | |
} | |
public void SocketConnection() | |
{ | |
try | |
{ | |
if ((this.MySocket != null) && this.MySocket.Connected) | |
{ | |
this.MySocket.Shutdown(SocketShutdown.Both); | |
Thread.Sleep(10); | |
this.MySocket.Close(); | |
} | |
this.MySocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); | |
IPEndPoint remoteEP = new IPEndPoint(Dns.GetHostAddresses("noobot.info")[0], 0x244f); | |
this.MySocket.Blocking = false; | |
AsyncCallback callback = new AsyncCallback(this.OnConnect); | |
this.MySocket.BeginConnect(remoteEP, callback, this.MySocket); | |
} | |
catch (Exception exception) | |
{ | |
this.ShowError("Povezivanje na server nije uspelo!", exception.Message); | |
} | |
} | |
private void StatusMsg(string text = "Statusna linija") | |
{ | |
if (base.InvokeRequired) | |
{ | |
base.Invoke(new Action<string>(this.StatusMsg), new object[] { text }); | |
} | |
else | |
{ | |
this.label1.Text = text; | |
} | |
} | |
private void textBox1_TextChanged(object sender, EventArgs e) | |
{ | |
string text = this.Ime.Text; | |
if (text.Trim() == "") | |
{ | |
this.ValidName = false; | |
} | |
else if (text.Length > 0x18) | |
{ | |
this.ValidName = false; | |
this.Ime.ForeColor = System.Drawing.Color.Red; | |
} | |
else | |
{ | |
int num; | |
if (text.Length > 2) | |
{ | |
this.ValidName = true; | |
for (num = 2; num < text.Length; num++) | |
{ | |
char ch = char.ToLower(text[num - 2]); | |
char ch2 = char.ToLower(text[num - 1]); | |
char ch3 = char.ToLower(text[num]); | |
if ((ch == ch2) && (ch == ch3)) | |
{ | |
this.ValidName = false; | |
this.Ime.ForeColor = System.Drawing.Color.Red; | |
break; | |
} | |
if ((text[num - 1] == '_') && ((text[num] < 'A') || (text[num] > 'Z'))) | |
{ | |
this.ValidName = false; | |
this.Ime.ForeColor = System.Drawing.Color.Red; | |
break; | |
} | |
} | |
if (!this.ValidName) | |
{ | |
return; | |
} | |
} | |
if (char.IsLower(text[0])) | |
{ | |
this.ValidName = false; | |
this.Ime.ForeColor = System.Drawing.Color.Red; | |
} | |
else | |
{ | |
for (num = 0; num < text.Length; num++) | |
{ | |
if ((((text[num] >= 'a') && (text[num] <= 'z')) || ((text[num] >= 'A') && (text[num] <= 'Z'))) || (text[num] == '_')) | |
{ | |
this.ValidName = true; | |
this.Ime.ForeColor = System.Drawing.Color.FromArgb(0x33, 0x99, 0xff); | |
} | |
else | |
{ | |
this.ValidName = false; | |
this.Ime.ForeColor = System.Drawing.Color.Red; | |
break; | |
} | |
} | |
if (this.ValidName) | |
{ | |
this.myKey.SetValue("PlayerName", this.Ime.Text, RegistryValueKind.String); | |
} | |
} | |
} | |
} | |
private void textBox2_TextChanged(object sender, EventArgs e) | |
{ | |
string text = this.Password.Text; | |
this.ValidPass = false; | |
for (int i = 0; i < text.Length; i++) | |
{ | |
if ((((((text[i] >= 'a') && (text[i] <= 'z')) || ((text[i] >= 'A') && (text[i] <= 'Z'))) || (((text[i] >= '0') && (text[i] <= '9')) || ((text[i] == '-') || (text[i] == '.')))) || (text[i] == ',')) || (text[i] == '!')) | |
{ | |
this.ValidPass = true; | |
this.Password.ForeColor = System.Drawing.Color.FromArgb(0x33, 0x99, 0xff); | |
if (this.SavePassword.Checked) | |
{ | |
this.LauncherKey.SetValue("Password", this.Password.Text, RegistryValueKind.String); | |
} | |
else | |
{ | |
this.LauncherKey.SetValue("Password", "", RegistryValueKind.String); | |
} | |
} | |
else | |
{ | |
this.ValidPass = false; | |
this.Password.ForeColor = System.Drawing.Color.Red; | |
break; | |
} | |
} | |
} | |
private void timer_Tick(object sender, EventArgs e) | |
{ | |
if (Process.GetProcessesByName("gta_sa").Length > 0) | |
{ | |
this.InGame = true; | |
} | |
else if (this.InGame) | |
{ | |
this.InGame = false; | |
this.InGameNB = false; | |
this.ObjectsRemoved = 0; | |
this.StatusMsg(this.GTAPath + @"\samp.exe"); | |
} | |
if (this.ServerResponded > 0) | |
{ | |
this.ServerResponded--; | |
} | |
if (this.PwBanTimer > 0) | |
{ | |
this.PwBanTimer--; | |
this.SetErrorDesc("Više puta ste uneli pogrešan password.\nMoćićete ponovo da se konektujete za " + this.PwBanTimer + " sekundi."); | |
if ((this.PwBanTimer == 0) && (this.ErrorBox.ErrorTitle.Text == "Connection Refused")) | |
{ | |
this.ErrorBox.Hide(); | |
} | |
this.LauncherKey.SetValue("PasswordBanTimer", this.PwBanTimer, RegistryValueKind.String); | |
} | |
if (this.ButtonTimer > 0) | |
{ | |
this.ButtonTimer--; | |
} | |
else if (!this.button1.Enabled) | |
{ | |
this.button1.Enabled = true; | |
this.button1.BackgroundImage = Resources.Connect; | |
} | |
if (this.TXDDownloadTimer > 1) | |
{ | |
this.TXDDownloadTimer--; | |
if (this.TXDDownloadTimer == 1) | |
{ | |
this.TXDDownload(); | |
} | |
} | |
if (this.QueryTimer > 0) | |
{ | |
this.QueryTimer--; | |
} | |
else if ((this.GetActiveWindowTitle() == "NooBot ReBorn Launcher") && this.IsUserAlive()) | |
{ | |
if (this.InitialConnectionTimer > 1) | |
{ | |
this.InitialConnection(); | |
this.InitialConnectionTimer = 0; | |
} | |
else | |
{ | |
this.UpdateServerInfo(); | |
} | |
} | |
if (this.RefreshTimer > 0) | |
{ | |
this.RefreshTimer--; | |
} | |
else if (this.RefreshTimer == 0) | |
{ | |
this.button4.BackgroundImage = Resources.Refresh; | |
this.button4.Enabled = true; | |
} | |
if (this.InitialConnectionTimer > 1) | |
{ | |
this.InitialConnectionTimer--; | |
} | |
else if (this.InitialConnectionTimer == 1) | |
{ | |
if (this.IsUserAlive()) | |
{ | |
this.InitialConnection(); | |
this.InitialConnectionTimer = 0; | |
} | |
else | |
{ | |
this.InitialConnectionTimer = 10; | |
} | |
} | |
if (this.InGameNB) | |
{ | |
if (this.MySocket.Connected) | |
{ | |
if (!this.IsUserAlive() && (this.ReconnectSocket == 0)) | |
{ | |
this.MySocket.Shutdown(SocketShutdown.Both); | |
Thread.Sleep(10); | |
this.MySocket.Close(); | |
this.ReconnectSocket = 3; | |
this.StatusMsg("Client: Izgubili ste konekciju sa serverom..."); | |
this.LostConnection = 0; | |
} | |
} | |
else if (this.ReconnectSocket == 0) | |
{ | |
this.MySocket.Shutdown(SocketShutdown.Both); | |
Thread.Sleep(10); | |
this.MySocket.Close(); | |
this.ReconnectSocket = 3; | |
this.StatusMsg("Client: Izgubili ste konekciju sa serverom..."); | |
this.LostConnection = 0; | |
} | |
} | |
if (this.ReconnectSocket > 1) | |
{ | |
this.ReconnectSocket--; | |
if (this.ReconnectSocket == 1) | |
{ | |
this.ReconnectSocket = 3; | |
if (this.InGameNB) | |
{ | |
if (!this.MySocket.Connected) | |
{ | |
if (this.IsUserAlive()) | |
{ | |
this.StatusMsg("Client: Pokušavam ponovno uspostavljanje konekcije sa serverom..."); | |
this.SocketConnection(); | |
this.SendToServer(string.Concat(new object[] { "connect:", this.Ime.Text, ":", this.Password.Text, ":", this.UserMac, ":", this.Version, ":", this.ObjectsRemoved, ":", this.HasCleo, ":", this.HasModSA })); | |
} | |
} | |
else | |
{ | |
this.ReconnectSocket = 0; | |
} | |
} | |
else | |
{ | |
this.ReconnectSocket = 0; | |
} | |
} | |
} | |
} | |
private void TXDDownload() | |
{ | |
if (this.UserIsOnLine) | |
{ | |
WebClient client; | |
byte[] buffer = new byte[0x80]; | |
int count = 0; | |
try | |
{ | |
HttpWebRequest request = (HttpWebRequest) WebRequest.Create("http://noobot.info/NBLauncher/TXD/Version.txt"); | |
HttpWebResponse response = (HttpWebResponse) request.GetResponse(); | |
count = response.GetResponseStream().Read(buffer, 0, buffer.Length); | |
if (count != 0) | |
{ | |
this.OnLineTXDVersion = Encoding.ASCII.GetString(buffer, 0, count); | |
} | |
} | |
catch | |
{ | |
} | |
try | |
{ | |
string path = this.GTAPath + @"\NB Test File.txt"; | |
System.IO.File.Create(path).Dispose(); | |
System.IO.File.Delete(path); | |
if (!((this.TXDVersion == this.OnLineTXDVersion) && System.IO.File.Exists(this.GTAPath + @"\models\txd\nb.txd"))) | |
{ | |
client = new WebClient(); | |
client.DownloadFileCompleted += new AsyncCompletedEventHandler(this.Completed); | |
client.DownloadFileAsync(new Uri("http://noobot.info/NBLauncher/TXD/nb.txd"), this.GTAPath + @"\models\txd\nb.txd"); | |
} | |
} | |
catch (UnauthorizedAccessException) | |
{ | |
string str2 = Environment.ExpandEnvironmentVariables("%LocalAppData%") + @"\VirtualStore" + this.GTAPath.Substring(2, this.GTAPath.Length - 2) + @"\models\txd"; | |
if (!Directory.Exists(str2)) | |
{ | |
Directory.CreateDirectory(str2); | |
} | |
if (!((this.TXDVersion == this.OnLineTXDVersion) && System.IO.File.Exists(str2 + @"\nb.txd"))) | |
{ | |
client = new WebClient(); | |
client.DownloadFileCompleted += new AsyncCompletedEventHandler(this.Completed); | |
client.DownloadFileAsync(new Uri("http://noobot.info/NBLauncher/TXD/nb.txd"), str2 + @"\nb.txd"); | |
} | |
} | |
} | |
} | |
private void UpdateServerInfo() | |
{ | |
this.QueryTimer = 30; | |
try | |
{ | |
this.button4.BackgroundImage = Resources.Refreshing; | |
this.button4.Enabled = false; | |
this.RefreshTimer = 1; | |
this.sQuery.Send('i'); | |
int count = 0; | |
count = this.sQuery.Receive(); | |
string[] strArray = this.sQuery.Store(count); | |
this.sQuery.Send('p'); | |
int num2 = 0; | |
num2 = this.sQuery.Receive(); | |
string[] strArray2 = this.sQuery.Store(num2); | |
if (count > 0) | |
{ | |
this.ServerPassworded = Convert.ToInt32(strArray[0]); | |
} | |
if (count > 2) | |
{ | |
this.linkLabel1.Text = strArray[1] + "/" + strArray[2]; | |
} | |
if (num2 > 0) | |
{ | |
this.linkLabel2.Text = strArray2[0] + "ms"; | |
this.UserPing = Convert.ToInt32(strArray2[0]); | |
if (this.UserPing > 100) | |
{ | |
this.UserPing = 100; | |
} | |
} | |
if (count > 5) | |
{ | |
this.linkLabel3.Text = strArray[5]; | |
} | |
if (count > 4) | |
{ | |
this.linkLabel5.Text = strArray[4]; | |
} | |
} | |
catch | |
{ | |
} | |
} | |
protected override void WndProc(ref Message m) | |
{ | |
if (m.Msg == 0x84) | |
{ | |
base.WndProc(ref m); | |
if (((int) m.Result) == 1) | |
{ | |
m.Result = (IntPtr) 2; | |
} | |
} | |
else if (m.Msg == 0xa3) | |
{ | |
m.Result = IntPtr.Zero; | |
} | |
else | |
{ | |
base.WndProc(ref m); | |
} | |
} | |
protected override System.Windows.Forms.CreateParams CreateParams | |
{ | |
get | |
{ | |
System.Windows.Forms.CreateParams createParams = base.CreateParams; | |
createParams.Style |= 0x20000; | |
createParams.ClassStyle |= 8; | |
return createParams; | |
} | |
} | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment