mIRC Home    About    Download    Register    News    Help

Print Thread
Need to add color to text in a script. (solved) #236189 10/02/12 04:10 AM
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.
Re: Need to add color to text in a script. [Re: Phox] #236190 10/02/12 04:33 AM
Joined: Jan 2004
Posts: 1,286
L
Loki12583 Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,286
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.
Re: Need to add color to text in a script. [Re: Loki12583] #236191 10/02/12 05:15 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.