Advertisement
Aha2Y

Untitled

Aug 15th, 2011
482
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.06 KB | None | 0 0
  1. alias rpd { dialog -m rp rp }
  2.  
  3. dialog rp {
  4.   title "Now playing - RadioPayback.nl"
  5.   size -1 -1 531 208
  6.   button "Update", 1, 228 132 65 25
  7.   edit "", 2, 102 48 329 22, center
  8.   link "www.radiopayback.com", 3, 185 172 156 17
  9.   button "cancel", 4, 408 166 65 25, cancel
  10.   text "Now playing of RadioPayback.com", 5, 177 4 167 17, center
  11.   text "Dj", 6, 247 27 19 17
  12.   text "song", 7, 242 77 28 17
  13.   edit "", 8, 69 101 404 20, center
  14.   box "", 9, 47 17 456 108
  15. }
  16.  
  17. on *:dialog:rp:sclick:1:{
  18.   rp
  19.   .timer 1 0 did -ar rp 8 $gettok(%rp.temp,-2,45)
  20.   .timer 1 0 did -ar rp 2 $gettok(%rp.temp,1,45)
  21. }
  22.  
  23. Alias rp {
  24.   sockClose rp
  25.   sockOpen rp www.radiopayback.com 80
  26. }
  27. on *:SockOpen:rp: {
  28.   sockwrite -nt rp GET /shoutcast_song_title.php HTTP/1.1
  29.   sockwrite -nt rp Host: www.radiopayback.com
  30.   sockwrite -nt rp $crlf
  31. }
  32. on *:SockRead:rp: {
  33.   var %read
  34.   sockRead %read
  35.   if (*onAir* iswm %read) {
  36.     tokenize 32 %read
  37.     set %Rp.temp $replace($remove(%read,onAir=),&nowPlaying=,$chr(32) - $chr(32) )
  38.   }
  39. }
  40.  
  41. on *:sockclose:rp:{
  42.   echo -at Socket closed!
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement