Accueil > > > STATISTIQUES D'UN SALON
STATISTIQUES D'UN SALON
Information sur la source
Description
Il s'agit d'un dialog qui vous montre les différentes statistiques du salon actif. Vous avez le choix entre une version avec ou sans MDX.
Source
- ;-----------------------------
- ; - Statistiques d'un salon -
- ; By Re[M]i_34
- ; Version Avec MDX
- ;-----------------------------
- dialog stat {
- title "- Statistiques - Re[M]i_34"
- size -1 -1 149 136
- option dbu
- list 1, 3 8 62 112, size
- box "Nicks présents :", 2, 1 0 67 134
- text "Nb de Ops :", 3, 72 9 33 8, center
- edit "", 4, 107 8 39 10, read center
- text "Pourcentage :", 5, 68 20 38 8, center
- edit "", 6, 107 19 39 10, read center
- text "Nb de Voices :", 7, 71 39 37 8, center
- edit "", 8, 109 38 39 10, read center
- text "Pourcentage :", 9, 70 50 38 8, center
- edit "", 10, 109 49 39 10, read center
- edit "", 12, 108 68 39 10, read center
- text "Nb de Halfops :", 11, 70 69 37 8, center
- edit "", 14, 108 79 39 10, read center
- text "Pourcentage :", 13, 69 80 38 8, center
- text "Total :", 15, 6 123 22 8, center
- edit "", 16, 31 122 29 10, read
- button "- Fermer -", 17, 110 122 36 12, ok
- button "- Actualiser -", 18, 71 122 36 12
- edit "", 19, 108 98 39 10, read center
- text "Pourcentage :", 20, 69 110 38 8, center
- edit "", 21, 108 109 39 10, read center
- text "Réguliers :", 22, 70 99 37 8, center
- }
- alias stats dialog -m stat stat
- alias yahoo { if (!$1) { halt } | var %a = 0, %aa = $nick($1,0) | while (%aa > %a) { inc %a 1 | did -a stat 1 $nick($1,%a) } }
- on *:dialog:stat:*:*:{
- if $devent == init {
- did -a stat 4 $nick($active,0,o)
- did -a stat 6 $calc($nick($active,0,o) / $nick($active,0) * 100) $+ %
- did -a stat 8 $nick($active,0,v)
- did -a stat 10 $calc($nick($active,0,v) / $nick($active,0) * 100) $+ %
- did -a stat 12 $nick($active,0,h)
- did -a stat 14 $calc($nick($active,0,h) / $nick($active,0) * 100) $+ %
- did -a stat 16 $nick($active,0)
- did -a stat 19 $nick($active,0,r)
- did -a stat 21 $calc($nick($active,0,r) / $nick($active,0) * 100) $+ %
- yahoo $active
- dll mdx.dll SetMircVersion $version
- dll mdx.dll MarkDialog stat
- dll mdx.dll SetDialog stat bgcolor $rgb(255,255,255)
- dll mdx.dll SetColor stat 2,4,6,8,10,12,14,16,19,21 background $rgb(255,255,255)
- dll mdx.dll SetColor stat 4,6,8,10,12,14,16,19,21 textbg $rgb(255,255,255)
- dll mdx.dll SetColor stat 3,5,7,9,11,13,15,20,22 background $rgb(255,255,255)
- dll mdx.dll SetColor stat 3,5,7,9,11,13,15,20,22 textbg $rgb(255,255,255)
- }
- if $devent == sclick {
- if $did == 18 { dialog -x stat | dialog -m stat stat }
- }
- }
-
- ;-----------------------------
- ; - Statistiques d'un salon -
- ; By Re[M]i_34
- ; Version Sans MDX
- ;-----------------------------
- dialog stat {
- title "- Statistiques - Re[M]i_34"
- size -1 -1 149 136
- option dbu
- list 1, 3 8 62 112, size
- box "Nicks présents :", 2, 1 0 67 134
- text "Nb de Ops :", 3, 72 9 33 8, center
- edit "", 4, 107 8 39 10, read center
- text "Pourcentage :", 5, 68 20 38 8, center
- edit "", 6, 107 19 39 10, read center
- text "Nb de Voices :", 7, 71 39 37 8, center
- edit "", 8, 109 38 39 10, read center
- text "Pourcentage :", 9, 70 50 38 8, center
- edit "", 10, 109 49 39 10, read center
- edit "", 12, 108 68 39 10, read center
- text "Nb de Halfops :", 11, 70 69 37 8, center
- edit "", 14, 108 79 39 10, read center
- text "Pourcentage :", 13, 69 80 38 8, center
- text "Total :", 15, 6 123 22 8, center
- edit "", 16, 31 122 29 10, read
- button "- Fermer -", 17, 110 122 36 12, ok
- button "- Actualiser -", 18, 71 122 36 12
- edit "", 19, 108 98 39 10, read center
- text "Pourcentage :", 20, 69 110 38 8, center
- edit "", 21, 108 109 39 10, read center
- text "Réguliers :", 22, 70 99 37 8, center
- }
- alias stats dialog -m stat stat
- alias yahoo { if (!$1) { halt } | var %a = 0, %aa = $nick($1,0) | while (%aa > %a) { inc %a 1 | did -a stat 1 $nick($1,%a) } }
- on *:dialog:stat:*:*:{
- if $devent == init {
- did -a stat 4 $nick($active,0,o)
- did -a stat 6 $calc($nick($active,0,o) / $nick($active,0) * 100) $+ %
- did -a stat 8 $nick($active,0,v)
- did -a stat 10 $calc($nick($active,0,v) / $nick($active,0) * 100) $+ %
- did -a stat 12 $nick($active,0,h)
- did -a stat 14 $calc($nick($active,0,h) / $nick($active,0) * 100) $+ %
- did -a stat 16 $nick($active,0)
- did -a stat 19 $nick($active,0,r)
- did -a stat 21 $calc($nick($active,0,r) / $nick($active,0) * 100) $+ %
- yahoo $active
- }
- if $devent == sclick {
- if $did == 18 { dialog -x stat | dialog -m stat stat }
- }
- }
;-----------------------------
; - Statistiques d'un salon -
; By Re[M]i_34
; Version Avec MDX
;-----------------------------
dialog stat {
title "- Statistiques - Re[M]i_34"
size -1 -1 149 136
option dbu
list 1, 3 8 62 112, size
box "Nicks présents :", 2, 1 0 67 134
text "Nb de Ops :", 3, 72 9 33 8, center
edit "", 4, 107 8 39 10, read center
text "Pourcentage :", 5, 68 20 38 8, center
edit "", 6, 107 19 39 10, read center
text "Nb de Voices :", 7, 71 39 37 8, center
edit "", 8, 109 38 39 10, read center
text "Pourcentage :", 9, 70 50 38 8, center
edit "", 10, 109 49 39 10, read center
edit "", 12, 108 68 39 10, read center
text "Nb de Halfops :", 11, 70 69 37 8, center
edit "", 14, 108 79 39 10, read center
text "Pourcentage :", 13, 69 80 38 8, center
text "Total :", 15, 6 123 22 8, center
edit "", 16, 31 122 29 10, read
button "- Fermer -", 17, 110 122 36 12, ok
button "- Actualiser -", 18, 71 122 36 12
edit "", 19, 108 98 39 10, read center
text "Pourcentage :", 20, 69 110 38 8, center
edit "", 21, 108 109 39 10, read center
text "Réguliers :", 22, 70 99 37 8, center
}
alias stats dialog -m stat stat
alias yahoo { if (!$1) { halt } | var %a = 0, %aa = $nick($1,0) | while (%aa > %a) { inc %a 1 | did -a stat 1 $nick($1,%a) } }
on *:dialog:stat:*:*:{
if $devent == init {
did -a stat 4 $nick($active,0,o)
did -a stat 6 $calc($nick($active,0,o) / $nick($active,0) * 100) $+ %
did -a stat 8 $nick($active,0,v)
did -a stat 10 $calc($nick($active,0,v) / $nick($active,0) * 100) $+ %
did -a stat 12 $nick($active,0,h)
did -a stat 14 $calc($nick($active,0,h) / $nick($active,0) * 100) $+ %
did -a stat 16 $nick($active,0)
did -a stat 19 $nick($active,0,r)
did -a stat 21 $calc($nick($active,0,r) / $nick($active,0) * 100) $+ %
yahoo $active
dll mdx.dll SetMircVersion $version
dll mdx.dll MarkDialog stat
dll mdx.dll SetDialog stat bgcolor $rgb(255,255,255)
dll mdx.dll SetColor stat 2,4,6,8,10,12,14,16,19,21 background $rgb(255,255,255)
dll mdx.dll SetColor stat 4,6,8,10,12,14,16,19,21 textbg $rgb(255,255,255)
dll mdx.dll SetColor stat 3,5,7,9,11,13,15,20,22 background $rgb(255,255,255)
dll mdx.dll SetColor stat 3,5,7,9,11,13,15,20,22 textbg $rgb(255,255,255)
}
if $devent == sclick {
if $did == 18 { dialog -x stat | dialog -m stat stat }
}
}
;-----------------------------
; - Statistiques d'un salon -
; By Re[M]i_34
; Version Sans MDX
;-----------------------------
dialog stat {
title "- Statistiques - Re[M]i_34"
size -1 -1 149 136
option dbu
list 1, 3 8 62 112, size
box "Nicks présents :", 2, 1 0 67 134
text "Nb de Ops :", 3, 72 9 33 8, center
edit "", 4, 107 8 39 10, read center
text "Pourcentage :", 5, 68 20 38 8, center
edit "", 6, 107 19 39 10, read center
text "Nb de Voices :", 7, 71 39 37 8, center
edit "", 8, 109 38 39 10, read center
text "Pourcentage :", 9, 70 50 38 8, center
edit "", 10, 109 49 39 10, read center
edit "", 12, 108 68 39 10, read center
text "Nb de Halfops :", 11, 70 69 37 8, center
edit "", 14, 108 79 39 10, read center
text "Pourcentage :", 13, 69 80 38 8, center
text "Total :", 15, 6 123 22 8, center
edit "", 16, 31 122 29 10, read
button "- Fermer -", 17, 110 122 36 12, ok
button "- Actualiser -", 18, 71 122 36 12
edit "", 19, 108 98 39 10, read center
text "Pourcentage :", 20, 69 110 38 8, center
edit "", 21, 108 109 39 10, read center
text "Réguliers :", 22, 70 99 37 8, center
}
alias stats dialog -m stat stat
alias yahoo { if (!$1) { halt } | var %a = 0, %aa = $nick($1,0) | while (%aa > %a) { inc %a 1 | did -a stat 1 $nick($1,%a) } }
on *:dialog:stat:*:*:{
if $devent == init {
did -a stat 4 $nick($active,0,o)
did -a stat 6 $calc($nick($active,0,o) / $nick($active,0) * 100) $+ %
did -a stat 8 $nick($active,0,v)
did -a stat 10 $calc($nick($active,0,v) / $nick($active,0) * 100) $+ %
did -a stat 12 $nick($active,0,h)
did -a stat 14 $calc($nick($active,0,h) / $nick($active,0) * 100) $+ %
did -a stat 16 $nick($active,0)
did -a stat 19 $nick($active,0,r)
did -a stat 21 $calc($nick($active,0,r) / $nick($active,0) * 100) $+ %
yahoo $active
}
if $devent == sclick {
if $did == 18 { dialog -x stat | dialog -m stat stat }
}
}
Conclusion
Voilà, dites moi ce que vous en pensez, je l'ai réalisé seul. /stats pour l'ouvrir
PS: Je me suis permis d'emprunter l'alias yahoo de SornDrixer (J'espère que tu ne m'en voudras pas trop :))
Sources du même auteur
Commentaires et avis
|
Derniers Blogs
CSDL FUNCTIONCSDL FUNCTION par Matthieu MEZIL
Dans mon post précédent , j'ai utilisé une CSDL Function afin de générer une requête SQL avec un DateDiff utilisant la date courante sur la BD à partir d'une requête LINQ. Dans le cadre de ce post , vous avez probablement remarqué que dans le cadre de plu...
Cliquez pour lire la suite de l'article par Matthieu MEZIL LINQ TO ENTITIESLINQ TO ENTITIES par Matthieu MEZIL
Cette semaine je suis à Montréal en tant que speaker sur Entity Framework pour l'évènement confoo . J'en profite pour remercier les organisateurs de cet évènement de m'avoir fait confiance et Access-IT de m'avoir permis d'y participer. En parallèle, j'ai ...
Cliquez pour lire la suite de l'article par Matthieu MEZIL FAIRE APPARAITRE L'ONGLET 'DéVELOPPEUR' DANS OFFICE 2010FAIRE APPARAITRE L'ONGLET 'DéVELOPPEUR' DANS OFFICE 2010 par neodante
La nouvelle interface d'Office 2010 à amener quelques modifications par rapport à celle de 2007. Certes mineures, ces modifications ont fait disparaître la case à cocher de l'onglet 'Développeur' en première page du panneau du 'bouton Office' (dans Office...
Cliquez pour lire la suite de l'article par neodante [ASTUCE] PATCH POUR MICROSOFT FORUMS NNTP BRIDGE V1[ASTUCE] PATCH POUR MICROSOFT FORUMS NNTP BRIDGE V1 par pierre
Si vous avez téléchargé comme moi Microsoft Forums NNTP Bridge V1 avant le 11 mars 2010 (voir [Astuce] Disponibilité de Microsoft Forum NNTP Bridge Version 1.0), un problème de date localisée pour les non anglais était présent. Un patch est disponibl...
Cliquez pour lire la suite de l'article par pierre PB LORS DE L'INSTALLATION SHAREPOINT 2010.PB LORS DE L'INSTALLATION SHAREPOINT 2010. par Patrick Guimonet
Lors de l'installation de SharePoint 2010, j'ai rencontré un problème de plantage à l'étape 5 du configuration Wizard. Ca se termine sur cet écran : Et en analysant le fichier de journalisation, on remarque vers la fin des 15000 et quelques lign...
Cliquez pour lire la suite de l'article par Patrick Guimonet
Forum
RE : SOUCIRE : SOUCI par WorldDMT
Cliquez pour lire la suite par WorldDMT RE : SOUCIRE : SOUCI par IrX
Cliquez pour lire la suite par IrX RE : SOUCIRE : SOUCI par IrX
Cliquez pour lire la suite par IrX RE : SOUCIRE : SOUCI par WorldDMT
Cliquez pour lire la suite par WorldDMT
Logiciels
Xilisoft Convertisseur Vidéo Ultimate (5.1.39.0305)XILISOFT CONVERTISSEUR VIDéO ULTIMATE (5.1.39.0305)Xilisoft Convertisseur Vidéo Ultimate est un outil puissant de conversion vidéo, facile à utilise... Cliquez pour télécharger Xilisoft Convertisseur Vidéo Ultimate Xilisoft DVD Ripper Ultimate (5.0.64.0304)XILISOFT DVD RIPPER ULTIMATE (5.0.64.0304)Xilisoft DVD Ripper Ultimate est un logiciel excellent pour copier et convertir DVD vers presque ... Cliquez pour télécharger Xilisoft DVD Ripper Ultimate Rigs of Rods (63.3)RIGS OF RODS (63.3)c'est un jeu de multi-simulation camions,autobus voitures, avions, bateaux, hélicoptère avec défo... Cliquez pour télécharger Rigs of Rods Konvertor (4.00)KONVERTOR (4.00)Le logiciel est un gestionnaire multimedia affichant, jouant et convertissant plus de 2000 format... Cliquez pour télécharger Konvertor
|