Détecté les extanxions

Philip34 Messages postés 1 Date d'inscription samedi 8 août 2009 Statut Membre Dernière intervention 8 août 2009 - 8 août 2009 à 20:27
LeGnoMe666 Messages postés 43 Date d'inscription dimanche 15 avril 2007 Statut Membre Dernière intervention 24 août 2009 - 8 août 2009 à 21:22
bonsoir à tous,

je vient vers vous car j'aurais aimé savoir comment mettre dans un .txt toute les extensions de pseudo est que sa me les colors. actuellement j'ai ceci mais j'aimerai bcp l'allégé :x

:underline bold italic
If ($1 == textstyle) { If (%textstyle != $null) return bold }
If ($1 == color) {
If ($right($3,4) == Away) return $rgb(196,200,178)
If ($right($3,11) == [Auto-Away]) return $rgb(196,200,178)
If ($right($3,3) == Out) return $rgb(123,135,234)
If ($right($3,3) == dow) return $rgb(123,135,234)
If ($right($3,3) == Aw-) return $rgb(196,200,178)
If ($right($3,7) == Aw-Taff) return $rgb(196,200,178)
If ($right($3,2) == Aw) return $rgb(196,200,178)
If ($right($3,6) == Sortie) return $rgb(123,135,234)
If ($right($3,7) == Absente) return $rgb(123,135,234)
If ($right($3,4) == loin) return $rgb(123,135,234)
If ($right($3,6) == pas_la) return $rgb(123,135,234)
If ($right($3,4) == [re]) return $rgb(123,135,234)
If ($right($3,3) == jre) return $rgb(123,135,234)
If ($right($3,2) == RE) return $rgb(123,135,234)
If ($right($3,5) == Pasla) return $rgb(123,135,234)
If ($right($3,6) == pas_la) return $rgb(123,135,234)
If ($right($3,7) == [Pasla]) return $rgb(123,135,234)
If ($right($3,4) == Pula) return $rgb(123,135,234)
If ($right($3,4) == Pola) return $rgb(123,135,234)
If ($right($3,5) == PluLa) return $rgb(123,135,234)
If ($right($3,7) == Plus-La) return $rgb(123,135,234)
If ($right($3,4) == pala) return $rgb(123,135,234)
If ($right($3,3) == oqp) return $rgb(123,135,234)
If ($right($3,3) == Abs) return $rgb(123,135,234)
}

est ça ainsi de suite :x est'il possible de les regroupé tous dans un .txt ?

merci de votre aide

1 réponse

LeGnoMe666 Messages postés 43 Date d'inscription dimanche 15 avril 2007 Statut Membre Dernière intervention 24 août 2009
8 août 2009 à 21:22
bonjour,
peut être qu'un:

if $regex($3,(Aw-?(Taff)?|(\[Auto-)?Away(\])?)$) { return $rgb(196,200,178) }
else { return $rgb(123,135,234) }

pourrait il convenir, sachant qu'à priori tu n'utilises que deux couleurs
0
Rejoignez-nous