Advertisement
Guest User

Untitled

a guest
Jan 25th, 2014
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.45 KB | None | 0 0
  1. Set o = CreateObject("MSXML2.XMLHTTP")
  2. o.open "GET", "http://www.randominsults.net/", False
  3. o.send
  4. 'MsgBox( o.responseText )
  5.  
  6. search = "<strong><i>"
  7. endsearch = "</i></strong>"
  8. linenum = InStr( o.responseText, search )
  9. lineend = InStr( o.responseText, endsearch )
  10. result = Mid( o.responseText, linenum + Len(search), lineend - linenum - Len(search) )
  11.  
  12. 'MsgBox( result )
  13.  
  14. Set WshShell = CreateObject("WScript.Shell")
  15. WshShell.SendKeys( result )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement