mIRC Homepage

Font Colour Setup

Posted By: JuanAm

Font Colour Setup - 24/11/14 09:15 PM

I want to set the text font to write at channel in the bold orange by default, without having to do each line with Control K7 and Control bold
How is it done?
Posted By: Masoud

Re: Font Colour Setup - 24/11/14 10:39 PM

Code:
/help ON INPUT
Posted By: Nillen

Re: Font Colour Setup - 24/11/14 11:56 PM

Here's how I would do it.
Code:
on *:input:#:  { emsg # $1- | halt }
alias emsg msg $1 7 $+ $2-
For all your other scripts, you will need to update this to not use "msg #" but "emsg #" instead.
Posted By: JuanAm

Re: Font Colour Setup - 25/11/14 12:17 AM

Originally Posted By: Nillen
Here's how I would do it.
Code:
on *:input:#:  { emsg # $1- | halt }
alias emsg msg $1 7 $+ $2-
For all your other scripts, you will need to update this to not use "msg #" but "emsg #" instead.


I put this code in one remote, and modified this line the another remote:
Code:
emsg # $effect(%nick) 7 $2-  


Results:
Quote:
<pepito> 763.11136`94.131 Peter 73.11136`94.111 7 hola estas?? 
<pepito> 7Peter hola estas??

Repeats the message


Posted By: Nillen

Re: Font Colour Setup - 25/11/14 01:06 AM

What if you remove the code and just use the built-in color feature? - View>Colors, View>Fonts
Posted By: JuanAm

Re: Font Colour Setup - 25/11/14 01:16 AM

Originally Posted By: Nillen
What if you remove the code and just use the built-in color feature? - View>Colors, View>Fonts


That he had already tried, but changing Owntext and Normal text to orange color, I see what I write in orange, but other users still see me in black. Also do not see me in bold, when I select the Select Font style.
Posted By: Nillen

Re: Font Colour Setup - 25/11/14 02:11 AM

Ok, try this. Create a new remote file and paste this code:
Code:
on &*:input:#:  { 
  if ($left($1,1) == /) $1-
  else {
    if (!$halted) { 
      emsg # $1- 
      halt
    }
  }
}
alias emsg msg $1 7 $+ $2-
Make sure that this is in the LAST order all the time, otherwise you will send two messages when using another on input event.
Posted By: JuanAm

Re: Font Colour Setup - 25/11/14 04:16 AM

Originally Posted By: Nillen
Ok, try this. Create a new remote file and paste this code:
Code:
on &*:input:#:  { 
  if ($left($1,1) == /) $1-
  else {
    if (!$halted) { 
      emsg # $1- 
      halt
    }
  }
}
alias emsg msg $1 7 $+ $2-

Make sure that this is in the LAST order all the time, otherwise you will send two messages when using another on input event.


Works perfectly! Thank you smile
© 2021 mIRC Discussion Forums