TehBeyond Posted October 1, 2006 Share Posted October 1, 2006 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 Link to comment Share on other sites More sharing options...
Helge Posted October 1, 2006 Share Posted October 1, 2006 FileInstall("C:\Music\Sound1.mp3", "C:\Programs\Sound1.mp3") Link to comment Share on other sites More sharing options...
AzKay Posted October 1, 2006 Share Posted October 1, 2006 (edited) Look at FileInstall() EDIT:: You beat me =O Edited October 1, 2006 by AzKay # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
TehBeyond Posted October 1, 2006 Author Share Posted October 1, 2006 FileInstall("C:\Music\Sound1.mp3", "C:\Programs\Sound1.mp3")I have tried that, unfortuanately, I don't want the file in the same folder... I want it compiled *inside* the .exe. Is this even possible in Auto It? I would have told you I have Alzheimer's, but I forgot.My Splendid-Tastic Blog Link to comment Share on other sites More sharing options...
Helge Posted October 1, 2006 Share Posted October 1, 2006 Eehm...everything is possible I guess, but I can't remember seeing anyone do such a thing. Link to comment Share on other sites More sharing options...
CWorks Posted October 1, 2006 Share Posted October 1, 2006 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") Link to comment Share on other sites More sharing options...
TehBeyond Posted October 2, 2006 Author Share Posted October 2, 2006 just have it extract to temp folderFileInstall("C:\Music\Sound1.mp3", @TempDir & "\Sound1.mp3")and then delete it when exiting the programFileDelete(@TempDir & "\Sound1.mp3")Thanks CWorks! It worked perfectly! I would have told you I have Alzheimer's, but I forgot.My Splendid-Tastic Blog 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