Jump to content

Play a mp3 file before WPI starts


Recommended Posts

Solution to my original problem: Getting some music to play before WPI starts.

I fooled a bit around with flash and created a projector file.

This file is then runned before WPI playing the music and showing what

application you can choose from in WPI.

Link to comment
Share on other sites


  • 2 weeks later...

Media player classic, (Sorry dont actualy have the download link at hands, will play about anny audio or even video files from a command switch, and does not require any install procedure. just use runonce or whatever, to /start $filepath$\ mpc.exe /PLAY $FILEPATH\music.mp3

Link to comment
Share on other sites

@Pezzie Great Job Mate, realy cewl way of intrducing your software,

id wish i could do the same, but i realy know nothing about flash or annything,

could you explain some parts about it, (what tools to use, for example?

Link to comment
Share on other sites

  • 3 weeks later...

****... I cant find a way to play mp3s while WPI is launching...

All i can do is launching media player classic and therefor its waiting to end before launchong WPI, the pb is i've about 5 to 10 min of mp3s :P .. I also tried with this Unatteded player i've found here UAP but same thing.. :(

here is my start.cmd

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEX

REG ADD %KEY% /V TITLE /D "Install" /f

REG ADD %KEY%\001 /VE /D "Finalizing" /f
REG ADD %KEY%\001 /V 1 /D "%systemdrive%\Install\MediaPlayerClassic\mplayerc.exe" /f
REG ADD %KEY%\001 /V 2 /D "%systemdrive%\Temp\muzik.cmd" /f
REG ADD %KEY%\001 /V 3 /D "%systemdrive%\Install\wpi.cmd" /f

and this is my musik.cmd

cmdow @ /HID
@echo off

"%systemdrive%\Program Files\Media Player Classic\mplayerc.exe" "%systemdrive%\temp\muzik\install.m3u" /close /play /minimized
EXIT

Anybody have a clue??

thanks

Link to comment
Share on other sites

Try This This Will Run From Around The 13 Min Mark

CmdLines.txt

[COMMANDS]
"UaPlayMusic.exe"

I Removed the Cmd file that started the vbs and have re did the vbs script

UaPlayMusic.vbs

To Edit

1:\ Open The SFX With WinRar Leave Open

2:\ Than Extract The UaPlayMusic.vbs To A Spot To Edit

3:\ Rename the UaPlayMusic.vbs in WinRar to UaPlayMusic1.vbs

4:\ Open UaPlayMusic.vbs with Notepad or What Ever Editor You Use

5:\ Edit this line MFile = "H:\AudioFiles\dance.m3u" to your music file location

6:\ Now Switch Back To The Winrar SFX And Delete UaPlayMusic1.vbs

7:\ Now Add Your Edited UaPlayMusic.vbs To The Winrar SFx

Notes for the vbs script

Example of a Comment line

In Active Line

'Act.Run ("mplayer2.exe MFile")

Active Line

Act.Run ("mplayer2.exe MFile")

This is also a comment line '/->

The script is set to run a file on my computer so it will produce the error msgbox that I have added.

On Error Resume Next

Dim Act, Fso, MFile, SD

Set Act = CreateObject("WScript.Shell")

SD = Act.ExpandEnvironmentStrings("%SystemDrive%")

Set Fso = CreateObject("Scripting.FileSystemObject")

'/-> VARIBLE FOR FILE NAME, FILL IN THE NAME

MFile = "H:\AudioFiles\dance.m3u"

'/-> This is for the UA install as there is no task bar at the 13 minute mark

'Act.Run ("mplayer2.exe "& MFile)

'/-> Checks to see if the file is at the location

If Fso.FileExists(MFile) Then

'/-> 2 Set Media Player to be in the taskbar,if running from Windows

Act.Run ("mplayer2.exe " & MFile),2

WScript.sleep 1250

Else

'/-> If the file is missing from it location

MsgBox "Windows cannot find this file" & vbCrLf & MFile, 0 + 48, "Error Missing File"

End If

'/-> Checks to see if the file is at the location

If Fso.FileExists(SD & "\UaPlaymusic.vbs") Then fso.DeleteFile(SD & "\UaPlaymusic.vbs") End If

Edited by gunsmokingman
Link to comment
Share on other sites

  • 1 year later...

i know it's an old topic but i think u can use this

1. download MPlayer, RunHiddenConsole.exe and the music u want

2. put them in the same folder and compress them with 7-zip

3. download 7zS.sfx and put it in the folder where the compressed archive is

4. open notepad and write this

;!@Install@!UTF-8!
RunProgram="RunHiddenConsole.exe mplayer.exe TheMusicFile.mp3"
;!@InstallEnd@!

Save as config.txt with UTF-8 encoding by selecting "UTF-8" from the dropdown menu in the "Save As..." dialog in Notepad. Put it in the folder of the 7-zip archive

5. Open a command prompt. write "cd /D drive:\path\to\the\folder\where\is\the\compressed\archive" with no quotes

6. write "copy /b 7zs.sfx + config.txt + TheNameOfTheArchive.7z InsertAnythingHere.exe" with no quotes

7. now if you open the exe file music will play but the player will not show.

Now place it in cmdlines.txt or something else

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...