|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
No I meant 160.
//echo -a $chr(160) Hello $chr(160) World $chr(160) !
|
|
|
|
Joined: Aug 2007
Posts: 11
Pikka bird
|
OP
Pikka bird
Joined: Aug 2007
Posts: 11 |
Thnx...
160 produced wrong ascii. The one that worked was 254!!! It could be related to my language settings.
Last edited by pif___; 05/08/07 03:06 PM.
|
|
|
|
Joined: Dec 2002
Posts: 503
Fjord artisan
|
Fjord artisan
Joined: Dec 2002
Posts: 503 |
And the font you are using..
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
For a true space, you should use $chr(32), as any other ascii value might return something that doesn't look like a space based on the font being used.
One work around for the multiple spacing, for output messages, is to use something like <bold>space<bold>space<bold>space<bold> the bold tags will prevent mIRC from removing the extra spaces, since the spaces aren't literally side-by-side.
The above example creates what looks like 3 spaces, and will work no matter what font you're using.
|
|
|
|
Joined: Aug 2007
Posts: 11
Pikka bird
|
OP
Pikka bird
Joined: Aug 2007
Posts: 11 |
For a true space, you should use $chr(32), as any other ascii value might return something that doesn't look like a space based on the font being used.
One work around for the multiple spacing, for output messages, is to use something like <bold>space<bold>space<bold>space<bold> the bold tags will prevent mIRC from removing the extra spaces, since the spaces aren't literally side-by-side.
The above example creates what looks like 3 spaces, and will work no matter what font you're using. Thnx your trick did the job
Last edited by pif___; 06/08/07 10:07 AM.
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,330 |
Close, but you didn't remove the <>'s. Besides, if they are one, then you can't make different colors for each kind of news item, which was the original request. What are you talking about? Im copying from PIF's last post has I quoted it and made it smaller, I didnt read anything else, + making new colors within one line of code for every word is easier then saying pie. It is like this
[NICK] <BBC> ............... [NICK] <CNN> ...............
His original request was to color the text when what's shown above is said in the channel. You weren't removing the <>'s from that text. You just added ||'s to it. That's what I meant. As far as the colors go, he originally requested having each news source using a different color format, which isn't that easy with a single line (BBC being one set of colors, CNN another, etc).
Invision Support #Invision on irc.irchighway.net
|
|
|
|
Joined: Aug 2005
Posts: 1,052
Hoopy frood
|
Hoopy frood
Joined: Aug 2005
Posts: 1,052 |
Close, but you didn't remove the <>'s. Besides, if they are one, then you can't make different colors for each kind of news item, which was the original request. What are you talking about? Im copying from PIF's last post has I quoted it and made it smaller, I didnt read anything else, + making new colors within one line of code for every word is easier then saying pie. It is like this
[NICK] <BBC> ............... [NICK] <CNN> ...............
His original request was to color the text when what's shown above is said in the channel. You weren't removing the <>'s from that text. You just added ||'s to it. That's what I meant. As far as the colors go, he originally requested having each news source using a different color format, which isn't that easy with a single line (BBC being one set of colors, CNN another, etc). Still easy...
on ^*:TEXT:*:#:{
if ($nick == Elder) && (BBC isin $1) || (CNN isin $1) { echo # $+(03<,$nick,>) $replace($1-,<CNN>,$+(4,|CNN|,5),<BBC>,$+(11,|BBC|,5)) | halt }
}
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,330 |
Easy, but hard to see easily... especially for a newer scripter. It also makes it more of a pain to edit later. Especially if you are doing more than a couple news outlets as well as having more colors than just the label (as was requested later in the thread).
I never said it wasn't possible. Just that it was easier to just have it on separate lines if they were going to be formatted differently.
Invision Support #Invision on irc.irchighway.net
|
|
|
|
Joined: Aug 2005
Posts: 1,052
Hoopy frood
|
Hoopy frood
Joined: Aug 2005
Posts: 1,052 |
Easy, but hard to see easily... especially for a newer scripter. It also makes it more of a pain to edit later. Especially if you are doing more than a couple news outlets as well as having more colors than just the label (as was requested later in the thread).
I never said it wasn't possible. Just that it was easier to just have it on separate lines if they were going to be formatted differently. I know lol im aloud to have fun, you should already know me by now :P There's ton's of possibilities!
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
|
|
|
|
|
|
|
|