Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HtmlDocument document = this.webBrowser1.Document;
- string scriptName = "GetText";
- object[] array = new string[0];
- object[] array2 = array;
- object[] args = array2;
- object obj = document.InvokeScript(scriptName, args);
- string text = obj.ToString();
- using (SaveFileDialog saveFileDialog = new SaveFileDialog())
- {
- saveFileDialog.Filter = "Lua Script (*.lua)|*.lua|Text File (*.txt)|*.txt|All Files (*.*)|*.*";
- saveFileDialog.Title = "your exploit name Save file.";
- saveFileDialog.ShowDialog();
- try
- {
- string fileName = saveFileDialog.FileName;
- string text2 = text;
- string[] contents = new string[]
- {
- text2.ToString(),
- ""
- };
- File.WriteAllLines(saveFileDialog.FileName, contents);
- }
- catch (Exception)
- {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement