| View previous topic :: View next topic |
| Author |
Message |
Autex675
Joined: 11 May 2008 Posts: 9
|
Posted: Sun May 11, 2008 12:54 am Post subject: Combine a Sound with exe? |
|
|
Some games can play sounds without any sound files because the sound files are combined with the executable. How can I combine a sound file such as a wave file with a compiled Autohotkey script so that the sounds in the compiled script don't need to be separate files? 
Last edited by Autex675 on Sun May 11, 2008 10:59 pm; edited 2 times in total |
|
| Back to top |
|
 |
Superfraggle
Joined: 02 Nov 2004 Posts: 753 Location: London, UK
|
Posted: Sun May 11, 2008 12:57 am Post subject: |
|
|
Search the help file for fileinstall. _________________ Steve F AKA Superfraggle
http://r.yuwie.com/superfraggle |
|
| Back to top |
|
 |
Autex675
Joined: 11 May 2008 Posts: 9
|
Posted: Sun May 11, 2008 4:06 pm Post subject: FileInstall |
|
|
I don't think that file install will work for this because it puts files into compiled scripts and then when you run the compiled script it puts the file back out of it again. I don't think it can permanently store wave files.
P.S. How can you make a file that is combined with a compiled script play?
Thanks  |
|
| Back to top |
|
 |
Oberon
Joined: 18 Feb 2008 Posts: 408
|
Posted: Sun May 11, 2008 4:36 pm Post subject: |
|
|
Why do you post such meaningless titles? _________________
 |
|
| Back to top |
|
 |
Troll Guest
|
Posted: Mon May 12, 2008 1:06 am Post subject: |
|
|
FileInstall will work, stop being such a negative nooblet.
You can quote me on that if you like.  |
|
| Back to top |
|
 |
Autex675
Joined: 11 May 2008 Posts: 9
|
Posted: Mon May 12, 2008 2:54 am Post subject: |
|
|
I tried fileinstall and it didn't do what I wanted!  |
|
| Back to top |
|
 |
Z Gecko Guest
|
|
| Back to top |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 2364 Location: Australia, Qld
|
Posted: Mon May 12, 2008 9:19 am Post subject: |
|
|
| That would still require some method of loading or playing the sound data. SKAN has demonstrated how to do this, though with a WAV embedded as a resource. |
|
| Back to top |
|
 |
Troll Guest
|
Posted: Mon May 12, 2008 9:01 pm Post subject: |
|
|
Why are you being such a negative nooblet about FileInstall?
Just have it file install into a temporary folder, play the sound, then delete the folder. If its security you're worried about, use FileSetAttrib to make it +HSR (Hidden, System Protected, Read Only) |
|
| Back to top |
|
 |
|