Hightlight personnalisable

Contenu du snippet

En fait c'est un hightlight ki vous permet de voir dans la fenetre active ou vous etes, ce ke l'on dit de vous dans un autre chan ou un autre pv, lol. Sympa quand on a plusieurs salons et pv d'ouverts ( à rajouter dans un nouveau remote)

Source / Exemple :


on *:load:{

}

alias hight { dialog -mod highlight highlight }

menu menubar {
  -
  Highlights Personnalisables:hight 
}

dialog highlight {
  title "Highlights Personnalisables"
  size -1 -1 280 55
  option dbu
  edit %Highlightmot1 , 1, 24 3 50 10 autohs
  text "Mot 1", 19, 1 4 18 8, center
  text "Mot 2", 20, 1 17 18 8, center
  edit %Highlightmot2 , 2, 24 16 50 10 autohs
  text "Mot 5", 22, 79 4 18 8, center
  edit %Highlightmot5 , 5, 102 3 50 10 autohs
  text "Mot 6", 24, 79 17 18 8, center
  edit %Highlightmot6 , 6, 102 16 50 10 autohs
  text "Mot 3", 26, 1 30 18 8, center
  edit %Highlightmot3 , 3, 25 29 50 10 autohs
  text "Mot 4", 28, 1 43 18 8, center
  edit %Highlightmot4 ,4, 25 42 50 10 autohs
  text "Mot 7", 30, 79 30 18 8, center
  text "Mot 8", 31, 79 43 18 8, center
  edit %Highlightmot7 , 7, 103 29 50 10 autohs
  edit %Highlightmot8 , 8, 103 42 50 10 autohs
  text "Mot 9", 34, 156 4 18 8, center
  text "Mot 10", 35, 156 17 18 8, center
  edit %Highlightmot9 , 9, 179 3 50 10 autohs
  edit %Highlightmot10 , 10, 179 16 50 10 autohs
  text "Pseudo 1", 38, 156 30 23 8, center
  text "Pseudo 2", 39, 155 43 25 8, center
  edit %Highlightpseu1 , 11, 180 29 50 10 autohs
  edit %Highlightpseu2 , 12, 180 42 50 10 autohs
  button "Activer", 100, 238 3 37 10, ok
  button "Désactiver", 42, 238 16 37 10, ok
  button "OK", 200, 238 29 37 23, ok
}

on 1:dialog:highlight:edit:*: {
  if ($did == 1) {
    set %Highlightmot1 $did($dname,1) 
  }
  if ($did == 2) {
    set %Highlightmot2 $did($dname,2) 
  }
  if ($did == 3) {
    set %Highlightmot3 $did($dname,3) 
  }
  if ($did == 4) {
    set %Highlightmot4 $did($dname,4) 
  }
  if ($did == 5) {
    set %Highlightmot5 $did($dname,5)
  }
  if  ($did == 6) {
    set %Highlightmot6 $did($dname,6)
  }
  if ($did == 7) {
    set %Highlightmot7 $did($dname,7)
  }
  if ($did == 8) {
    set %Highlightmot8 $did($dname,8)
  }
  if ($did == 9) {
    set %Highlightmot9 $did($dname,9)
  }
  if ($did == 10) {
    set %Highlightmot10 $did($dname,10)
  }
  if ($did == 11) {
    set %Highlightpseu1 $did($dname,11)
  }
  if ($did == 12) {
    set %Highlightpseu2 $did($dname,12)
  }
}

on 1:dialog:highlight:sclick:*: {
  if ($did == 100) {
    set %Highlight on | /echo -a [Info] Les Highlights Persos sont désormais [ACTIVES]
  }
  if ($did == 42) {
    set %Highlight off | /echo -a [Info] Les Highlights Persos on étés[DESACTIVES]
  }
}

on 1:TEXT:*:*:{
  if ($chan != $active) { if (%Highlight == on) {
      if (%Highlightmot1 isin $1- 1) { 

      .echo -a $+ $timestamp $+ [Highlight] $nick dit sur $chan : $1- | halt }
      if (%Highlightmot2 isin $1- 1) { 

      .echo -a $+ $timestamp $+ [Highlight] $nick dit sur $chan : $1- | halt }
      if (%Highlightmot3 isin $1- 1) { 

      .echo -a $+ $timestamp $+ [Highlight] $nick dit sur $chan : $1- |  halt }
      if (%Highlightmot4 isin $1- 1) { 

      .echo -a $+ $timestamp $+ [Highlight] $nick dit sur $chan : $1- |  halt }
      if (%Highlightmot5 isin $1- 1) { 

      .echo -a $+ $timestamp $+ [Highlight] $nick dit sur $chan : $1- |  halt }
      if (%Highlightmot6 isin $1- 1) { 

      .echo -a $+ $timestamp $+ [Highlight] $nick dit sur $chan : $1- |  halt }
      if (%Highlightmot7 isin $1- 1) { 

      .echo -a $+ $timestamp $+ [Highlight] $nick dit sur $chan : $1- |  halt }
      if (%Highlightmot8 isin $1- 1) { 

      .echo -a $+ $timestamp $+ [Highlight] $nick dit sur $chan : $1- |  halt }
      if (%Highlightmot9 isin $1- 1) { 

      .echo -a $+ $timestamp $+ [Highlight] $nick dit sur $chan : $1- |  halt }
      if (%Highlightmot10 isin $1- 1) { 

      .echo -a $+ $timestamp $+ [Highlight] $nick dit sur $chan : $1- |  halt }
      if (%Highlightpseu1 isin $1- 1) { 

      .echo -a $+ $timestamp $+ [Highlight] $nick dit sur $chan : $1- |  halt }
      if (%Highlightpseu2 isin $1- 1) { 

      .echo -a $+ $timestamp $+ [Highlight] $nick dit sur $chan : $1- |  halt }
    }
  }

Conclusion :


J'ai attrapé cet addon (comme tous les autres sur un script, je sais meme plus le nom ;o)

A voir également

Vous n'êtes pas encore membre ?

inscrivez-vous, c'est gratuit et ça prend moins d'une minute !

Les membres obtiennent plus de réponses que les utilisateurs anonymes.

Le fait d'être membre vous permet d'avoir un suivi détaillé de vos demandes et codes sources.

Le fait d'être membre vous permet d'avoir des options supplémentaires.