A mettre dans les remotes Alt+R :) comme d'hab
rectification il y avait un petit bug je l'ai donc modif
Source / Exemple :
dialog Hl {
title "HighLight By guigui653"
size -1 -1 135 147
option dbu
list 1, 31 8 67 63, size
button "Ajouter", 2, 0 98 35 12, disable
button "Supprimer", 4, 100 98 35 12,
box "List HL", 6, 28 1 73 73
button "Sons", 3, 49 98 37 12
edit "", 8, 39 82 50 10
box "Entrez un Nick", 9, 38 75 53 20
button "Annulé", 10, 3 135 37 12, cancel
button "Okay", 11, 94 135 37 12, ok
}
on *:dialog:hl:edit:8: {
if ($did(8) == $null) { did -b $dname 2 | halt }
did -e $dname 2
}
on *:dialog:hl:init:0: {
var %a $numtok(%list.hl,44), %b 0
while (%a > %b) {
inc %b
did -a hl 1 $gettok(%list.hl,%b,44)
}
}
on *:dialog:hl:sclick:*: {
if ($did == 2) { var %a $did(8) | if (!%list.hl) { set %list.hl %a | echo -a %a Ajouter a la liste des hls | did -a $dname 1 %a | did -r $dname 8 | halt } | set %list.hl $addtok(%list.hl,%a,44) | echo -a %a Ajouter a la liste des hls | did -a $dname 1 %a | did -r $dname 8 | did -b $dname 2 }
if ($did == 3) { set %son.hl $sfile(*.wav,Son a jouer lors du hl,Ok) }
if ($did == 4) {
if (!$did(1).seltext) { var %merde $input(T'as pas selectioner de Nom,308,Attention) | halt }
var %tok $did(1).seltext, %a $numtok(%list.hl,44), %b 0
while (%a > %b) {
inc %b
if ($gettok(%list.hl,%b,44) == %tok) { var %tok1 $ifmatch | goto suite }
}
:suite
set %list.hl $remtok(%list.hl,%tok1,44)
did -d $dname 1 $did(1).sel
echo -a %tok Supprimer de la liste des hls
}
}
on *:TEXT:*:#: {
var %a $numtok(%list.hl,44), %b 0
while (%a > %b) {
inc %b
if ($gettok(%list.hl,%b,44) isin $strip($1-)) { hl $nick $chan $1- }
}
}
alias -l hl { window -ng2 @Hls | echo @Hls $+([,$timestamp,]) $+(«,$2,») $+(<,$1,>) $3- | $iif(%son.hl,/splay -w %son.hl,halt) }
Conclusion :
j'attend vos com's (j'espere bons)
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.