Advertisement
Guest User

asdfghjkl

a guest
Apr 24th, 2014
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. 'On Error Resume Next
  2. Set xmlDoc = CreateObject("Msxml2.XMLHTTP.6.0")
  3. Dim cur_playing
  4.  
  5. For i = 1 to 10
  6. i=1
  7.  
  8. xmlDoc.Open "GET","http://localhost:8080/requests/status.xml", false, "username", "test"
  9. xmlDoc.send()
  10.  
  11. cur_playing = Null
  12. cur_playing = xmlDoc.responseXML.selectNodes("root/information/category/info[@name = 'now_playing']").text
  13.  
  14. Set objFSO=CreateObject("Scripting.FileSystemObject")
  15. Set objFile = objFSO.CreateTextFile("nowplaying.txt",2) 'txt file must be ANSI
  16. objFile.Write cur_playing
  17. 'objFile.Write cur_playing & vbCrLf
  18. objFile.Close
  19.  
  20. WScript.Sleep 5000
  21.  
  22. Next
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement