Trouver une ressource (Nouvelle version du moteur, plus rapide & pertinent, essayez le !)
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 !
REPONDEUR TOUT SIMPLE.....
Information sur la source
Description
c ma premiere source donc voila
c'est un simple repondeur
G pris l'optimisation en ini par ChanG-Fu
Source
- alias rep { dialog -m rep rep }
- alias -l hcolor { if ($1 = e) { return $replace($2-,,~,,s,,§) } | if ($1 = d) { return $replace($2-,~,,s,,§,) } }
- on ^1:open:?:{ if ($readini($shortfn($scriptdir) $+ repondeur.ini,repondeur,rep) = on) { msg $nick $hcolor(d,$replace($readini($shortfn($scriptdir) $+ repondeur.ini,repondeur,repmsg),<nick>,$nick)) } }
- dialog rep {
- title "Repondeur By [thomas95"
- size -1 -1 150 60
- option dbu
- text "Repondeur By Thomas",1,80 48 85 8,disable
- edit "",7,9 8 132 10
- box "Tapez Votre Msg ci-dessou",5,5 0 141 23
- edit "",3, 60 27 86 10,disable
- check "Activ/Desactiv",6,5 27 50 10
- button "Enregistrer",2,5 45 54 12,flat,ok
- }
- on *:dialog:rep:init:*:{
- if ($readini($shortfn($scriptdir) $+ repondeur.ini,repondeur,rep) = on) { did -c rep 6 | did -a rep 3 Répondeur: ACTIVÉ }
- else { did -a rep 3 Répondeur: DESACTIVÉ }
- did -a rep 7 $hcolor(d,$readini($shortfn($scriptdir) $+ repondeur.ini,repondeur,repmsg))
- if (!$readini($shortfn($scriptdir) $+ repondeur.ini,repondeur,repmsg)) { did -a rep 7 12Salut 4<nick>12. Attend j'arrive. }
- }
- on *:dialog:rep:sclick:2:{
- if ($did(7)) { writeini $shortfn($scriptdir) $+ repondeur.ini repondeur repmsg $hcolor(e,$did(rep,7)) }
- else { remini $shortfn($scriptdir) $+ repondeur.ini repondeur repmsg }
- }
- on *:dialog:rep:sclick:6: {
- if ($did(6).state = 1) { writeini $shortfn($scriptdir) $+ repondeur.ini repondeur rep on | did -ra rep 3 Repondeur: ACTIVÉ }
- else { writeini $shortfn($scriptdir) $+ repondeur.ini repondeur rep off | did -ra rep 3 Repondeur: DESACTIVÉ }
- }
- menu * {
- -
- Mon Répondeur:/rep
- -
- }
- on 1:load:{ echo -a 15Addon bien loadé | echo -a 15 Pour le lancer tape /rep | .timer 1 1 rep }
alias rep { dialog -m rep rep }
alias -l hcolor { if ($1 = e) { return $replace($2-,,~,,s,,§) } | if ($1 = d) { return $replace($2-,~,,s,,§,) } }
on ^1:open:?:{ if ($readini($shortfn($scriptdir) $+ repondeur.ini,repondeur,rep) = on) { msg $nick $hcolor(d,$replace($readini($shortfn($scriptdir) $+ repondeur.ini,repondeur,repmsg),<nick>,$nick)) } }
dialog rep {
title "Repondeur By [thomas95"
size -1 -1 150 60
option dbu
text "Repondeur By Thomas",1,80 48 85 8,disable
edit "",7,9 8 132 10
box "Tapez Votre Msg ci-dessou",5,5 0 141 23
edit "",3, 60 27 86 10,disable
check "Activ/Desactiv",6,5 27 50 10
button "Enregistrer",2,5 45 54 12,flat,ok
}
on *:dialog:rep:init:*:{
if ($readini($shortfn($scriptdir) $+ repondeur.ini,repondeur,rep) = on) { did -c rep 6 | did -a rep 3 Répondeur: ACTIVÉ }
else { did -a rep 3 Répondeur: DESACTIVÉ }
did -a rep 7 $hcolor(d,$readini($shortfn($scriptdir) $+ repondeur.ini,repondeur,repmsg))
if (!$readini($shortfn($scriptdir) $+ repondeur.ini,repondeur,repmsg)) { did -a rep 7 12Salut 4<nick>12. Attend j'arrive. }
}
on *:dialog:rep:sclick:2:{
if ($did(7)) { writeini $shortfn($scriptdir) $+ repondeur.ini repondeur repmsg $hcolor(e,$did(rep,7)) }
else { remini $shortfn($scriptdir) $+ repondeur.ini repondeur repmsg }
}
on *:dialog:rep:sclick:6: {
if ($did(6).state = 1) { writeini $shortfn($scriptdir) $+ repondeur.ini repondeur rep on | did -ra rep 3 Repondeur: ACTIVÉ }
else { writeini $shortfn($scriptdir) $+ repondeur.ini repondeur rep off | did -ra rep 3 Repondeur: DESACTIVÉ }
}
menu * {
-
Mon Répondeur:/rep
-
}
on 1:load:{ echo -a 15Addon bien loadé | echo -a 15 Pour le lancer tape /rep | .timer 1 1 rep }
Conclusion
voila je tien a remercier remi34 qui ma un peu aidé enfin voila ....
Sources de la même categorie
Commentaires
|
CalendriCode
| | | L | M | M | J | V | S | D |
| | 1 | 2 | 3 | 4 | 5 | 6 |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 | | | |
|
|