Accueil > > > MP3 SIMPLE EN MOINS DE 100 LIGNES MEME SI C'EST DU DEJA VUE
MP3 SIMPLE EN MOINS DE 100 LIGNES MEME SI C'EST DU DEJA VUE
Information sur la source
Description
J'ai décidé de me remettre au scripting, ca fesait 5 mois que j'ai arreter , j'ai décidé de faire un Mp3 , donc que j'ai jamais réussi a faire par avant (mais bon) Simple a lancé , /amp3 Tres différent de ce que vous aviez vu , alors éssayé par essaie erreur on le comprend vite ce qu'on ma dit
Source
- menu menubar,channel {
- Mp3 by arc:amp3
- }
- alias amp3 { dialog -md mp3 mp3 }
- dialog mp3 {
- title "Lecteur Mp3 (archeloga) 15.11.05"
- size -1 -1 167 86
- option dbu
- edit "", 1, 2 3 31 10, read autohs
- edit "", 2, 2 14 31 10, read autohs
- edit "", 3, 2 25 31 10, read autohs
- edit "", 4, 2 36 31 10, read autohs
- edit "", 5, 2 47 31 10, read autohs
- button "Rw", 6, 2 71 15 12
- button "Stop", 7, 20 71 15 12
- button "Break", 8, 38 71 15 12
- button "Play", 9, 56 71 15 12
- button "Fw", 10, 74 71 15 12
- list 11, 40 10 122 47, size vsbar
- button "+", 12, 92 58 15 12
- button "-", 13, 110 58 15 12
- button "+ R", 14, 128 58 15 12
- button "Del", 15, 146 58 15 12
- button "+ S", 17, 38 58 15 12
- button "Mute", 18, 56 58 15 12
- button "- S", 19, 74 58 15 12
- edit "", 20, 40 1 122 10, read autohs
- button "Quitter !", 21, 128 72 34 12
- edit "", 22, 2 58 31 10, read autohs
- button "?", 16, 92 71 15 12
- }
- on *:dialog:mp3:init:*:mp3la
- on *:dialog:mp3:sclick:*:{
- if $did == 11 { did -ra mp3 20 $did(mp3,11).seltext }
- elseif $did == 6 {
- if (%mp3rf == 1) { set %mp3rf $lines(txt.txt) | splay $read(txt.txt,%mp3rf) | dialog -t mp3 $nopath($read(txt.txt,%mp3rf)) | mp3info }
- else { dec %mp3rf | splay $read(txt.txt,%mp3rf) | dialog -t mp3 $nopath($read(txt.txt,%mp3rf)) | mp3info }
- }
- elseif $did == 7 { splay stop }
- elseif $did == 9 { splay $read(txt.txt,$did(mp3,11).sel) | dialog -t mp3 $did(mp3,11).seltext | set %mp3rf $did(mp3,11).sel | mp3info }
- elseif $did == 10 {
- if (%mp3rf == $lines(txt.txt)) { splay $read(txt.txt,1) | set %mp3rf 1 | dialog -t mp3 $nopath($read(txt.txt,%mp3rf)) | mp3info }
- else { inc %mp3rf | splay $read(txt.txt,%mp3rf) | dialog -t mp3 $nopath($read(txt.txt,%mp3rf)) | mp3info }
- }
- elseif $did == 12 { write txt.txt $sfile(*.mp3,Recherche d'un fichier Mp3,Ajouter le mp3) | refreshmp3 }
- elseif $did == 14 {
- var %mp3a $sdir(dir,Dossier Mp3)
- var %mp3ax 1
- while (%mp3ax <= $findfile(%mp3a,*.mp3,0)) {
- write txt.txt $findfile(%mp3a,*.mp3,%mp3ax) | inc %mp3ax
- }
- mp3la
- }
- elseif $did == 15 { .remove txt.txt | did -r mp3 11 }
- elseif $did == 16 { echo -a - | echo -a Mp3 v1 par archeloga | echo -a Pour dire ce que tu écoute tape !play avec info tape !pinfo
- echo -a si tu as des problemes avec le Mp3 écrit moi sur warthog15@hotmail.com | echo -a - }
- elseif $did == 8 {
- if (%loly == 1) { splay resume | unset %loly }
- else { splay pause | set %loly 1 }
- }
- elseif $did == 18 {
- if (%muet == 1) { vol -vu2 | unset %muet }
- else { vol -vu1 | set %muet 1 }
- }
- elseif $did == 17 { vol -w $calc($Int($Vol(Wave)) +5000) }
- elseif $did == 19 { vol -w $calc($Int($Vol(Wave)) - 5000) }
- elseif $did == 13 {
- write -dl [ $+ [ $did(mp3,11).sel ] ] txt.txt
- did -d $dname 11 $did(mp3,11).sel
- }
- elseif $did == 21 { splay stop | dialog -x mp3 }
- }
- on *:dialog:mp3:dclick:*:{
- if $did == 11 { splay $read(txt.txt,$did(mp3,11).sel) | dialog -t mp3 $did(mp3,11).seltext | set %mp3rf $did(mp3,11).sel | mp3info }
- }
- alias -l mp3la {
- var %mp3aa 1
- while (%mp3aa <= $lines(txt.txt)) {
- did -a mp3 11 $nopath($read(txt.txt,%mp3aa)) | inc %mp3aa
- }
- }
- alias -l refreshmp3 { did -r mp3 11 | mp3la }
- alias -l mp3info {
- did -ra mp3 1 $sound($read(txt.txt,$did(mp3,11).sel)).artist
- did -ra mp3 2 $sound($read(txt.txt,$did(mp3,11).sel)).year
- did -ra mp3 3 $sound($read(txt.txt,$did(mp3,11).sel)).album
- did -ra mp3 4 $sound($read(txt.txt,$did(mp3,11).sel)).genre
- did -ra mp3 5 $duration($calc($sound($read(txt.txt,$did(mp3,11).sel)).length /1000).2)
- did -ra mp3 22 $round($calc($file($read(txt.txt,$did(mp3,11).sel))/1000000),2) Mb
- }
- on *:input:#:{
- if $1 == !play { .timermp32 1 1 describe $active écoute présentement $nopath($read(txt.txt,%mp3rf)) $+([,$duration($calc($insong.pos /1000)),/,$duration($calc($sound($read(txt.txt,%mp3rf)).length /1000)),]) $+([,$round($calc($insong.pos /1000 *100 / $calc($sound($read(txt.txt,%mp3rf)).length /1000)),1),%,]) }
- if $1 == !pinfo { .timermp32 1 1 describe $active écoute présentement $nopath($read(txt.txt,%mp3rf)) $+([,$duration($calc($insong.pos /1000)),/,$duration($calc($sound($read(txt.txt,%mp3rf)).length /1000)),]) $+([,$round($calc($insong.pos /1000 *100 / $calc($sound($read(txt.txt,%mp3rf)).length /1000)),1),%,]) $+([,$round($calc($file($read(txt.txt,%mp3rf))/1000000),2),Mb]) $+([,$sound($read(txt.txt,%mp3rf)).bitrate,Kbps]) $+([,Vol: $Int($Vol(Wave)),]) $+([Genre: ,$sound($read(txt.txt,$did(mp3,11).sel)).genre,]) }
- }
menu menubar,channel {
Mp3 by arc:amp3
}
alias amp3 { dialog -md mp3 mp3 }
dialog mp3 {
title "Lecteur Mp3 (archeloga) 15.11.05"
size -1 -1 167 86
option dbu
edit "", 1, 2 3 31 10, read autohs
edit "", 2, 2 14 31 10, read autohs
edit "", 3, 2 25 31 10, read autohs
edit "", 4, 2 36 31 10, read autohs
edit "", 5, 2 47 31 10, read autohs
button "Rw", 6, 2 71 15 12
button "Stop", 7, 20 71 15 12
button "Break", 8, 38 71 15 12
button "Play", 9, 56 71 15 12
button "Fw", 10, 74 71 15 12
list 11, 40 10 122 47, size vsbar
button "+", 12, 92 58 15 12
button "-", 13, 110 58 15 12
button "+ R", 14, 128 58 15 12
button "Del", 15, 146 58 15 12
button "+ S", 17, 38 58 15 12
button "Mute", 18, 56 58 15 12
button "- S", 19, 74 58 15 12
edit "", 20, 40 1 122 10, read autohs
button "Quitter !", 21, 128 72 34 12
edit "", 22, 2 58 31 10, read autohs
button "?", 16, 92 71 15 12
}
on *:dialog:mp3:init:*:mp3la
on *:dialog:mp3:sclick:*:{
if $did == 11 { did -ra mp3 20 $did(mp3,11).seltext }
elseif $did == 6 {
if (%mp3rf == 1) { set %mp3rf $lines(txt.txt) | splay $read(txt.txt,%mp3rf) | dialog -t mp3 $nopath($read(txt.txt,%mp3rf)) | mp3info }
else { dec %mp3rf | splay $read(txt.txt,%mp3rf) | dialog -t mp3 $nopath($read(txt.txt,%mp3rf)) | mp3info }
}
elseif $did == 7 { splay stop }
elseif $did == 9 { splay $read(txt.txt,$did(mp3,11).sel) | dialog -t mp3 $did(mp3,11).seltext | set %mp3rf $did(mp3,11).sel | mp3info }
elseif $did == 10 {
if (%mp3rf == $lines(txt.txt)) { splay $read(txt.txt,1) | set %mp3rf 1 | dialog -t mp3 $nopath($read(txt.txt,%mp3rf)) | mp3info }
else { inc %mp3rf | splay $read(txt.txt,%mp3rf) | dialog -t mp3 $nopath($read(txt.txt,%mp3rf)) | mp3info }
}
elseif $did == 12 { write txt.txt $sfile(*.mp3,Recherche d'un fichier Mp3,Ajouter le mp3) | refreshmp3 }
elseif $did == 14 {
var %mp3a $sdir(dir,Dossier Mp3)
var %mp3ax 1
while (%mp3ax <= $findfile(%mp3a,*.mp3,0)) {
write txt.txt $findfile(%mp3a,*.mp3,%mp3ax) | inc %mp3ax
}
mp3la
}
elseif $did == 15 { .remove txt.txt | did -r mp3 11 }
elseif $did == 16 { echo -a - | echo -a Mp3 v1 par archeloga | echo -a Pour dire ce que tu écoute tape !play avec info tape !pinfo
echo -a si tu as des problemes avec le Mp3 écrit moi sur warthog15@hotmail.com | echo -a - }
elseif $did == 8 {
if (%loly == 1) { splay resume | unset %loly }
else { splay pause | set %loly 1 }
}
elseif $did == 18 {
if (%muet == 1) { vol -vu2 | unset %muet }
else { vol -vu1 | set %muet 1 }
}
elseif $did == 17 { vol -w $calc($Int($Vol(Wave)) +5000) }
elseif $did == 19 { vol -w $calc($Int($Vol(Wave)) - 5000) }
elseif $did == 13 {
write -dl [ $+ [ $did(mp3,11).sel ] ] txt.txt
did -d $dname 11 $did(mp3,11).sel
}
elseif $did == 21 { splay stop | dialog -x mp3 }
}
on *:dialog:mp3:dclick:*:{
if $did == 11 { splay $read(txt.txt,$did(mp3,11).sel) | dialog -t mp3 $did(mp3,11).seltext | set %mp3rf $did(mp3,11).sel | mp3info }
}
alias -l mp3la {
var %mp3aa 1
while (%mp3aa <= $lines(txt.txt)) {
did -a mp3 11 $nopath($read(txt.txt,%mp3aa)) | inc %mp3aa
}
}
alias -l refreshmp3 { did -r mp3 11 | mp3la }
alias -l mp3info {
did -ra mp3 1 $sound($read(txt.txt,$did(mp3,11).sel)).artist
did -ra mp3 2 $sound($read(txt.txt,$did(mp3,11).sel)).year
did -ra mp3 3 $sound($read(txt.txt,$did(mp3,11).sel)).album
did -ra mp3 4 $sound($read(txt.txt,$did(mp3,11).sel)).genre
did -ra mp3 5 $duration($calc($sound($read(txt.txt,$did(mp3,11).sel)).length /1000).2)
did -ra mp3 22 $round($calc($file($read(txt.txt,$did(mp3,11).sel))/1000000),2) Mb
}
on *:input:#:{
if $1 == !play { .timermp32 1 1 describe $active écoute présentement $nopath($read(txt.txt,%mp3rf)) $+([,$duration($calc($insong.pos /1000)),/,$duration($calc($sound($read(txt.txt,%mp3rf)).length /1000)),]) $+([,$round($calc($insong.pos /1000 *100 / $calc($sound($read(txt.txt,%mp3rf)).length /1000)),1),%,]) }
if $1 == !pinfo { .timermp32 1 1 describe $active écoute présentement $nopath($read(txt.txt,%mp3rf)) $+([,$duration($calc($insong.pos /1000)),/,$duration($calc($sound($read(txt.txt,%mp3rf)).length /1000)),]) $+([,$round($calc($insong.pos /1000 *100 / $calc($sound($read(txt.txt,%mp3rf)).length /1000)),1),%,]) $+([,$round($calc($file($read(txt.txt,%mp3rf))/1000000),2),Mb]) $+([,$sound($read(txt.txt,%mp3rf)).bitrate,Kbps]) $+([,Vol: $Int($Vol(Wave)),]) $+([Genre: ,$sound($read(txt.txt,$did(mp3,11).sel)).genre,]) }
}
Conclusion
Il aurait une autre version mais plus tard..
Sources du même auteur
Sources de la même categorie
Commentaires et avis
Discussions en rapport avec ce code source dans le forum
Un mp3 et dcc auto [ par romeomd ]
VincentBonjour, je suis a la recher d'un addons, quand qqun va dans mon pv, il fait !Musiquealors la, une liste de musique s'affiche, et il fais son c
probleme avec un remote pr mp3 !!!!!!!! [ par wizord ]
alrs voila le pb .... g un remote pr lire les fichier mp3 par input ... je tape par exemple : !mp3 blable et mon remote est chargé de me trouve la mu
Probléme fichier mp3 [ par Raziell ]
Bonjour à tous,J'ai créé un lecteur mp3, mais je n'arrive pas a faire " lire " mIRC les fichier .mp3 un par un !Si quelqu'un sais comment il faut fair
musique de debut pr un script :D [ par bibi_81 ]
Je voudrais savoir comment faire pour que au lancement de mon script il y ai une musique qui se joue ...? Merci ce serait sympa de repondre tres vite
je voudrai faire un lecteur MP3 et MIDI (si possible) [ par bibi_81 ]
Voila jai deja tout di je voudrais faire un lecteur MP >ET< MIDI siouplait ... Deja me demanderez vous le formtat MIDI est peu repandu NON !!moi
musique de démarage [ par killersbrothers ]
killersbrothersslt!!je pourait savoir comment on met un musique au démarage du script jai completement oublié
probleme de else (comme d'hab') lol [ par J4Gu4R ]
bon j'voulais un son pour ma fenetre query lorsque k'elle est pas active (jusque là tout va bien)évidemment quand ya pas de son configuré ça me met er
Petit probleme de bwrite [ par VestaX ]
hello les gens!! Voilà, je suis en train de crée un addon pour décompresser les fichier.cdaen fichiers.mp3Voilà ma sourcebwrite te
DCC [ par gidzit ]
Bonjour je voudré crée un envois de ficher sur un double clickex: 03:33:31 * TonTon Ecoute ( Mylo - Drop The Pressure ) Time: ( 1:47/5:11 (3
Hdel qui marche pas [ par wims ]
Voila je realise un lecteur mp3 en ce moment et il y a un probleme lorsque je ve supprimer un mp3 : il ne supprime pas la ligne de ma list mais il la
|
Derniers Blogs
TECHDAYS PARIS 2012 : NOUVELLES TENDANCES DU POSTE DE TRAVAIL - BRING YOUR OWN PCTECHDAYS PARIS 2012 : NOUVELLES TENDANCES DU POSTE DE TRAVAIL - BRING YOUR OWN PC par ROMELARD Fabrice
Speakers: Thierry Rapatout, Antoine Petit et Xavier Trebbia Cette session entre dans le cadre des RDV Décideurs des TechDays 2012, elle est liée à la consumérisation de l'IT et la mise en place du "DeskTop as a Service" dans de plus en ...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice 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
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
|