mIRC Home    About    Download    Register    News    Help

Print Thread
#249326 24/11/14 09:15 PM
J
JuanAm
JuanAm
J
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?

#249329 24/11/14 10:39 PM
Joined: Mar 2010
Posts: 144
Vogon poet
Offline
Vogon poet
Joined: Mar 2010
Posts: 144
Code:
/help ON INPUT


Nothing...
#249334 24/11/14 11:56 PM
Joined: Dec 2013
Posts: 771
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 771
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.

J
JuanAm
JuanAm
J
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> 76¤3.11·13´6`9·4.13¤1 Peter 7¤3.11·13´6`9·4.11¤1 7 hola estas?? 
<pepito> 7Peter hola estas??

Repeats the message



#249336 25/11/14 01:06 AM
Joined: Dec 2013
Posts: 771
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 771
What if you remove the code and just use the built-in color feature? - View>Colors, View>Fonts

J
JuanAm
JuanAm
J
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.

#249338 25/11/14 02:11 AM
Joined: Dec 2013
Posts: 771
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 771
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.

J
JuanAm
JuanAm
J
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


Link Copied to Clipboard