Accueil > > > STATISTIQUE D'UN CHANNEL EN DIALOG
STATISTIQUE D'UN CHANNEL EN DIALOG
Information sur la source
Description
C'est un dialog qui vous montre le nombre d'op (le %) le nombre de voice et de regulier sur un channel , possibiliter de le dire sur le channel , dans les remotes
Source
- dialog stats {
- title "Statistiques"
- size -1 -1 187 143
- option dbu
- list 1, 68 3 116 138, size
- button "Actualiser", 2, 9 58 50 10, flat
- button "Dire sur le chan", 3, 9 68 50 11, flat
- button "Ok", 4, 9 79 50 10, cancel, flat
- text "Cronic Script : Statistiques D'un Channel", 5, 4 5 50 23
- box "Action", 6, 3 36 62 72
- }
- on *:dialog:stats:init:*: {
- /set %statschan $active
- /did -a stats 1 Statistique de ---=-> Canal $active
- /did -a stats 1
- /did -a stats 1 Nombre de personne: $nick($active,0)
- /did -a stats 1
- /did -a stats 1 Nombre d'Operateur: $nick($active,0,o)
- /did -a stats 1 - Pourcentage d'opereteur: ( $+ $calc( $nick($active,0,o) / $nick($active,0) * 100) $+ % $+ )
- /did -a stats 1 Nombre de Voice : $nick($active,0,v)
- /did -a stats 1 - Pourcentage De Voice( $+ $calc( $nick($active,0,v) / $nick($active,0) * 100) $+ % $+ )
- /did -a stats 1 Nombre de Regulier : $nick($active,0,r)
- /did -a stats 1 - Pourcentage de Regulier ( $+ $calc( $nick($active,0,r) / $nick($active,0) * 100) $+ % $+ )
- /did -a stats 1
- /did -a stats 1 Stats des Operateurs :
- /did -a stats 1 ----------------------------------------------=->
- if ( $nick($active,0,o) == 0 ) { goto voice }
- else {
- /set %totalostats $nick($active,0,o)
- /set %ostats 0
- :odebut
- inc %ostats
- /did -a stats 1 - $nick($active,%ostats,o) Est Operateur sur $active
- if ( %ostats == %totalostats ) { goto voice }
- else { goto odebut }
- }
- :voice
- /did -a stats 1
- /did -a stats 1 Stats des Voices :
- /did -a stats 1 ----------------------------------------------=->
- if ( $nick($active,0,v) == 0 ) { goto regul }
- else {
- /set %totalvstats $nick($active,0,v)
- /set %vstats 0
- :vdebut
- inc %vstats
- /did -a stats 1 - $nick($active,%vstats,v) Est Voice sur $active
- if ( %vstats == %totalvstats ) { goto regul }
- else { goto vdebut }
- }
- :regul
- /did -a stats 1
- /did -a stats 1 Stats de Reguliers :
- /did -a stats 1 ----------------------------------------------=->
- if ( $nick($active,0,r) == 0 ) { goto fin }
- else {
- /set %totalrstats $nick($active,0,r)
- /set %rstats 0
- :rdebut
- inc %rstats
- /did -a stats 1 - $nick($active,%rstats,r) Est Regulier sur $active
- if ( %rstats == %totalrstats ) { goto fin }
- else { goto rdebut }
- }
- :fin
- halt
- }
- on *:dialog:stats:sclick:2: {
- /did -a stats 1 Statistique de ---=-> Canal $active
- /did -a stats 1
- /did -a stats 1 Nombre de personne: $nick($active,0)
- /did -a stats 1
- /did -a stats 1 Nombre d'Operateur: $nick($active,0,o)
- /did -a stats 1 - Pourcentage d'opereteur: ( $+ $calc( $nick($active,0,o) / $nick($active,0) * 100) $+ % $+ )
- /did -a stats 1 Nombre de Voice : $nick($active,0,v)
- /did -a stats 1 - Pourcentage De Voice( $+ $calc( $nick($active,0,v) / $nick($active,0) * 100) $+ % $+ )
- /did -a stats 1 Nombre de Regulier : $nick($active,0,r)
- /did -a stats 1 - Pourcentage de Regulier ( $+ $calc( $nick($active,0,r) / $nick($active,0) * 100) $+ % $+ )
- /did -a stats 1
- /did -a stats 1 Stats des Operateurs :
- /did -a stats 1 ----------------------------------------------=->
- if ( $nick($active,0,o) == 0 ) { goto voice }
- else {
- /set %totalostats $nick($active,0,o)
- /set %ostats 0
- :odebut
- inc %ostats
- /did -a stats 1 - $nick($active,%ostats,o) Est Operateur sur $active
- if ( %ostats == %totalostats ) { goto voice }
- else { goto odebut }
- }
- :voice
- /did -a stats 1
- /did -a stats 1 Stats des Voices :
- /did -a stats 1 ----------------------------------------------=->
- if ( $nick($active,0,v) == 0 ) { goto regul }
- else {
- /set %totalvstats $nick($active,0,v)
- /set %vstats 0
- :vdebut
- inc %vstats
- /did -a stats 1 - $nick($active,%vstats,v) Est Voice sur $active
- if ( %vstats == %totalvstats ) { goto regul }
- else { goto vdebut }
- }
- :regul
- /did -a stats 1
- /did -a stats 1 Stats de Reguliers :
- /did -a stats 1 ----------------------------------------------=->
- if ( $nick($active,0,r) == 0 ) { goto fin }
- else {
- /set %totalrstats $nick($active,0,r)
- /set %rstats 0
- :rdebut
- inc %rstats
- /did -a stats 1 - $nick($active,%rstats,r) Est Regulier sur $active
- if ( %rstats == %totalrstats ) { goto fin }
- else { goto rdebut }
- }
- :fin
- halt
- }
-
-
- on *:dialog:stats:sclick:3: {
- /msg $active 7Statistique de -------=-> Canal $active |>
- /msg $active 7Nombre d'utilisateur total:7 $nick(%statschan,0)
- /msg $active 7Nombre d'OP(s):7 $nick(%statschan,0,o)
- /msg $active 7Nombre de Voice(s) :7 $nick(%statschan,0,v)
- /msg $active 7Nombre de Regulier :7 $nick(%statschan,0,r)
- /msg $active 7Statistique de -------=-> Canal $active |>
- }
dialog stats {
title "Statistiques"
size -1 -1 187 143
option dbu
list 1, 68 3 116 138, size
button "Actualiser", 2, 9 58 50 10, flat
button "Dire sur le chan", 3, 9 68 50 11, flat
button "Ok", 4, 9 79 50 10, cancel, flat
text "Cronic Script : Statistiques D'un Channel", 5, 4 5 50 23
box "Action", 6, 3 36 62 72
}
on *:dialog:stats:init:*: {
/set %statschan $active
/did -a stats 1 Statistique de ---=-> Canal $active
/did -a stats 1
/did -a stats 1 Nombre de personne: $nick($active,0)
/did -a stats 1
/did -a stats 1 Nombre d'Operateur: $nick($active,0,o)
/did -a stats 1 - Pourcentage d'opereteur: ( $+ $calc( $nick($active,0,o) / $nick($active,0) * 100) $+ % $+ )
/did -a stats 1 Nombre de Voice : $nick($active,0,v)
/did -a stats 1 - Pourcentage De Voice( $+ $calc( $nick($active,0,v) / $nick($active,0) * 100) $+ % $+ )
/did -a stats 1 Nombre de Regulier : $nick($active,0,r)
/did -a stats 1 - Pourcentage de Regulier ( $+ $calc( $nick($active,0,r) / $nick($active,0) * 100) $+ % $+ )
/did -a stats 1
/did -a stats 1 Stats des Operateurs :
/did -a stats 1 ----------------------------------------------=->
if ( $nick($active,0,o) == 0 ) { goto voice }
else {
/set %totalostats $nick($active,0,o)
/set %ostats 0
:odebut
inc %ostats
/did -a stats 1 - $nick($active,%ostats,o) Est Operateur sur $active
if ( %ostats == %totalostats ) { goto voice }
else { goto odebut }
}
:voice
/did -a stats 1
/did -a stats 1 Stats des Voices :
/did -a stats 1 ----------------------------------------------=->
if ( $nick($active,0,v) == 0 ) { goto regul }
else {
/set %totalvstats $nick($active,0,v)
/set %vstats 0
:vdebut
inc %vstats
/did -a stats 1 - $nick($active,%vstats,v) Est Voice sur $active
if ( %vstats == %totalvstats ) { goto regul }
else { goto vdebut }
}
:regul
/did -a stats 1
/did -a stats 1 Stats de Reguliers :
/did -a stats 1 ----------------------------------------------=->
if ( $nick($active,0,r) == 0 ) { goto fin }
else {
/set %totalrstats $nick($active,0,r)
/set %rstats 0
:rdebut
inc %rstats
/did -a stats 1 - $nick($active,%rstats,r) Est Regulier sur $active
if ( %rstats == %totalrstats ) { goto fin }
else { goto rdebut }
}
:fin
halt
}
on *:dialog:stats:sclick:2: {
/did -a stats 1 Statistique de ---=-> Canal $active
/did -a stats 1
/did -a stats 1 Nombre de personne: $nick($active,0)
/did -a stats 1
/did -a stats 1 Nombre d'Operateur: $nick($active,0,o)
/did -a stats 1 - Pourcentage d'opereteur: ( $+ $calc( $nick($active,0,o) / $nick($active,0) * 100) $+ % $+ )
/did -a stats 1 Nombre de Voice : $nick($active,0,v)
/did -a stats 1 - Pourcentage De Voice( $+ $calc( $nick($active,0,v) / $nick($active,0) * 100) $+ % $+ )
/did -a stats 1 Nombre de Regulier : $nick($active,0,r)
/did -a stats 1 - Pourcentage de Regulier ( $+ $calc( $nick($active,0,r) / $nick($active,0) * 100) $+ % $+ )
/did -a stats 1
/did -a stats 1 Stats des Operateurs :
/did -a stats 1 ----------------------------------------------=->
if ( $nick($active,0,o) == 0 ) { goto voice }
else {
/set %totalostats $nick($active,0,o)
/set %ostats 0
:odebut
inc %ostats
/did -a stats 1 - $nick($active,%ostats,o) Est Operateur sur $active
if ( %ostats == %totalostats ) { goto voice }
else { goto odebut }
}
:voice
/did -a stats 1
/did -a stats 1 Stats des Voices :
/did -a stats 1 ----------------------------------------------=->
if ( $nick($active,0,v) == 0 ) { goto regul }
else {
/set %totalvstats $nick($active,0,v)
/set %vstats 0
:vdebut
inc %vstats
/did -a stats 1 - $nick($active,%vstats,v) Est Voice sur $active
if ( %vstats == %totalvstats ) { goto regul }
else { goto vdebut }
}
:regul
/did -a stats 1
/did -a stats 1 Stats de Reguliers :
/did -a stats 1 ----------------------------------------------=->
if ( $nick($active,0,r) == 0 ) { goto fin }
else {
/set %totalrstats $nick($active,0,r)
/set %rstats 0
:rdebut
inc %rstats
/did -a stats 1 - $nick($active,%rstats,r) Est Regulier sur $active
if ( %rstats == %totalrstats ) { goto fin }
else { goto rdebut }
}
:fin
halt
}
on *:dialog:stats:sclick:3: {
/msg $active 7Statistique de -------=-> Canal $active |>
/msg $active 7Nombre d'utilisateur total:7 $nick(%statschan,0)
/msg $active 7Nombre d'OP(s):7 $nick(%statschan,0,o)
/msg $active 7Nombre de Voice(s) :7 $nick(%statschan,0,v)
/msg $active 7Nombre de Regulier :7 $nick(%statschan,0,r)
/msg $active 7Statistique de -------=-> Canal $active |>
}
Conclusion
Il y a juste un tout petit bug au niveau de la touche actualiser , je trouver le moyen de le modifier et je vous file le code ;p ++
Sources du même auteur
Sources de la même categorie
Commentaires et avis
|
Derniers Blogs
TECHDAYS PARIS 2012 : SYSTEM CENTER SERVICE MANAGER 2012 VUE D'ENSEMBLETECHDAYS PARIS 2012 : SYSTEM CENTER SERVICE MANAGER 2012 VUE D'ENSEMBLE par ROMELARD Fabrice
Speakers: Julien Marechal, Gautier Confiant, Sébastien MEYER La session débute par le positionnement de la solution System Center par rapport aux concepts d'organisation ITIL. Le portail du catalogue de se...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice TECHDAYS PARIS 2012 : PLEINIèRE SECOND JOURTECHDAYS PARIS 2012 : PLEINIèRE SECOND JOUR par ROMELARD Fabrice
Après une première journée dédiée aux développeurs, cette seconde journée est dédiée au monde des entreprises et de ses applications. Ainsi, cette pleinière est dédiée à faire un 360 de l'évolution des applications Business aux demandes ac...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice TECHDAYS PARIS 2012 : RETOUR D'EXPéRIENCE SUR LA MISE EN PLACE D'UN CLOUD PRIVéTECHDAYS PARIS 2012 : RETOUR D'EXPéRIENCE SUR LA MISE EN PLACE D'UN CLOUD PRIVé par ROMELARD Fabrice
Speaker : Guillaume Rochette Cette session est dédiée à fournir le retour sur la mise en place d'un cloud privé (IaaS) par Osiatis pour son compte ou celui de ses clients. Ce projet s'est déroulé sur 4 mois et a permis de faire évoluer...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice TECHDAYS PARIS 2012 : COMMENT SHAREPOINT A SAUVé MES TECHDAYSTECHDAYS PARIS 2012 : COMMENT SHAREPOINT A SAUVé MES TECHDAYS par ROMELARD Fabrice
Speakers : Lionel Limozin et Alain Marty La session commence par une découverte de SharePoint à travers la mise en place d'un environnement SharePoint pour la gestion des Sessions animées par BeWise. Le besoin est très ba...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice PERSPECTIVE 3.0 POUR SILVERLIGHT 5.0PERSPECTIVE 3.0 POUR SILVERLIGHT 5.0 par odewit
Je viens de publier la version 3.0 de Perspective pour Silverlight, qui regroupe un portage sous Silverlight 5.0 des fonctionnalités de Perspective 2.0, le framework 3D de haut-niveau introduit récemment et de nouveaux exemples de code. En voici la li...
Cliquez pour lire la suite de l'article par odewit
Forum
RE : AIDERE : AIDE par Nico26000
Cliquez pour lire la suite par Nico26000 RE : AIDERE : AIDE par WorldDMT
Cliquez pour lire la suite par WorldDMT AIDEAIDE par Nico26000
Cliquez pour lire la suite par Nico26000
Logiciels
Academy System (17.2.1.0)ACADEMY SYSTEM (17.2.1.0)Logiciel de gestion des établissements.
- élèves/étudiants (inscription, dossier, absence...)
-... Cliquez pour télécharger Academy System Easy-Planning (1.0.0.1)EASY-PLANNING (1.0.0.1)Basé sur les mêmes principes que MyPlanning, Easy-Planning permet de créer des plannings sous la ... Cliquez pour télécharger Easy-Planning COLLECTOR PLUS (3.00B)COLLECTOR PLUS (3.00B)COLLECTOR PLUS version 3.00B est un logiciel utilisant une base de données alimentée par :
- L... Cliquez pour télécharger COLLECTOR PLUS PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V7.4)PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V7.4)PONAMEDIA TV DEVIENS HELLLOOO FLASH
LA TV SUR VOTRE ORDINATEUR.
Toute une plateforme Multi... Cliquez pour télécharger PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO LettresFaciles 2011 (8.0.0.1)LETTRESFACILES 2011 (8.0.0.1)LettresFaciles est un logiciel facilitant la création et la rédaction de lettres types.
Son inte... Cliquez pour télécharger LettresFaciles 2011
|