Advertisement
Guest User

Project X code

a guest
Sep 18th, 2019
1,724
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.89 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.IO;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. using System.Windows.Forms;
  11. using WeAreDevs_API;
  12.  
  13. namespace Project_X
  14. {
  15. public partial class Form1 : Form
  16. {
  17. public Form1()
  18. {
  19. InitializeComponent();
  20. }
  21. ExploitAPI api = new ExploitAPI();
  22. private void button2_Click(object sender, EventArgs e)
  23. {
  24.  
  25. }
  26.  
  27. private void fileSystemWatcher1_Changed(object sender, System.IO.FileSystemEventArgs e)
  28. {
  29.  
  30. }
  31.  
  32. private void fastColoredTextBox1_Load(object sender, EventArgs e)
  33. {
  34.  
  35. }
  36.  
  37. private void button3_Click(object sender, EventArgs e)
  38. {
  39. //MADE BY PAREX |PEOPLE GIVING U THIS LINK IS COPY RIGHT
  40. OpenFileDialog opendialogfile = new OpenFileDialog();
  41. opendialogfile.Filter = "Lua File (*.lua)|*.lua|Text File (*.txt)|*.txt";
  42. opendialogfile.FilterIndex = 2;
  43. opendialogfile.RestoreDirectory = true;
  44. if (opendialogfile.ShowDialog() != DialogResult.OK)
  45. return;
  46. try
  47. {
  48. fastColoredTextBox1.Text = "";
  49. System.IO.Stream stream;
  50. if ((stream = opendialogfile.OpenFile()) == null)
  51. return;
  52. using (stream)
  53. this.fastColoredTextBox1.Text = System.IO.File.ReadAllText(opendialogfile.FileName);
  54. }
  55. catch (Exception ex)
  56. {
  57. int num = (int)MessageBox.Show("An unexpected error has occured", "OOF!", MessageBoxButtons.OK, MessageBoxIcon.Information);
  58.  
  59. }
  60. }
  61.  
  62. private void button4_Click(object sender, EventArgs e)
  63. {
  64. fastColoredTextBox1.Text = "";
  65. }
  66.  
  67. private void button2_Click_1(object sender, EventArgs e)
  68. {
  69. listBox1.Items.Clear();//Clear Items in the LuaScriptList
  70. Functions.PopulateListBox(listBox1, "./Scripts", "*.txt");
  71. Functions.PopulateListBox(listBox1, "./Scripts", "*.lua");
  72. }
  73.  
  74. private void button6_Click(object sender, EventArgs e)
  75. {
  76. this.WindowState = FormWindowState.Minimized;
  77. }
  78.  
  79. private void button5_Click(object sender, EventArgs e)
  80. {
  81. Application.Exit();
  82. }
  83.  
  84. private void button1_Click(object sender, EventArgs e)
  85. {
  86. string text = fastColoredTextBox1.Text;
  87. this.api.SendLuaScript(text);
  88. }
  89.  
  90. private void Form1_MouseMove(object sender, MouseEventArgs e)
  91. {
  92. if (e.Button == MouseButtons.Left)
  93. {
  94. this.Left += e.X - lastPoint.X;
  95. this.Top += e.Y - lastPoint.Y;
  96. }
  97. }
  98. Point lastPoint;
  99.  
  100.  
  101. private void Form1_MouseUp(object sender, MouseEventArgs e)
  102. {
  103. lastPoint = new Point(e.X, e.Y);
  104. }
  105.  
  106. private void listBox1_SelectedIndexChanged(object sender, EventArgs e) => fastColoredTextBox1.Text = File.ReadAllText($"./Scripts/{listBox1.SelectedItem}");
  107.  
  108. private void Form1_Load(object sender, EventArgs e)
  109. {
  110. listBox1.Items.Clear();//Clear Items in the LuaScriptList
  111. Functions.PopulateListBox(listBox1, "./Scripts", "*.txt");
  112. Functions.PopulateListBox(listBox1, "./Scripts", "*.lua");
  113. }
  114.  
  115. private void label1_Click(object sender, EventArgs e)
  116. {
  117.  
  118. }
  119.  
  120. private void label2_Click(object sender, EventArgs e)
  121. {
  122.  
  123. }
  124.  
  125. private void button7_Click(object sender, EventArgs e)
  126. {
  127. api.IsUpdated();
  128. api.LaunchExploit();
  129. }
  130. }
  131. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement