mIRC Home    About    Download    Register    News    Help

Print Thread
#249326 24/11/14 09:15 PM
Joined: Nov 2014
Posts: 149
J
JuanAm Offline OP
Vogon poet
OP Offline
Vogon poet
J
Joined: Nov 2014
Posts: 149
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?

Joined: Mar 2010
Posts: 146
Vogon poet
Offline
Vogon poet
Joined: Mar 2010
Posts: 146
Code:
/help ON INPUT


Nothing...
Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
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.


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Joined: Nov 2014
Posts: 149
J
JuanAm Offline OP
Vogon poet
OP Offline
Vogon poet
J
Joined: Nov 2014
Posts: 149
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



Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
What if you remove the code and just use the built-in color feature? - View>Colors, View>Fonts


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Joined: Nov 2014
Posts: 149
J
JuanAm Offline OP
Vogon poet
OP Offline
Vogon poet
J
Joined: Nov 2014
Posts: 149
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.

Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
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.


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Joined: Nov 2014
Posts: 149
J
JuanAm Offline OP
Vogon poet
OP Offline
Vogon poet
J
Joined: Nov 2014
Posts: 149
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