Advertisement
Meliodas0_0

monaco save file

Aug 4th, 2019
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. HtmlDocument document = this.webBrowser1.Document;
  2. string scriptName = "GetText";
  3. object[] array = new string[0];
  4. object[] array2 = array;
  5. object[] args = array2;
  6. object obj = document.InvokeScript(scriptName, args);
  7. string text = obj.ToString();
  8. using (SaveFileDialog saveFileDialog = new SaveFileDialog())
  9. {
  10. saveFileDialog.Filter = "Lua Script (*.lua)|*.lua|Text File (*.txt)|*.txt|All Files (*.*)|*.*";
  11. saveFileDialog.Title = "your exploit name Save file.";
  12. saveFileDialog.ShowDialog();
  13. try
  14. {
  15. string fileName = saveFileDialog.FileName;
  16. string text2 = text;
  17. string[] contents = new string[]
  18. {
  19. text2.ToString(),
  20. ""
  21. };
  22. File.WriteAllLines(saveFileDialog.FileName, contents);
  23. }
  24. catch (Exception)
  25. {
  26. }
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement