Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MOVABLE FORM
- public const int WM_NCLBUTTONDOWN = 0xA1;
- public const int HT_CAPTION = 0x2;
- [DllImport("user32.dll")]
- public static extern int SendMessage(IntPtr hWnd, int Msg, int wParam, int lParam);
- [DllImport("user32.dll")]
- public static extern bool ReleaseCapture();
- private void FormMoveable_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
- {
- if (e.Button == MouseButtons.Left)
- {
- ReleaseCapture();
- SendMessage(Handle, WM_NCLBUTTONDOWN, HT_CAPTION, 0);
- }
- }
- LOAD FILE
- //wassup
- OpenFileDialog opendialogfile = new OpenFileDialog();
- opendialogfile.Filter = "Lua File (*.lua)|*.lua|Text File (*.txt)|*.txt";
- opendialogfile.FilterIndex = 2;
- opendialogfile.RestoreDirectory = true;
- if (opendialogfile.ShowDialog() != DialogResult.OK)
- return;
- try
- {
- fastColoredTextBox1.Text = "";
- System.IO.Stream stream;
- if ((stream = opendialogfile.OpenFile()) == null)
- return;
- using (stream)
- this.fastColoredTextBox1.Text = System.IO.File.ReadAllText(opendialogfile.FileName);
- }
- catch (Exception)
- {
- int num = (int)MessageBox.Show("An unexpected error has occured", "OOF!", MessageBoxButtons.OK, MessageBoxIcon.Information);
- }
- SAVE FILE
- SaveFileDialog sfd = new SaveFileDialog();
- sfd.Filter = "Txt Files (*.txt)|*.txt|Lua Files (*.lua)|*.lua|All Files (*.*)|*.*";
- if (sfd.ShowDialog() == DialogResult.OK)
- {
- Stream s = sfd.OpenFile();
- StreamWriter sw = new StreamWriter(s);
- sw.Write(fastColoredTextBox1.Text);
- sw.Close();
- }
- EXECUTE SCRIPT
- string luac = fastColoredTextBox1.Text;
- api.SendLimitedLuaScript(luac);
- INJECT
- string luac = fastColoredTextBox1.Text;
- api.SendLimitedLuaScript(luac);
- USE API WRD (IF U HAVE IT IN REFERENCES)
- using WeAreDevs_API;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement