Windows 7 Home Page Music

tdc

Joined
Feb 14, 2010
Messages
110
Reaction score
0
Hi
is there any way to play a music file when I open my homepage.
I am an F1 fan and I have BBC F1 as my homepage.
I would like to add the F1 theme music to this page.
Thanks
 

EvanDavis

Silly Fool
Joined
Jun 20, 2010
Messages
5,299
Reaction score
681
What browser are you using ? The only thing I can think of is to create a batch file that would open your browser and the audio tack you want playing at the same time.
 

tdc

Joined
Feb 14, 2010
Messages
110
Reaction score
0
Hi
Thanks for getting back.
Browser is Firefox.
Never heard of a batch file!
Is it a relatively easy operation?
Thanks again
 

EvanDavis

Silly Fool
Joined
Jun 20, 2010
Messages
5,299
Reaction score
681
Batch File info

Batch files are pretty simple to make.

Right click anywhere on your desktop go to new then text document. Now just click anywhere on your desktop. Now go to text document you just created and double click it and notepad will open.

in notepad type Start Firefox.exe
Then save it as Firefox.bat
when you double click on the firefox.bat file saved on your desktop firefox will open.

for what you want to do type as follows into notepad and save as firefox.bat

Start Firefox.exe
Start " enter the full path of the track you want played "

Save that as Firefox.bat.
You can also change the .bat icon as in the image below to a Firefox icon

2vm7hmt.jpg
 

tdc

Joined
Feb 14, 2010
Messages
110
Reaction score
0
Thanks for the info.
I will try it out later and let you know how I get on!!
 

Ian

Administrator
Joined
Feb 23, 2002
Messages
19,873
Reaction score
1,499
Another way may to be create a "greasemonkey" script for Firefox - this lets you add little snippets of code to webpages (only for your session) and I'm sure it must be possible to play music this way.

Here's the link to the plugin:

https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/?src=hp-dl-mostpopular

Evan's method will be easier than this, but I just wanted to post a link in case it was of use.
 

tdc

Joined
Feb 14, 2010
Messages
110
Reaction score
0
I have got to enter the full path but unfortunately I don't know how to find this.
I have tried searching for the answer with no luck.
Hope you can help.
Thanks Ian as you can tell my technical skills are lacking.
ps I saved the the file (wav) to my desktop which opens with Windows media player (not sure if this is important or not).
 
Last edited:

EvanDavis

Silly Fool
Joined
Jun 20, 2010
Messages
5,299
Reaction score
681
Save .wav file to your music folder. Then go to music folder and right click on the file and go to properties. There you will be able to find the path to the track.

I am looking into Ian's idea of using Greasemonkey, just because I like a challenge. I will post here if I figure it out.
 

tdc

Joined
Feb 14, 2010
Messages
110
Reaction score
0
When I try to save the file as Firefox.bat a warning comes up that Firefox.bat already exists do I want to replace it!!
Does c:\users\public\music sound like the full path to you?
Hope I'm not boring you!
 

tdc

Joined
Feb 14, 2010
Messages
110
Reaction score
0
Hi
I have been working on this for a while with no success.
I have got the .bat icon on the desktop and this does open Firefox.

Do I type the path of the music file in the same .bat as above or do I have to create a new .bat file with a different saved name?

I have experimented with this. When I type Start Firefox.exe
then Start "c:\users\public\public music"

Firefox opens but no music.
A black screen opens at the same time c:\Users\Tim and Carolien\Desktop>
I found the path of the music file in properties\ details\ folder path. I guess this is correct.
Thanks
 

Ian

Administrator
Joined
Feb 23, 2002
Messages
19,873
Reaction score
1,499
I've got an alternative that may work a little better for you, as it avoids having to run a batch file :)

If you create a file somewhere on your PC called f1music.html, and open it in notepad and add this content:

Code:
<!DOCTYPE HTML>
<html>
<body>
   <audio autoplay>
       <source src="f1music.wav" type="audio/wav" />
       Your browser does not support the <audio> element.
   </audio>
</body>
</html>

Add the f1music.wav file to the same directory as the html file.

Then, open up FF and open the HTML file you've just created and the F1 homepage as two tabs. Then, make them both open as the default homepage using this link:

http://blog.mozilla.org/theden/2012/06/18/firefox-tip-set-multiple-home-pages/

That should do the trick :)
 

tdc

Joined
Feb 14, 2010
Messages
110
Reaction score
0
Thanks but I am stmped at the first hurdle.
How do I create a file called f1music.html and open it in notepad.
 

Ian

Administrator
Joined
Feb 23, 2002
Messages
19,873
Reaction score
1,499
I've uploaded the html document for you (zipped), so you can extract that and skip the first step :)
 

Attachments

  • f1music.zip
    309 bytes · Views: 128

tdc

Joined
Feb 14, 2010
Messages
110
Reaction score
0
Thanks for the download.
I have added the content to Notepad.
To add the .wav file to the html file I highligted all the content and pasted it to the html?
This seemed to work!
I opened FF and the f1 web page is my default.
Q.how do I make the html file open as a tab.

I am not going to give up YET
Thanks
 

Ian

Administrator
Joined
Feb 23, 2002
Messages
19,873
Reaction score
1,499
I'm not sure I understand, but here's what I would do:

  • Unzip the file I attached and extract it to a location - for example c:\F1\
  • Copy your music wav file to the same directory and rename it to f1music.wav
  • Open the html file in c:\F1\ in FireFox and confirm that the music plays
  • If it does, keep the page open and then load the F1 homepage in a new tab
  • Once both tabs are open, add them both as the homepage using this link: http://blog.mozilla.org/theden/2012/06/18/firefox-tip-set-multiple-home-pages/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top