Pezzie Posted December 30, 2004 Share Posted December 30, 2004 I have tried a few different things, but i cant get i to work.I can get WMP 9 to autostart playing the file and Windows media player 2, but somehow my install doesn't seem to be able to find those programs shortly after install of windows.Then i tried media player ( called mplay32 in win/system32 ) but it wont autostart the mp3 file - it will play it though.Does any one know have this can be done or know how to autostart a mp3 file in media player ? Link to comment Share on other sites More sharing options...
a06lp Posted December 30, 2004 Share Posted December 30, 2004 not so much a WPI problem, but i remember reading a thread a while back where someone created a program to do this very thing. i hate to be cliche, but try a search... Link to comment Share on other sites More sharing options...
BritishBulldog Posted December 30, 2004 Share Posted December 30, 2004 yes i remember that thread, a search should call it up Link to comment Share on other sites More sharing options...
Pezzie Posted December 30, 2004 Author Share Posted December 30, 2004 plz tell me what to search on then, cuz i have been trying for a week now and all my searches never seem to give any result.I have read one thread about playing music during setup, but that one dont really work so... Link to comment Share on other sites More sharing options...
MCT Posted December 30, 2004 Share Posted December 30, 2004 http://www.msfn.org/board/index.php?act=Search&mode=adv&f=93i think this maybe what they are talkin abouthttp://www.msfn.org/board/index.php?showto...ched+Program%22 Link to comment Share on other sites More sharing options...
Pezzie Posted December 30, 2004 Author Share Posted December 30, 2004 Thats was the one thread i was talking about - and it still dont work. Taken from the web of the program:QuickView Pro is a 32 bit protected mode program and therefore needs at least a 80386 processor and a VGA card. It will run under DOS 3.0 or better, or in a DOS shell under Windows 95/98/ME and OS/2.But thx for showing me the search function - could never have found that on my own. Link to comment Share on other sites More sharing options...
gunsmokingman Posted December 30, 2004 Share Posted December 30, 2004 Try This Add This To The cmdlines.txt , I call this PlayMusic.cmdI Gunsmokingman give all users full permission to do what ever they want with this script.Here Is The Code For The Cmd Scriptecho offclsmode con: cols=55 lines=3color 9fTITLE Play Some Musicecho.echo Play Some Music::start wmplayer.exe::or Thisstart mplayer2.exeping -n 2 127.0.0.1>nulexitThis will run at the cmdlines.txt , It Will, Open either of those 2 .Edit to your needs.PlayMusic.cmd Link to comment Share on other sites More sharing options...
Pezzie Posted December 30, 2004 Author Share Posted December 30, 2004 Sry GunAs i was saying - the problem seems to be that i cant load either of those - dont ask me why by it dont work in Virtual PC.I did something similar to start with just added the title behind like this:start /wait mplayer2.exe WPI.mp3This will work fine in my normal windows, but not in Virtual PC.After a made an auto it exe to turn the music of after a certain time and when that closed WPI started. Link to comment Share on other sites More sharing options...
gunsmokingman Posted December 30, 2004 Share Posted December 30, 2004 Try This In The cmdlines.txt place the script in the same spot as cmdlines.txt I Gunsmokingman give all users full permission to do what ever they want with this script. [COMMANDS]"REGEDIT /S 000.reg" "REGEDIT /S 020.reg" "REGEDIT /S 040.reg" "REGEDIT /S 060.reg" "REGEDIT /S 080.reg" "UaKillTime.cmd" < this has my music cmd plus a few more things i do like play solotaire "Theme.cmd" "RunOnceEx.cmd"Also To Test The Cmd just right click than hit open than hit run next than a security warning say yes to run the cmd or no to not run. If It Is ran, then it will open Mplayer2 In \Program Files\Windows Media Player This runs perfect on my machine. Are You Sure It Not A Virtual PC, Problem. Link to comment Share on other sites More sharing options...
Pezzie Posted December 31, 2004 Author Share Posted December 31, 2004 Can i run this from [Guirunonce] before i call WPI ?I dont know if its a virtual pc problem- last time the install finished and i look in the windir/system32, but i couldn't find wmplayer or mplayer2, only mplay32. Link to comment Share on other sites More sharing options...
gunsmokingman Posted December 31, 2004 Share Posted December 31, 2004 That The Location\Program Files\Windows Media PlayerJust Save That Cmd Than Make A Text File Called cmdlines.txt save it in the :\XPCD\$OEM$ Directory[COMMANDS]"PlayMusic.cmd"This Will Run At The 13 min mark. You Can also Have It Play a music list.Below Are 2 examples Of How To Run This.start mplayer2.exe H:\AudioFiles\dance.m3u start H:\AudioFiles\dance.m3u<-On Mine It Open WMP10[Guirunonce]I dont Use This method or WPI So I cant Help There. Link to comment Share on other sites More sharing options...
Pezzie Posted December 31, 2004 Author Share Posted December 31, 2004 Ok thx for the help.Status now is that I load a self-mixed song and then a webpage with a countdown before WPI starts.Haven't cross tested it yet - but wanna know if this problem is related to Virtual PC.Nice that someone does that instead of just say: do the search ! Link to comment Share on other sites More sharing options...
gunsmokingman Posted December 31, 2004 Share Posted December 31, 2004 There Are 2 Files In Here One To Start The Cmd And The Other The Cmd.Here A Simple Menu In Cmd That Allow For 3 Music ChoicesPlay A game Of SolitaireThere a Demo Count Down In ItThere A Radio Station That Will Play In WMP10To Use This In A Ua Add This To A cmdlines.txtI made This A self Extracting Winrar To Make It Easier To Use, andto not stop the install process.I Gunsmokingman give all users full permission to do what ever they want with this script.[COMMANDS]"MyMusic.exe"Here Is The StartMusic.cmdecho offcolor 5fTitle Start MYMUSICMYMUSIC.CMDRED MEANS USE CARE WHEN EDITINGGREEN EDIT TO YOUR NEEDSPURPLE ARE THE ACTION IT WILL PERFORMORANGE ACTION FOR DEMO PURPOSE TO TEST THIS WITHOUT EDITINGBLUE CLEAN UP PARTEG There 3 Files That Get Deleted At The End. If You Change AnyOf The Scripts Names Remeber To Change The Names In The Script To MatchThe ChangesECHO OFFCLSCOLOR F2MODE CON: COLS=55 LINES=9TITLE MYMUSIC:MAINclsMODE CON: COLS=55 LINES=9TITLE MYMUSICECHO.ECHO C1 COUNTDOWN DEMO 1 ® COUNTDOWNECHO M1 FOR MUSIC LIST 1 ® DANCEECHO M2 FOR MUSIC LIST 2 ® GSMALLMUSICECHO M2 FOR MUSIC LIST 3 ® ALTROCKECHO G1 PLAY A GAME OF ® ® SOLITAIREECHO R1 RADIO STATION ® ® CLUBNETRADIOECHO Quit FOR QUIT ®SET Choice=SET /P Choice=Type the letter and press Enter:IF NOT '%Choice%'=='' SET Choice=%Choice:~0,4%IF /I '%Choice%'=='C1' GOTO C1IF /I '%Choice%'=='M1' GOTO M1IF /I '%Choice%'=='M2' GOTO M2IF /I '%Choice%'=='M3' GOTO M3IF /I '%Choice%'=='G1' GOTO G1IF /I '%Choice%'=='R1' GOTO R1IF /I '%Choice%'=='Quit' GOTO QUITECHO "%Choice%" is not valid. Please try again.GOTO MAIN:M1clscolor f7TITLE PLAYLIST 1ECHO.ECHO Press Key to Returnstart H:\AudioFiles\dance.m3uSET /P = PLAY DANCE.m3uGOTO MAIN:M2clscolor 4fTITLE PLAYLIST 2ECHO.start H:\AudioFiles\GsmAllMusic.m3u ECHO Press Key to ReturnSET /P = PLAY GSMALLMUSICGOTO MAIN :M3CLScolor 2bTITLE PLAYLIST 3ECHO.start H:\AudioFiles\altrock.m3uECHO Press Key to ReturnSET /P = PLAY ALTROCKGOTO MAING1:clscolor b2TITLE GAMES 1ECHO.start SOL.EXEECHO Press Key to ReturnSET /P = PLAY SOLITAIREGOTO MAIN:C1echo offclsmode con: Cols=55 Lines=5Color 9fTITLE COUNTDOWN> Rest1.vbs Echo Wscript.sleep 875SET R1=Start /w Rest1.vbsCLSECHO.Echo .5%R1%CLSECHO.Echo ..4%R1%CLSECHO.Echo ...3%R1%CLSECHO.ECHO ....2%R1%CLSECHO.ECHO .....1%R1%CLSCOLOR F2ECHO.SET /P = CONTINUEDEL REST1.VBSGOTO MAIN:R1clscolor b2TITLE GAMES 1ECHO.START http://www.clubnetradio.com/listen.php?type=2^&bitrate=high /wmplayer.exe ECHO Press Key to ReturnSET /P = CLUB NET RADIOGOTO MAIN:QUITclsECHO.TITLE GOODBYE!> %Systemdrive%\CU1.vbs echo Dim Garbage>> %Systemdrive%\CU1.vbs echo set Garbage = (CreateObject("Scripting.FileSystemObject"))>> %Systemdrive%\CU1.vbs echo msgbox "Starting Clean UP?",vbokonly+48,"Clean Up">> %Systemdrive%\CU1.vbs echo Garbage.DeleteFile ("\MyMusic.cmd")>> %Systemdrive%\CU1.vbs echo Garbage.DeleteFile ("\STARTMUSIC.cmd")>> %Systemdrive%\CU1.vbs echo Garbage.DeleteFile ("\CU1.vbs")>> %Systemdrive%\CU1.vbs echo wscript.sleep 500>> %Systemdrive%\CU1.vbs echo Delete=("\MyMusic.cmd")>> %Systemdrive%\CU1.vbs echo Delete=("\STARTMUSIC.cmd")>> %Systemdrive%\CU1.vbs echo Delete=("\CU1.vbs")>> %Systemdrive%\CU1.vbs echo wscript.sleep 500>> %Systemdrive%\CU1.vbs echo msgbox "Clean UP Completed?",vbokonly+48,"Clean Up Those Files"start /w %Systemdrive%\CU1.vbsSET /P = YOU SAID QUIT SO GOODBYE!EXITTo Edit This Just Extract the MyMusic.cmd To Any LocationEdit it to what you want.NextI use winrar and so because there are 2 cmd in there I just deletethe MyMusic File From The SFX after i have edit the extracted one.ThanI add The edit one back in.MyMusic.exe Link to comment Share on other sites More sharing options...
sixpack Posted December 31, 2004 Share Posted December 31, 2004 nice batch gunsmokingman Link to comment Share on other sites More sharing options...
Pezzie Posted December 31, 2004 Author Share Posted December 31, 2004 Excellent - nice script Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now