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
[DIVERS] SUIVRE VOS SéRIES PRéFéRéS SUR LA TOILE[DIVERS] SUIVRE VOS SéRIES PRéFéRéS SUR LA TOILE par orion
Comme de nombreux geek, je suis un grand amateur de série TV et je rate régulièrement des épisodes de mes séries préférés. Une solution s'offre à vous avec ce merveilleux site : Tv Gorge - www.tvgorge.com Moteur de recherche à l'appui, vous pouvez ...
Cliquez pour lire la suite de l'article par orion TECHDAYS PARIS 2010 : LA BI DANS SHAREPOINT 2010TECHDAYS PARIS 2010 : LA BI DANS SHAREPOINT 2010 par ROMELARD Fabrice
Animé par: Vincent Bellet et Baptiste Giraudier La BI dans SharePoint 2010, Les nouveaux services d'application dans SP2010 et SQL Server Reporting services 2008 R2. La BI dans SharePoint est généralisée pour tous afin de permettre à tous les coll...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice TECHDAYS PARIS 2010 : PLAN DE MIGRATION VERS SHAREPOINT 2010TECHDAYS PARIS 2010 : PLAN DE MIGRATION VERS SHAREPOINT 2010 par ROMELARD Fabrice
Animé par: Arnault Nouvel et Antoine Dongois Le processus à prendre : Apprendre (découvrir la plateforme) Préparer (documenter l'historique et choisir la méthode de MAJ) Test (Test de MAJ) Implémenter (Effectuer la MAJ) Valid...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice TECHDAYS PARIS 2010 : LA PLEINIèRE DU SECOND JOURTECHDAYS PARIS 2010 : LA PLEINIèRE DU SECOND JOUR par ROMELARD Fabrice
Après un retour sur l'histoire des TechDays de Paris et le fait que ce soit le plus gros event MS au monde (du fait de sa gratuité), le président de MS France (Eric Boustoullier) a fait une présentation de la vision Microsoft pour les années à venir...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice
Forum
RE : ON RAWMODERE : ON RAWMODE par WorldDMT
Cliquez pour lire la suite par WorldDMT AVERTISSMENT ET KIKKAVERTISSMENT ET KIKK par mouhcine951990
Cliquez pour lire la suite par mouhcine951990
Logiciels
DB-MAIN (9.1.0)DB-MAIN (9.1.0)DB-MAIN is a data-modeling and data-architecture tool. It is designed to help developers and anal... Cliquez pour télécharger DB-MAIN Xilisoft DPG Convertisseur (5.1.37.0120)XILISOFT DPG CONVERTISSEUR (5.1.37.0120)Xilisoft DPG Convertisseur offre aux fans de Nintendo DS une bonne solution leur permettant de dé... Cliquez pour télécharger Xilisoft DPG Convertisseur GraphicsGale (2.01.01)GRAPHICSGALE (2.01.01)GraphicsGale est un logiciel de PixelArt avec de nombreuse fonctionnalités permettant de réalisé ... Cliquez pour télécharger GraphicsGale Architecte 3D (Platinum 2010)ARCHITECTE 3D (PLATINUM 2010)Architecte 3D Platinium vous permet de concevoir facilement les plans votre future maison, de l'é... Cliquez pour télécharger Architecte 3D TeamViewer 5 (TeamViewer 5)TEAMVIEWER 5 (TEAMVIEWER 5)Dépanner un ami,expliquer une manipulation devient un jeu d'enfant.
Prise en main d'un autre ord... Cliquez pour télécharger TeamViewer 5
|