mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2012
Posts: 2
P
Phox Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
P
Joined: Feb 2012
Posts: 2
So I have a script that announces what I'm playing on my radio broadcast, but i want the text it displays to have color.

This is the script:

Code:
//
//
//SAM Now Playing mIRC Script
//
//
alias getsong {
  unset %playing
  unset %song
  set %playing $read(C:\Program Files (x86)\mIRC\playing.html, 286)
  set %song $remove(%playing,<td>,<font size="2" color="#003366">,<small>,<span id="currently-playing-title">,</span>,</small>,</font>,</td>)
  /msg $chan ^C3 Phox Radio Now Playing: %song
}
on *:TEXT:!nowplaying:*:{
  getsong
}

menu channel {
  Now Broadcasting:getsong
}



How can I make the text ( Now Broadcasting:getsong part) have color?

Thanks

Last edited by Phox; 10/02/12 05:15 AM.
Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
Press ctrl+k in the script editor before the text you wish to have color (in the msg command), then type the color you wish it to have. Press ctrl+k again where you wish the color to end.

Last edited by Loki12583; 10/02/12 04:36 AM.
Joined: Feb 2012
Posts: 2
P
Phox Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
P
Joined: Feb 2012
Posts: 2
Thank you so much! gosh that was so easy... and to think i spent about an hour on google trying to figure it out.


Link Copied to Clipboard