|
Trouver une ressource
Vous ne trouvez pas de réponse à votre problème ? Alors posez la question dans le forum. Souvenez-vous qu'il n'y a jamais de question bête, mais rester dans l'ignorance parce que l'on n'ose pas poser une question, ça c'est une erreur !
WORLDDMT - INFOS DES CANAUX V 1.1
Information sur la source
Description
Salut Comme le titre dit, c'est avoir les infos des canaux IRC là ou on se trouve en dialog qui contient un combo list la ou vous trouvez les canaux dont vous êtes connecté, le mode chan, nombre d'utilisateurs, avec rapport graphique de pourcentage, et bien sur le topic du chan avec couleur comme vous le voyez dans la capture à coté
Source
- ;____________________menu________________________
-
- menu status,nicklist,menubar {
- -
- Winfo Chan V1.1:wchanstat
- -
- }
-
- ;____________________Alias________________________
-
- alias wchanstat {
- if ($status != connected) {
- return $input(Vous devez être connecté à un serveur avant d'ouvrir l'addon.,ow,WorldDMT - Info des canaux)
- }
- dialog $iif($dialog(wstat),-v,-m wstat) wstat
- }
- alias wDLL return dll $qt($scriptdirdll's/mdx.dll)
- alias tchan didtok wstat 1 32 $regsubex($str(a,$chan(0)),/(a)/g,$+($iif($me ison $chan(\n),$chan(\n)),$chr(32)))
- alias wjp {
- if ($dialog(wstat)) {
- did -h wstat 4,5-29,30
- did -r wstat 1
- tchan
- did -c wstat 1 1
- }
- }
-
- ;____________________Dialog_______________________
-
- dialog wstat {
- title WorldDMT - Info des canaux
- size -1 -1 646 290
- option pixels notheme
- combo 1, 10 63 100 70, drop
- button Voir Info, 2, 118 64 80 18, flat
- button Quitter, 3, 204 64 80 18, ok flat
- text Info du Chan:, 4, 10 96 100 17
- text , 5, 111 96 250 17
- text Topic Du Chan:, 6, 10 114 75 17
- button , 7, 10 131 632 50
- text Mode du channel:, 8, 10 180 85 17
- text , 9, 99 180 295 17
- text Total chatteurs:, 10, 10 195 80 17
- text , 11, 92 195 100 17
- text Le nombre, 12, 79 221 65 17, center
- text Pourcentage, 13, 152 221 62 17, center
- text Operateurs:, 14, 10 240 60 17
- text , 15, 79 240 65 17, right
- text , 16, 159 240 40 17, right
- text Voices:, 17, 10 259 60 17
- text , 18, 79 259 65 17, right
- text , 19, 159 259 40 17, right
- text Autres:, 20, 10 279 60 17
- text , 21, 79 279 65 17, right
- text , 22, 159 279 40 17, right
- box , 23, 5 231 213 69
- box , 24, 75 214 76 86
- box , 25, 149 214 69 86
- box , 26, 5 251 213 28
- box Le résultat graphique, 27, 229 214 415 86
- text , 28, 234 240 405 17
- text , 29, 234 259 405 17
- text , 30, 234 279 405 17
- icon 31, 0 0 650 60, statpic.jpg, 0 noborder
- }
-
- ;_______________________event_________________________
-
- on *:dialog:wstat:*:*: {
- if ($devent == init) {
- $wDLL SetMircVersion $version
- $wDLL MarkDialog $dname
- $wDLL SetDialog $dname bgcolor $rgb(255,255,255)
- $wDLL SetDialog $dname style border
- $wDLL SetColor $dname 4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,27,28,29,30 background $rgb(255,255,255)
- $wDLL SetColor $dname 4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,27 textbg $rgb(255,255,255)
- $wDLL SetColor $dname 28,29,30 text $rgb(255,0,0)
- $wDLL SetColor $dname 28,29,30 textbg $rgb(255,0,0)
- $wDLL SetControlMDX $dname 7 window > dll's/dialog.mdx
- window -Bw0+d @topic
- did -a $dname 7 grab $window(@topic).hwnd @topic
- did -h $dname 4,5-29,30
- tchan
- did -c $dname 1 1
- }
- if ($devent == sclick) {
- if ($did == 2) {
- if ($did(1)) && ($status == connected) && ($me ison $did(1).seltext) {
- did -v $dname 4,5-29,30
- var %chan $did(1).seltext,%op $round($calc($nick(%chan,0,o) / $nick(%chan,0) * 100),0) $+ $chr(37),%v $round($calc($nick(%chan,0,v) / $nick(%chan,0) * 100),0) $+ $chr(37),%u $round($calc($nick(%chan,0,hr) / $nick(%chan,0) * 100),0) $+ $chr(37)
- did -ra $dname 5 %chan
- clear @topic
- if ($chan(%chan).topic) echo @topic $chan(%chan).topic
- did -ra $dname 9 $chan(%chan).mode
- did -ra $dname 11 $nick(%chan,0)
- did -ra $dname 15 $nick(%Chan,0,o)
- did -ra $dname 16 %op
- did -ra $dname 18 $nick(%Chan,0,v)
- did -ra $dname 19 %v
- did -ra $dname 21 $nick(%Chan,0,hr)
- did -ra $dname 22 %u
- did -ra $dname 28 $chr(124) $+ $str($chr(124),%op)
- did -ra $dname 29 $chr(124) $+ $str($chr(124),%v)
- did -ra $dname 30 $chr(124) $+ $str($chr(124),%u)
- }
- else {
- dialog -x wstat
- return $input(WorldDMT - Info des canaux a été fermé. Pour plus de précaution $+ $chr(44) veuillez vérifier si vous êtes connecté au serveur $+ $chr(44) ou vous êtes encore sur le Chan sélectionné ensuite ouvrez l'addon,ow,WorldDMT - Info des canaux)
- }
- }
- }
- }
- on me:*:join:#:wjp
- on me:*:part:#:.timer 1 1 wjp
- on *:load:return $input(WorldDMT - Info des canaux a été bien installé.,o,WorldDMT - Info des canaux)
-
- ;________________________fin__________________________
;____________________menu________________________
menu status,nicklist,menubar {
-
Winfo Chan V1.1:wchanstat
-
}
;____________________Alias________________________
alias wchanstat {
if ($status != connected) {
return $input(Vous devez être connecté à un serveur avant d'ouvrir l'addon.,ow,WorldDMT - Info des canaux)
}
dialog $iif($dialog(wstat),-v,-m wstat) wstat
}
alias wDLL return dll $qt($scriptdirdll's/mdx.dll)
alias tchan didtok wstat 1 32 $regsubex($str(a,$chan(0)),/(a)/g,$+($iif($me ison $chan(\n),$chan(\n)),$chr(32)))
alias wjp {
if ($dialog(wstat)) {
did -h wstat 4,5-29,30
did -r wstat 1
tchan
did -c wstat 1 1
}
}
;____________________Dialog_______________________
dialog wstat {
title WorldDMT - Info des canaux
size -1 -1 646 290
option pixels notheme
combo 1, 10 63 100 70, drop
button Voir Info, 2, 118 64 80 18, flat
button Quitter, 3, 204 64 80 18, ok flat
text Info du Chan:, 4, 10 96 100 17
text , 5, 111 96 250 17
text Topic Du Chan:, 6, 10 114 75 17
button , 7, 10 131 632 50
text Mode du channel:, 8, 10 180 85 17
text , 9, 99 180 295 17
text Total chatteurs:, 10, 10 195 80 17
text , 11, 92 195 100 17
text Le nombre, 12, 79 221 65 17, center
text Pourcentage, 13, 152 221 62 17, center
text Operateurs:, 14, 10 240 60 17
text , 15, 79 240 65 17, right
text , 16, 159 240 40 17, right
text Voices:, 17, 10 259 60 17
text , 18, 79 259 65 17, right
text , 19, 159 259 40 17, right
text Autres:, 20, 10 279 60 17
text , 21, 79 279 65 17, right
text , 22, 159 279 40 17, right
box , 23, 5 231 213 69
box , 24, 75 214 76 86
box , 25, 149 214 69 86
box , 26, 5 251 213 28
box Le résultat graphique, 27, 229 214 415 86
text , 28, 234 240 405 17
text , 29, 234 259 405 17
text , 30, 234 279 405 17
icon 31, 0 0 650 60, statpic.jpg, 0 noborder
}
;_______________________event_________________________
on *:dialog:wstat:*:*: {
if ($devent == init) {
$wDLL SetMircVersion $version
$wDLL MarkDialog $dname
$wDLL SetDialog $dname bgcolor $rgb(255,255,255)
$wDLL SetDialog $dname style border
$wDLL SetColor $dname 4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,27,28,29,30 background $rgb(255,255,255)
$wDLL SetColor $dname 4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,27 textbg $rgb(255,255,255)
$wDLL SetColor $dname 28,29,30 text $rgb(255,0,0)
$wDLL SetColor $dname 28,29,30 textbg $rgb(255,0,0)
$wDLL SetControlMDX $dname 7 window > dll's/dialog.mdx
window -Bw0+d @topic
did -a $dname 7 grab $window(@topic).hwnd @topic
did -h $dname 4,5-29,30
tchan
did -c $dname 1 1
}
if ($devent == sclick) {
if ($did == 2) {
if ($did(1)) && ($status == connected) && ($me ison $did(1).seltext) {
did -v $dname 4,5-29,30
var %chan $did(1).seltext,%op $round($calc($nick(%chan,0,o) / $nick(%chan,0) * 100),0) $+ $chr(37),%v $round($calc($nick(%chan,0,v) / $nick(%chan,0) * 100),0) $+ $chr(37),%u $round($calc($nick(%chan,0,hr) / $nick(%chan,0) * 100),0) $+ $chr(37)
did -ra $dname 5 %chan
clear @topic
if ($chan(%chan).topic) echo @topic $chan(%chan).topic
did -ra $dname 9 $chan(%chan).mode
did -ra $dname 11 $nick(%chan,0)
did -ra $dname 15 $nick(%Chan,0,o)
did -ra $dname 16 %op
did -ra $dname 18 $nick(%Chan,0,v)
did -ra $dname 19 %v
did -ra $dname 21 $nick(%Chan,0,hr)
did -ra $dname 22 %u
did -ra $dname 28 $chr(124) $+ $str($chr(124),%op)
did -ra $dname 29 $chr(124) $+ $str($chr(124),%v)
did -ra $dname 30 $chr(124) $+ $str($chr(124),%u)
}
else {
dialog -x wstat
return $input(WorldDMT - Info des canaux a été fermé. Pour plus de précaution $+ $chr(44) veuillez vérifier si vous êtes connecté au serveur $+ $chr(44) ou vous êtes encore sur le Chan sélectionné ensuite ouvrez l'addon,ow,WorldDMT - Info des canaux)
}
}
}
}
on me:*:join:#:wjp
on me:*:part:#:.timer 1 1 wjp
on *:load:return $input(WorldDMT - Info des canaux a été bien installé.,o,WorldDMT - Info des canaux)
;________________________fin__________________________
Conclusion
telechargez l'addon et loader le winfo.data qui se trouve dans le dossier winfo.
Historique
- 16 octobre 2008 10:46:50 :
- $regsubex merci wims et j'ai ajouté la condition de presence a la $regsubex.
- 16 octobre 2008 16:25:29 :
- modification de titre
Sources du même auteur
Sources de la même categorie
Sources en rapport avec celle ci
Commentaires et avis
Discussions en rapport avec ce code source dans le forum
Help :) [ par jujuquatre ]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~JuJuQuArTrE s^ s^ s^ JuJu_BoT WWW.ut2004.fr.st~~~~~~~~~~~~~~~~~~~~~~~~~~~~Ben voila J'ai commencer un addon de auto-mode (
addon get + queue = ban du serv [ par Illuvatar ]
Est ce kkun soré faire un code du style 1 get + 1 queue = ban du fserv ?Merci d'avance [/purple] Noldor, blood is on your hands. You're banned, a tear
Addon Recuperation de gline et suppression auto [ par motherboy ]
Bonjour,Ne connaissant pas trop le language de script mirc, j'viens par ce forum demander a un extreme codeur mirc de bien vouloir m'aider.En gros je
Bot qui fait des statistique d'un chan [ par Elnath ]
Bonjour, j'aimerais savoir si quelqu'un pourrais me faire, ou me trouver un bot qui permet de faire des statistique d'un chan ( nombre moyen de person
+o directement sur le canal [ par rompell ]
Salut :)Je cherche depuis 2 jours un addon pour faire +o ou simplement op, deop, voice... directement sur le canal. Style on dis DEOP sur le canal et
et le multicolor ????? [ par duchemolle ]
Bonjours a tous ! je suis un nouveau membre et nb dans le scripting .Et j aimerais si possible que quelqu'un fasse une ecriture alternée multicouleure
bot ou addon badchan [ par HAAGEN ]
Bonjour je voudrais savoir si il existe un addon badchan a rajouté a mon cservice ou un bot en mirc et non eggdrop ' je m'explique le robot fait un wh
Script couleur : répétition lors de message !?? [ par folo ]
Salut à vous tous !Voilà je suis sur INVISION et il s'avère que j'ai installé un bel addon de couleur comme vous ne les aimez pas ... je sais (ça c'es
Aide [ par Marsupiot ]
Bonjour à tous, Je sais qu'il existe un addon qui fait que quand vous etes admin ou ircop vous pouvez changer les pseudos des users. Il fut un t
Demande addon mirc " cservice" [ par HAAGEN ]
Bonjour je voudrais savoir si il existe un addon pour cservice "Mirc" je m'explique pour que mon bot déop automatiquement les opés au bout d
|
Téléchargements
Logiciels à télécharger sur le même thème :
|