7889

Executor Tutorial (1)

Jul 28th, 2023 (edited)
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.10 KB | Gaming | 0 0
  1. -- listbox code
  2. fastColoredTextBox1.Text = File.ReadAllText($"./Scripts/{listBox1.SelectedItem}");
  3.  
  4. -- refresh code
  5.  
  6. listBox1.Items.Clear();//Clear Items in the LuaScriptList
  7. Functions.PopulateListBox(listBox1, "./Scripts", "*.txt");
  8. Functions.PopulateListBox(listBox1, "./Scripts", "*.lua");
  9.  
  10.  
  11. -- put into functions
  12.  
  13. public static void PopulateListBox(ListBox lsb, string Folder, string FileType)
  14.         {
  15.             DirectoryInfo dinfo = new DirectoryInfo(Folder);
  16.             FileInfo[] Files = dinfo.GetFiles(FileType);
  17.             foreach (FileInfo file in Files)
  18.             {
  19.                 lsb.Items.Add(file.Name);
  20.             }
  21.         }
  22.  
  23. -- save dialog button:
  24.  
  25. SaveFileDialog sfd = new SaveFileDialog();
  26.             sfd.Filter = "Txt Files (*.txt)|*.txt|Lua Files (*.lua)|*.lua|All Files (*.*)|*.*";
  27.             if (sfd.ShowDialog() == DialogResult.OK)
  28.             {
  29.                 Stream s = sfd.OpenFile();
  30.                 StreamWriter sw = new StreamWriter(s);
  31.                 sw.Write(fastColoredtextBox.Text);
  32.                 sw.Close();
  33.             }
  34.  
  35. ------------------------------------------------------------
  36. Mouse Move
  37. -----------------------------------------------------------
  38. if (e.Button == MouseButtons.Left)
  39.             {
  40.                 this.Left += e.X - lastPoint.X;
  41.                 this.Top += e.Y - lastPoint.Y;
  42.             }
  43.  
  44. ------------------------------------------------------------
  45. Mouse Down
  46. -----------------------------------------------------------
  47.  
  48. lastPoint = new Point(e.X, e.Y);
  49.  
  50.  
  51.  
  52. ------------------------------------------------------------
  53. Declare variable
  54. -----------------------------------------------------------
  55. Point lastPoint;
  56.  
  57. easyexploits api code
  58.  
  59.  
  60. EasyExploits.Module module = new EasyExploits.Module();
  61.  
  62.  
  63.  
  64. execute button code
  65.  
  66.  
  67. module.ExecuteScript(fastColoredTextBox1.Text);
  68.  
  69.  
  70.  
  71. Downloads 👇
  72.  
  73. FastColoredTextBox.dll
  74.  
  75. https://mega.nz/file/tSsG1B4A#pEEVoG_3tXPkWo5wgqPGy2TaouK-p9EI9WHlhVOmHZI
  76.  
  77. EasyExploits.dll
  78.  
  79. https://mega.nz/file/kCElHDIA#YLt3Llws8X8DP5T7m5e6NScyaWZAwayUlGNw7Tq_oN8
Add Comment
Please, Sign In to add comment