Accueil > > > MP3 INPUT + DIALOG.
MP3 INPUT + DIALOG.
Information sur la source
Description
Lis, stop, replay, pause , reprend , changement de repertoire possible, annonce le nombre de mp3 ...
Source
- dialog mp3 {
- title "Lecteur mp3"
- size -1 -1 206 101
- option dbu notheme
- list 1, 42 4 160 81, size
- button "Jouer", 2, 4 4 37 12, flat
- button "Stoper", 3, 4 18 37 12, flat
- button "Pause", 4, 4 32 37 12, flat
- button "Reprendre", 7, 4 46 37 12, flat
- button "PlayLisT", 8, 4 60 37 12, flat
- box "", 10, 2 -1 202 100
- scroll "", 11, 5 88 83 8, range 0 100 horizontal bottom
- text "« 0 — Mute. »", 12, 93 89 70 7
- text "Zik:",13, 165 89 20 7
- text "",14, 176 89 40 7
- button "Fermer", 6, 4 74 37 12, ok
- }
-
- alias CFGMP3 { if ($dialog(mp3)) { did -r mp3 1 | set %Mp3Player.Repertoire $$sdir(C:\,Liste des MP3) | set %InutilemaisObligé. $findfile(%Mp3Player.Repertoire,*.mp3,*,didtok mp3 1 C $left($nopath($1-),$calc($len($nopath($1-)) - 4))) } }
- on *:dialog:mp3:dclick:1: { splay -p " $+ %Mp3Player.Repertoire $+ $did(mp3,1).seltext $+ .mp3 $+ " }
- on *:dialog:mp3:sclick:2: { splay -p " $+ %Mp3Player.Repertoire $+ $did(mp3,1).seltext $+ .mp3 $+ " }
- on *:dialog:mp3:sclick:3: { splay stop }
- on *:dialog:mp3:sclick:4: { splay -p pause | didmp3 }
- on *:dialog:mp3:sclick:7: { splay -p resume | didmp3 }
- on *:dialog:mp3:sclick:8: { CFGMP3 }
- on *:dialog:mp3:scroll:11: { vol -p $int($calc($did(mp3,11).sel * 65535 / 100)) | did -ar mp3 12 volume du mp3 à $int($calc($vol(song) / 65535 * 100)) $+ % }
- on *:dialog:mp3:init:*: {
- set %InutilemaisObligé. $findfile(%Mp3Player.Repertoire,*.mp3,*,didtok mp3 1 C $left($nopath($1-),$calc($len($nopath($1-)) - 4)))
- did -ar mp3 12 volume du mp3 à $int($calc($vol(song) / 65535 * 100)) $+ %
- did -c mp3 11 $int($calc($vol(song) / 65535 * 100))
- did -a mp3 14 $findfile(%Mp3Player.Repertoire,*.mp3,0) mp3
- }
- on *:MP3END: {
- if (%automatique == Actif) { splay $findfile($longfn(%Mp3Player.Repertoire),*.mp3,$rand(1,$findfile($longfn(%Mp3Player.Repertoire),*.mp3,0))) | echo -a * mp3: $replace($left($nopath($insong.fname),-4), $2-, $+ $2- $+ ) — $duration($calc($mp3($insong.fname).length / $& 1000))
- }
- }
- on *:input:*:{
- if ($1 == info) { if ($int($calc(($insong.pos / $insong.length) * 100)) != $null) { echo -a * mp3: $left($nopath($insong.fname),-4) — $duration($calc($mp3($insong.fname).length / $& 1000)) | echo -a * mp3: temps écoulé — $duration($calc($insong.pos /1000)) de $duration($calc($mp3($insong.fname).length / $& 1000)) soit $int($calc(($insong.pos / $insong.length) * 100)) $+ $chr(37) | else { echo -a * mp3: aucune musique en cours de lecture. } } }
- if ($1 == avancé) { splay seek $round($calc($insong.length * $2 / 100),0) | echo -a * mp3: musique avancé à $2 $+ % du morceau. }
- if ($1 == liste) { echo -a * mp3: $findfile(%Mp3Player.Repertoire,*.mp3,0) musiques dans ce répertoire. }
- if ($1 == stop) { splay stop }
- if ($1 == volume) { if ($2 <= 100) { vol -p $calc(655.36 * $2) } }
- if ($1 == repertoire) { set %Mp3Player.Repertoire $shortfn($$sdir(C:\,Liste des MP3)) }
- if ($1 == replay) { splay seek | echo -a * mp3: $replace($left($nopath($insong.fname),-4), $2-, $2- ) — $duration($calc($mp3($insong.fname).length / $& 1000)) }
- if ($1 == *) {
- if ( $exists($longfn(%Mp3Player.Repertoire)) == $false ) { set %Mp3Player.Repertoire $shortfn($$sdir(C:\,Liste des MP3)) }
- if ( $2 != $null ) && ( $findfile($longfn(%Mp3Player.Repertoire),* $+ $2- $+ *.mp3,1) != $null ) { splay $findfile($longfn(%Mp3Player.Repertoire),* $+ $2- $+ *.mp3,$rand(1,$findfile($longfn(%Mp3Player.Repertoire),* $+ $2- $+ *.mp3,0))) }
- if ( $2 == $null ) { splay $findfile($longfn(%Mp3Player.Repertoire),*.mp3,$rand(1,$findfile($longfn(%Mp3Player.Repertoire),*.mp3,0))) }
- if ( $server != $null ) && ( $findfile($longfn(%Mp3Player.Repertoire),* $+ $2- $+ *.mp3,1) != $null ) { echo -a * mp3: $replace($left($nopath($insong.fname),-4), $2-, $+ $2- $+ ) — $duration($calc($mp3($insong.fname).length / $& 1000)) }
- elseif ( $2 != $null ) { echo -a * mp3: $2- — introuvable. }
- :end
- }
dialog mp3 {
title "Lecteur mp3"
size -1 -1 206 101
option dbu notheme
list 1, 42 4 160 81, size
button "Jouer", 2, 4 4 37 12, flat
button "Stoper", 3, 4 18 37 12, flat
button "Pause", 4, 4 32 37 12, flat
button "Reprendre", 7, 4 46 37 12, flat
button "PlayLisT", 8, 4 60 37 12, flat
box "", 10, 2 -1 202 100
scroll "", 11, 5 88 83 8, range 0 100 horizontal bottom
text "« 0 — Mute. »", 12, 93 89 70 7
text "Zik:",13, 165 89 20 7
text "",14, 176 89 40 7
button "Fermer", 6, 4 74 37 12, ok
}
alias CFGMP3 { if ($dialog(mp3)) { did -r mp3 1 | set %Mp3Player.Repertoire $$sdir(C:\,Liste des MP3) | set %InutilemaisObligé. $findfile(%Mp3Player.Repertoire,*.mp3,*,didtok mp3 1 C $left($nopath($1-),$calc($len($nopath($1-)) - 4))) } }
on *:dialog:mp3:dclick:1: { splay -p " $+ %Mp3Player.Repertoire $+ $did(mp3,1).seltext $+ .mp3 $+ " }
on *:dialog:mp3:sclick:2: { splay -p " $+ %Mp3Player.Repertoire $+ $did(mp3,1).seltext $+ .mp3 $+ " }
on *:dialog:mp3:sclick:3: { splay stop }
on *:dialog:mp3:sclick:4: { splay -p pause | didmp3 }
on *:dialog:mp3:sclick:7: { splay -p resume | didmp3 }
on *:dialog:mp3:sclick:8: { CFGMP3 }
on *:dialog:mp3:scroll:11: { vol -p $int($calc($did(mp3,11).sel * 65535 / 100)) | did -ar mp3 12 volume du mp3 à $int($calc($vol(song) / 65535 * 100)) $+ % }
on *:dialog:mp3:init:*: {
set %InutilemaisObligé. $findfile(%Mp3Player.Repertoire,*.mp3,*,didtok mp3 1 C $left($nopath($1-),$calc($len($nopath($1-)) - 4)))
did -ar mp3 12 volume du mp3 à $int($calc($vol(song) / 65535 * 100)) $+ %
did -c mp3 11 $int($calc($vol(song) / 65535 * 100))
did -a mp3 14 $findfile(%Mp3Player.Repertoire,*.mp3,0) mp3
}
on *:MP3END: {
if (%automatique == Actif) { splay $findfile($longfn(%Mp3Player.Repertoire),*.mp3,$rand(1,$findfile($longfn(%Mp3Player.Repertoire),*.mp3,0))) | echo -a * mp3: $replace($left($nopath($insong.fname),-4), $2-, $+ $2- $+ ) — $duration($calc($mp3($insong.fname).length / $& 1000))
}
}
on *:input:*:{
if ($1 == info) { if ($int($calc(($insong.pos / $insong.length) * 100)) != $null) { echo -a * mp3: $left($nopath($insong.fname),-4) — $duration($calc($mp3($insong.fname).length / $& 1000)) | echo -a * mp3: temps écoulé — $duration($calc($insong.pos /1000)) de $duration($calc($mp3($insong.fname).length / $& 1000)) soit $int($calc(($insong.pos / $insong.length) * 100)) $+ $chr(37) | else { echo -a * mp3: aucune musique en cours de lecture. } } }
if ($1 == avancé) { splay seek $round($calc($insong.length * $2 / 100),0) | echo -a * mp3: musique avancé à $2 $+ % du morceau. }
if ($1 == liste) { echo -a * mp3: $findfile(%Mp3Player.Repertoire,*.mp3,0) musiques dans ce répertoire. }
if ($1 == stop) { splay stop }
if ($1 == volume) { if ($2 <= 100) { vol -p $calc(655.36 * $2) } }
if ($1 == repertoire) { set %Mp3Player.Repertoire $shortfn($$sdir(C:\,Liste des MP3)) }
if ($1 == replay) { splay seek | echo -a * mp3: $replace($left($nopath($insong.fname),-4), $2-, $2- ) — $duration($calc($mp3($insong.fname).length / $& 1000)) }
if ($1 == *) {
if ( $exists($longfn(%Mp3Player.Repertoire)) == $false ) { set %Mp3Player.Repertoire $shortfn($$sdir(C:\,Liste des MP3)) }
if ( $2 != $null ) && ( $findfile($longfn(%Mp3Player.Repertoire),* $+ $2- $+ *.mp3,1) != $null ) { splay $findfile($longfn(%Mp3Player.Repertoire),* $+ $2- $+ *.mp3,$rand(1,$findfile($longfn(%Mp3Player.Repertoire),* $+ $2- $+ *.mp3,0))) }
if ( $2 == $null ) { splay $findfile($longfn(%Mp3Player.Repertoire),*.mp3,$rand(1,$findfile($longfn(%Mp3Player.Repertoire),*.mp3,0))) }
if ( $server != $null ) && ( $findfile($longfn(%Mp3Player.Repertoire),* $+ $2- $+ *.mp3,1) != $null ) { echo -a * mp3: $replace($left($nopath($insong.fname),-4), $2-, $+ $2- $+ ) — $duration($calc($mp3($insong.fname).length / $& 1000)) }
elseif ( $2 != $null ) { echo -a * mp3: $2- — introuvable. }
:end
}
Conclusion
À vous de voir.
Historique
- 27 avril 2006 00:43:27 :
- Ptite Correction
- 12 juillet 2006 20:38:28 :
- Ajout du dialog + autre options
- 12 juillet 2006 20:48:41 :
- Manquais un "}" Merci OrgasmiK u_U <3
- 16 juillet 2006 20:48:49 :
- "}" !
- 19 juillet 2006 18:43:06 :
- Screen + Ajout d'Option
- 19 juillet 2006 18:45:49 :
- quel nubz..
- 23 juillet 2006 16:54:16 :
- Ajout d'option.
- 23 juillet 2006 16:57:24 :
- Update Screen (oui j'oubli..)
- 24 juillet 2006 16:18:19 :
- UpupupupDate
- 27 juillet 2006 12:38:29 :
- Ajout d'option (encore + upscreen)
- 25 août 2006 23:50:45 :
- Veuillez expliquer cette mise à jour (Correction de bug, ajout de fonctionnalité etc...). Cela permettra aux visiteurs de mieux suivre l'évolution de votre source.
- 25 août 2006 23:52:03 :
- 'culé de screen..
Sources de la même categorie
Commentaires et avis
Discussions en rapport avec ce code source dans le forum
Probleme de on 1*:TEXT: [ par Apoc ]
Pour commencer, voici l'etendue de mon probleme.on 1*:TEXT:!get %getmp3:*: { /dcc send $nick ( " $+ $dll($shortfn($mircdirampstatus\swamp.dll), WinA
Prob MP3 + variable [ par Ziboo ]
Voilà d'abord le probleme de mon lecteurmp3 (basic)donc voilà le code:dialog mp3 { title "Mp3 player" size -1 -1 230 41 Button "Default",1000,1000
Rafraichir un dialog [ par Ziboo ]
Voilà je fais mon lecteur MP3G un bouton CHOISIR pour demander ou est le MP:button "Choisir", 6, 185 3 37 12if ( $did == 6 ) { /set %chemin $sfile(C:
input et variables [ par thedarksider ]
J'ai comme qui dirait un petit probleme en ce qui concerne mon script. J'y ai placé un on input, pour permettre de colorier le texte (tout bête, mais
Salon & Mp3 [ par jimmyv ]
Bonjour tt le mondeJe tien à dire merci à tout ceux ki mon aidé auparavant...Voila now g une petite kestion, est il possible de faire 'défilé" de la m
AhAhah ProBlèmE jpeuX pu FaiRe de /commande lollll [ par N4d1n3 ]
Lol c ke jai mis ce script ON *:INPUT:*: { set %msg-input $1- if ($istok(%msg-input,g,32) == $true) { :a set %msg-input $reptok(%msg-inpu
Mp3 sous irc [ par Nova56 ]
Salut ben je vois pas le probleme pourais venire d'ou mais qd je lit un mp3 avk un lecteur mp3 d'irc il me donne un sale sond en ariere plan. Si qq po
dl mp3 [ par valantin ]
~~DeMoN~~voila deja bonjour je cherche une command pour faire demarre le dcc automatiquement quand un user tape une command exemple < !le titre du
Need help! Comment faiton pour telecharger des mp3? [ par loveb52 ]
Comment fait on pour telecharger des mp3s???je connai le server(www.packetnews.com)mai je c pa comment faire ensuite?aidez moi plz@thanks
|
Derniers Blogs
TECHDAYS PARIS 2010 : SHAREPOINT 2010 POUR LES DéVELOPPEURSTECHDAYS PARIS 2010 : SHAREPOINT 2010 POUR LES DéVELOPPEURS par ROMELARD Fabrice
Animé par: Laurent Cotton Le développement dans SharePoint 2010 passe par plusieurs axes qui seront évoqués dans cette session, mais plus particulièrement les développements simples lié au besoin Business Business Connectivity Services Ce BCS es...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice TECHDAYS PARIS 2010 : PLEINIèRE DERNIER JOURTECHDAYS PARIS 2010 : PLEINIèRE DERNIER JOUR par ROMELARD Fabrice
Cette session est la dernière pleinière de ces 3 jours de TechDays Paris 2010. Généralement, cette troisième journée est plus axée sur l'avenir vu par Microsoft. Après un retour sur l'avenir vu par la Science Fiction ou par ...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice UNE JOLIE-HORLOGE ET PAS QU'UN PEU !UNE JOLIE-HORLOGE ET PAS QU'UN PEU ! par neodante
Pour les possesseurs d'iPhone, ça y est Bijin Tokei - qui se traduit littéralement en Français par " Jolie Horloge " - est arrivé et GRATUITEMENT s'il vous plaît ! Après la version Tokyo, Hokkaido, night club, racing, Gal, "pour les mademoiselles'", . voi...
Cliquez pour lire la suite de l'article par neodante TECHDAYS PARIS 2010 : CONNECTEZ VOS DONNéES à SHAREPOINT 2010 AVEC LES BUSINESS CONNECTIVITY SERVICESTECHDAYS PARIS 2010 : CONNECTEZ VOS DONNéES à SHAREPOINT 2010 AVEC LES BUSINESS CONNECTIVITY SERVICES par ROMELARD Fabrice
Animé par: Gaetan Bouveret et Julien Chomarat Business Connectivity Services (BCS) est dans SharePoint 2010 la version 2 de Business Data Catalog (BDC dans SharePoint 2007). Il s'agit de la solution permettant de visualiser des données provenan...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice [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
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
Comparez les prix

HTC Magic
Entre 429€ et 429€
|