Advertisement
Meliodas0_0

Untitled

Oct 9th, 2019
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. string textbox = textbox.Text //Replace "textbox" with your textbox name
  2.  
  3. try
  4. {
  5. WebClient WC = new WebClient();
  6. string tb_contents = WC.DownloadString(textbox);
  7.  
  8. WC.DownloadString(textbox);
  9. if (!tb_contents.Contains("html>")) //If link contains raw text
  10. {
  11. api.SendLimitedLuaScript(tb_contents); //Executes text in the link
  12. }
  13. else //If link doesn't contain raw text
  14. MessageBox.Show("The link didn't raw text.", "title");
  15. }
  16. catch //If link is invalid
  17. {
  18. Messagebox.Show("The text wasn't a valid link.", "title");
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement