Jump to content

Recommended Posts

Posted

I have been writing a complex program and I have finally debugged it. I decided to compile it into an exe so I can show it off to friends, but I have run into an issue. I cannot seem to get the SoundPlay function to work, because I cannot get the file I want it to play compiled into the .exe.

Can someone walk me through this? Let's say that the sound file is C:\Music\Sound1.mp3 and I am going to compile my script into C:\Programs\FinalVersion.exe How do I include the .mp3 into the .exe?

Any assistance would be appreciated....

I would have told you I have Alzheimer's, but I forgot.My Splendid-Tastic Blog

Posted (edited)

Look at FileInstall()

EDIT::

You beat me =O

Edited by AzKay
# MY LOVE FOR YOU... IS LIKE A TRUCK- #
Posted

just have it extract to temp folder

FileInstall("C:\Music\Sound1.mp3", @TempDir & "\Sound1.mp3")

and then delete it when exiting the program

FileDelete(@TempDir & "\Sound1.mp3")

Posted

  CWorks said:

just have it extract to temp folder

FileInstall("C:\Music\Sound1.mp3", @TempDir & "\Sound1.mp3")

and then delete it when exiting the program

FileDelete(@TempDir & "\Sound1.mp3")

Thanks CWorks! It worked perfectly!

I would have told you I have Alzheimer's, but I forgot.My Splendid-Tastic Blog

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...