123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|569|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> C/C++/C#/Other -> html exe compiler

Wed, 16 Jun 2010, 07:32
ShadowIce
Does anyone know where to find an html to exe compiler that allows music to play?

|edit| FFS, stop using stupidly long titles.. |edit|
Wed, 16 Jun 2010, 07:46
HoboBen
I don't think you'd easily find such a thing. More likely, you'd find an exe that interprets and renders html instead (in essence a miniature browser or an embedded browser, usually just using explorer, gecko or webkit as the rendering engine).

The easiest way on windows would be to create a .hta, a "hypertext application". These are basically .html files renamed to .hta - but they are displayed without an ugly Internet Explorer window and have the ability to read and write to disk and run other programs.

For an example, this is a hypertext application I made - open the files with notepad and you'll notice that it's just simple html and javascript.

There's more discussion about hta files here.

-=-=-
blog | work | code | more code
Wed, 16 Jun 2010, 08:31
ShadowIce
thanks alot ben!

this is PERFECT!



~Shadow
Wed, 16 Jun 2010, 08:38
JL235
HTML Executable looks like a good option, but I've not tried it. Tbh you can find loads if you do a quick Google.
Wed, 16 Jun 2010, 08:58
ShadowIce
what about this?

where can i find an hta to exe

which allows u to be able to play music

in the background?
Wed, 16 Jun 2010, 09:15
JL235
Why does a HTML to exe compiler not solve your issue?

It's my understanding that HTA is technology for running a HTML file within an empty window. i.e. it's still just a HTML document, it's just run differently. So a HTA to exe compiler would be the same as a HTML to exe compiler.
Wed, 16 Jun 2010, 09:22
ShadowIce
it doesn't solve my issue

because an html to exe doesn't

allow u to play music
Wed, 16 Jun 2010, 09:31
JL235
Did you look at the one I linked to? It does support audio, as well as Flash and Silverlight which could alternatively be used for playing audio. For example there are plenty of Flash audio players around online you could embed.

Besides if you can play audio in a HTA then it'll also work in HTML, because it's just running a HTML document. That was my point.
Wed, 16 Jun 2010, 09:38
ShadowIce
well i know, but what im saying is

if it's in an exe,

then no 1 can read the source

unless they reverse engineer it.

which is difficult on its own.

plus, i've tried it already

it didnt let me play music.
Wed, 16 Jun 2010, 09:40
Erebel55
*Off Topic*
You

dont

have to

say everything

like this.

-=-=-
Lava Monkey
https://play.google.com/store/apps/details?id=com.lvm.lavamonkey
Wed, 16 Jun 2010, 09:43
ShadowIce
ignoring erebel, does anyone have a tutorial on how to embed a music file into an html using html executable?
Wed, 16 Jun 2010, 10:05
ShadowIce
nvm, i figured it out again.

ONLY thanks to hoboben
Wed, 16 Jun 2010, 10:09
JL235
I

agree

with

Erebel.
Wed, 16 Jun 2010, 11:22
CodersRule
You'll still be able to reverse-engineer the .hta file even if it's masked as an exe. It's not hard, so there's no point in putting effort into making it unhackable if it won't work.
Wed, 16 Jun 2010, 11:26
shroom_monk
Why would you want to hide the source code anyway? It's not like people are going to steal it.

-=-=-
A mushroom a day keeps the doctor away...

Keep It Simple, Shroom!
Wed, 16 Jun 2010, 13:42
Stealth
Any good HTML programmer can take a screenshot of your content and convert it back into code. Plus web delivery is easier for visitors.

Anyway, you can play background music via HTML by using flash like JL235 mentioned.


Also, be nice to the community. We don't have to help you.

-=-=-
Quit posting and try Google.
Wed, 16 Jun 2010, 14:20
JL235
If your using a plugin for playing audio, I'd advise looking at using VBScript + Windows Media Player ActiveX object over Flash for this.

My thinking is that there will probably be a Windows Media Player ActiveX object bundled with Windows (or something similar you can use). Although Flash is very common, it's not always bundled with Windows. So using an ActiveX object that is always there will make it more likely to work.

If it's compiled to an exe then you also shouldn't get any of the security permissions issues you (quite rightly) get when using VBScript and ActiveX objects in ordinary HTML.
Wed, 16 Jun 2010, 15:49
Mog
I write bad haikus

When i need help from coders

I ignore erebel.


I'm confused here - Are you using HTML as sort of a skin / container for an object that can play music? Because HTML itself isn't really a language - it's more of a formatting structure. Are you planning on embedding some kind of java / flash music player? I'm whole-heartedly confused since you shot down JLs suggestion even though it seems to be the most viable.

So, a quote from our good pal, The MultiVAX, "NOT ENOUGH DATA FOR MEANINGFUL ANSWER"




-=-=-
I am Busy Mongoose - My Website

Dev PC: AMD 8150-FX, 16gb Ram, GeForce GTX 680 2gb

Current Project: Pyroxene
Wed, 16 Jun 2010, 20:26
CodersRule
I don't see why HTML is being used for this. At this point, practically anything else, including a BASIC language, would be better than using HTML.
Thu, 17 Jun 2010, 02:09
Afr0
What CodersRule said.
Also, why the hell would you wanna plug a music file into an exe file? It dramatically increases the filesize, loading time and is normally considered bad practice (unless it is absolutely the only way to distribute the music with the executable).
The only reason I can see you wanting this is if the music file you're embedding is illegal and you wouldn't want anyone to be able to accuse you of distributing it illegally...
Seriously, just load the music file externally and distribute it in a zip with the executable!

-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!
Thu, 17 Jun 2010, 05:24
JL235
Afr0 It dramatically increases the filesize, loading time and is normally considered bad practice (unless it is absolutely the only way to distribute the music with the executable).
He never said he wanted the music file in the exe. But if your loading the music file at start-up, then it should take approximately the same amount of time to start the exe when the music file is included or not. Under both circumstances you need to load the music data into memory and begin decoding it.
Thu, 17 Jun 2010, 18:30
steve_ancell
Erebel55 *Off Topic*
You

dont

have to

say everything

like this.

LOL...

I do that quite a lot.

I didn't realize it was that annoying.
Fri, 18 Jun 2010, 00:32
Afr0

if it's in an exe,

then no 1 can read the source


This made me think he wanted the music in the exe, but I guess he was thinking of the HTML code...

Anyways, embedded music is typically loaded at startup. At least loading it externally allows you to choose when you want to load it so it doesn't appear that the exe takes longer to load.

-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!