Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mbikin MP3player dri batch yuk
#1
Wah-yellow_16 
hehehe iseng" lgy nih sory... :D
stelah lama Mikirin hidup yang semakin rumit ini akhirnya gw kembali lagi ke sni, hahahaHantu
Di ksempatan kali ni gw mo share tentang MP3player buatan gw yg di perbaharui dengan fungsi Next, prev, volume, dan add playlist.
Penasaran? dari batch loh... >.<
ini dia script nya...

Code:
@echo off color 0a title Batch mp3 player cls set Playlist=1 Set Status=Stop :mp3 cls echo #####^\ _ /##### echo #( )# ^| _( )__ ^| #( )# echo ##### ^| /_ / ^| ##### echo #" "# ^| ___m/I_ //_____ ^| #" "# echo # O # ^|____#-x.\ /++m\ /.x-#____^| # O # echo #m.m# ^| /" \ ///###\\\ / "\ ^| #m.m# echo #####^/ ######/ \###### \##### echo ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ echo ³ BMp3 V1 ³ echo ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ echo ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ echo ³ Status: %Status% ³ echo ³ File : Playlist%playlist% ³ echo ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ echo ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ echo ³ List: ³ echo ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ echo ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ type "%temp%\*.M3U" echo ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ set /p la=Command^> if %la%== V goto Volume if %la%== @ goto add if %la%== @+ goto addo if %la%== P goto Play if %la%== S goto Stop if %la%== D goto Delete if %la%== + goto Next if %la%== - goto Previous if %la%== X TASKKILL /F /IM wmplayer.exe /T & exit if %la%== x TASKKILL /F /IM wmplayer.exe /T & Exit echo invalid input... :Help echo Plaese Type "@" to add Mp3 to New Playlist echo Plaese Type "@+" to add MP3 in same playlist echo Plaese Type "V" to Volume echo Please Type "P" to Play echo Please Type "S" to Stop echo Plaese Type "D" to Delete Playlist echo Please Type "+" to Next echo Plaese Type "-" to Previous pause>nul cls goto Mp3 :next set /a Playlist=%playlist% + 1 goto play :Previous set /a Playlist=%playlist% - 1 if %playlist%== -1 Goto No goto play :no echo No MP3 To Playing set /a Playlist=%playlist% + 1 pause>nul goto Mp3 :delete set /a no=%no% - 1 del "%temp%\Playlist%playlist%.m3u" goto MP3 :volume sndvol32 goto Mp3 :add set /a no=%no% + 1 Echo set ObjFSO = CreateObject^("UserAccounts.CommonDialog"^)>"%temp%\dialog.vbs" Echo ObjFSO.Filter = "Mp3 Files|*.MP3">>"%temp%\dialog.vbs" Echo InitFSO = ObjFSO.ShowOpen>>"%temp%\dialog.vbs" Echo WScript.Echo ObjFSO.Filename>>"%temp%\dialog.vbs" For /f "tokens=*" %%a in ('Cscript.exe "%temp%\dialog.vbs"') do set MPF=%%a echo %MPF% >>"%temp%\Playlist%no%.m3u" goto Mp3 :addo Echo set ObjFSO = CreateObject^("UserAccounts.CommonDialog"^)>"%temp%\dialog.vbs" Echo ObjFSO.Filter = "Mp3 Files|*.MP3">>"%temp%\dialog.vbs" Echo InitFSO = ObjFSO.ShowOpen>>"%temp%\dialog.vbs" Echo WScript.Echo ObjFSO.Filename>>"%temp%\dialog.vbs" For /f "tokens=*" %%a in ('Cscript.exe "%temp%\dialog.vbs"') do set MPF=%%a echo %MPF% >>"%temp%\Playlist%no%.m3u" goto Mp3 :play if %Playlist%== 0 goto no set Status=Play title Batch Mp3 Player [Status: Playing] [File:"%temp%\Playlist%playlist%.m3u"] echo On Error Resume Next >>"%temp%\Silencer.vbs" echo dim wshshell, dos >>"%temp%\Silencer.vbs" echo set Wshshell^=Wscript.CreateObject("Wscript.Shell") >>"%temp%\Silencer.vbs" echo dos ^= wshshell.expandenvironmentstrings("%%comspec%%") >>"%temp%\Silencer.vbs" echo wshshell.run ("wmplayer %temp%\Playlist%playlist%.m3u"), vbhide >>"%temp%\Silencer.vbs" call "%temp%\Silencer.vbs" ping localhost -n 1>nul del "%temp%\Silencer.vbs" cls :MP31 Echo ._________________________________________. Echo ^| ,!!!!!!!!!, ^| Echo ^| .!!!!!!!!!!!!!!!!!. ^| Echo ^| .!!!!!"" ""!!!!!. ^| Echo ^| !!!!" ,$$MMM$$, "!!!! ^| Echo ^| !!" .$MMMMMMMMMMMMM$. "!! ^| Echo ^| !! .MMMMMM"MMMMM"MMMMMM. !! ^| Echo ^| !! .MMMMMMM! !MMM! !MMMMMMM. !! ^| Echo ^| !! .MMMMMMMM" "MMM" "MMMMMMMM. !! ^| Echo ^| !$ .MMMMMMMM$ $M$ $MMMMMMMM. $! ^| Echo ^| .:$M $MMMMMMMM! !M! !MMMMMMMM$ M$:. ^| Echo ^|:!$M!:MMMM"MMMM: :M: :MMMM"MMMM:!M$!:^| Echo ^|!$$M $MMM" $MMM! !M! !MMM$ "MMM$ M$$!^| Echo ^|$$M$ MM" "MMMMM$ $M$ $MMMMM" "MM $M$$^| Echo ^|$$M$ M$.$ $MMMMM. .MMM. .MMMMM$ $.$M $M$$^| Echo ^|!$$M MM$M$ MMMMM! !MMM! !MMMMM $M$M$ M$$!^| Echo ^|"!$M!:MMMM "MMMMM.MMMMM.MMMMM" MMMM:!M$!"^| Echo ^|!$$M MM$M$ MMMMM! !MMM! !MMMMM $M$M$ M$$!^| Echo ^|"!$M!:MMMM "MMMMM.MMMMM.MMMMM" MMMM:!M$!"^| Echo ^| "!$M $MMM$ "MMMMMMMMMMMMMMM" $MMM$ M$!" ^| Echo ^| "! "MMMM. "MMMMMMMMMMMMM" .MMMM" !" ^| Echo ^| "MMMM$ ""MMMMMMM"" $MMMM" ^| Echo ^| "MMMM$. """ .$MMMM" | Echo ^| "MMMM$, ,$MMMM" ^| Echo ^| "$MMMMMmmmMMMMM$" ^| Echo ^| ""$$MMM$$"" ^| Echo ^|-----------------------------------------^| Echo ^| What Are You Think About Batch Now????? ^| Echo '-----------------------------------------' echo ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ echo ³Batch MP3 Player With Batch ³ echo ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ echo ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ echo ³ Status: %Status% ³ echo ³ File : Playlist%playlist% ³ echo ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ echo ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ echo ³ List: ³ echo ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ echo ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ type "%temp%\*.M3U" echo ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ set /p la=Command^> if %la%== V goto Volume if %la%== @ goto add if %la%== @+ goto addo if %la%== P goto Play if %la%== S goto Stop if %la%== D goto Delete if %la%== + goto Next if %la%== - goto Previous if %la%== X TASKKILL /F /IM wmplayer.exe /T & exit if %la%== x TASKKILL /F /IM wmplayer.exe /T & Exit echo invalid input... echo Plaese Type "@" to add playlist echo Plaese Type "@+" to add playlist in same playlist echo Plaese Type "V" to Volume echo Please Type "P" to Play echo Please Type "S" to Stop echo Plaese Type "D" to Delete Playlist echo Please Type "+" to Next echo Plaese Type "-" to Previous pause>nul cls goto Mp31 :Stop set Status=Stop title Batch Mp3 Player [Status: Stop] [File:"%temp%\Playlist%playlist%.m3u"] TASKKILL /F /IM wmplayer.exe /T goto MP3

Hahaha setelah diliat scriptnya akhirnya ketahuan dech klo msih pke bntuan wmplayer :P
oh iya sebelum pake pencet dlo "?" (tanda tanya) wat liat helpnya.
Plaese Type "@" to add playlist
Plaese Type "@+" to add playlist in same playlist
Plaese Type "V" to Volume
Please Type "P" to Play
Please Type "S" to Stop
Plaese Type "D" to Delete Playlist
Please Type "+" to Next
Plaese Type "-" to Previous
Sekian Dulu dari saya...
Trims :D
Code:
#include <brain.h> #include <spirit.h> void kerjaKeras() { read(apa_saja); experiment(apa_saja); learn(apa_saja); } main() { int i; for (i = 0; i < 31337; i ++) { kerjaKeras(); } }


Join in Here : http://www.blackrebelions.ucoz.com/
Reply
#2
nice share gan.. Ehm
nambah lagi ilmu ane.. Cendol
[Image: banner1.png]
Reply
#3
oh ya ane lupa, klopas lagi ndengerin lagu trus ente close, ente kgk bkl bsa ngehentiin lagunya klo gx lwat taskmanager. cra na end process wmplayer.exe nya.
tapi tenang... wat ngatasi it wa dah kasih menu pilihan wat ngeclose skaligus matiin lagunya. yaitu dengan pncet "X"
hehehe sory telat inpo na
Code:
#include <brain.h> #include <spirit.h> void kerjaKeras() { read(apa_saja); experiment(apa_saja); learn(apa_saja); } main() { int i; for (i = 0; i < 31337; i ++) { kerjaKeras(); } }


Join in Here : http://www.blackrebelions.ucoz.com/
Reply
#4
task manager nya kenapa om disable,..?
bukannya yang nyable task manager itu virus ya,..?
[Image: 207qlpg.gif]
Reply
#5
mantab om....
dpet mainan baru nich.... Ngakak
[Image: wtsnle.gif]


Reply
#6
(12-23-2011, 09:04 PM)badwolves1986 Wrote: task manager nya kenapa om disable,..?
bukannya yang nyable task manager itu virus ya,..?

kgk ad yg d disable gan, mank ad maen registry na d tuh code? gx kan? hehehe tenang ni bkan vir, 100% aman kok. Culas
Code:
#include <brain.h> #include <spirit.h> void kerjaKeras() { read(apa_saja); experiment(apa_saja); learn(apa_saja); } main() { int i; for (i = 0; i < 31337; i ++) { kerjaKeras(); } }


Join in Here : http://www.blackrebelions.ucoz.com/
Reply
#7
keren om Mantab

ane coba dulu ah Bahagia

[Image: 467898856656158]
Quote:The closer you look, the less you'll see.
-=[ irc.hacker-newbie.org ]=-
Reply
#8
MANGGIL LAGU NYA GMN GAN...??????
maaf....
[Image: 185199_3184785837214_995694628_n.jpg]
Reply
#9
manggil lgu na pke printah @ atw @+ gan... sory ru bls...
hehhe
Code:
#include <brain.h> #include <spirit.h> void kerjaKeras() { read(apa_saja); experiment(apa_saja); learn(apa_saja); } main() { int i; for (i = 0; i < 31337; i ++) { kerjaKeras(); } }


Join in Here : http://www.blackrebelions.ucoz.com/
Reply
#10
itu cara masukin playlist nya gimana omz ??
[Image: 3315892149.png]
Warning my VPS Speed !
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Nut_16 AntiVirus with Batch File Hyda 13 168 10-08-2010, 04:27 PM
Last Post: Hyda
  Kalkulator dengan Batch Hyda 3 52 09-27-2009, 02:40 PM
Last Post: Hyda

Forum Jump:


Users browsing this thread: 1 Guest(s)