Stat.v2 ( dsl pr le titre ipstat je me suis planté )

Contenu du snippet

je l'ai modifier pr pouvoir le laisser ouvert et kil change en fonction des fenêtres ouverte . Perso je suis en train de le teste je le trouve assez utile .

Source / Exemple :


--------------------------------------------------------------------------------------

                                                                    • by abdoulax ***************************************
-------------------------------------------------------------------------------------- dialog statcanal { title "stat ----==== by aBd0ulaX ====----" size -1 -1 204 30 option dbu button "fermer" ,1, 178 18 20 10 , cancel text "nombre op :" , 3, 4 4 50 10 text " nombre voice :" , 4 , 4 18 50 10 text "nombre normal :" , 5, 106 4 50 10 text "nombre total :" , 6, 106 18 50 10 edit "" ,7, 50 4 20 10,read,center edit "" ,8, 50 18 20 10,read,center edit "" ,9, 154 4 20 10,read,center edit "" ,10, 154 18 20 10,read,center edit "" ,11, 74 4 20 10,read,center edit "" ,12, 74 18 20 10,read,center edit "" ,13, 178 4 20 10,read,center } on *:dialog:statcanal:sclick:1:{ unset %chanstat } on *:dialog:statcanal:init:0:{ initstat } alias statchan { set %chanstat $chan dialog -m statcanal statcanal } on *:join:*:{ if ( $chan == %chanstat ) { initstat } } on *:part:#:{ if ( $chan == %chanstat ) { timerstat 1 .1 { initstat } } } on *:active:#:{ if ( $dialog(statcanal) != $null ) { set %chanstat $chan initstat } } alias initstat { if ( $dialog(statcanal) != $null ) { did -r statcanal 7 did -r statcanal 8 did -r statcanal 9 did -r statcanal 10 did -r statcanal 11 did -r statcanal 12 did -r statcanal 13 did -a statcanal 10 $nick(%chanstat,0,a) did -a statcanal 7 $nick(%chanstat,0,o) did -a statcanal 8 $nick(%chanstat,0,v,o) did -a statcanal 9 $nick(%chanstat,0,r,ohv) did -a statcanal 11 $calc(100 * $nick(%chanstat,0,o) / $nick(%chanstat,0,a) ) % did -a statcanal 12 $calc(100 * $nick(%chanstat,0,v,o) / $nick(%chanstat,0,a) ) % did -a statcanal 13 $calc(100 * $nick(%chanstat,0,r,ohv) / $nick(%chanstat,0,a) ) % } }

Conclusion :


je compte faire une version en @window , afin de le rendre le plus discret possible et le plus petit possible .

have fun

by abdoulax

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.