mIRC Homepage
Posted By: Phox Need to add color to text in a script. (solved) - 10/02/12 04:10 AM
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
Posted By: Loki12583 Re: Need to add color to text in a script. - 10/02/12 04:33 AM
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.
Posted By: Phox Re: Need to add color to text in a script. - 10/02/12 05:15 AM
Thank you so much! gosh that was so easy... and to think i spent about an hour on google trying to figure it out.
© mIRC Discussion Forums