Immensee Posted June 5, 2006 Share Posted June 5, 2006 Heey, i have also a question, I hate that i need to seperate images i use for my program... I mean: MyProgram.exe requires the image: lame.JPG and if lame.JPG isn't in the same folder, it won't show this image on MyProgram.exe, am i wrong? If i ain't, is there a way to put lame.JPG into MyProgram.exe so that lame.JPG doesn't need to get seperated from MyProgram.exe..? Well, I hope the quik reply as usual from AutoIt Forums -ImMenSe Link to comment Share on other sites More sharing options...
Xenobiologist Posted June 5, 2006 Share Posted June 5, 2006 Hi, have you looked a FileInstall()? So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
Immensee Posted June 5, 2006 Author Share Posted June 5, 2006 Hi,have you looked a FileInstall()?So long,MegaHey, no i haven't very interresting but.... how does it work ? You talk too fast -ImMenSe Link to comment Share on other sites More sharing options...
herewasplato Posted June 5, 2006 Share Posted June 5, 2006 ...how does it work...It works very well. :-) [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
Xenobiologist Posted June 5, 2006 Share Posted June 5, 2006 Hey, no i haven't very interresting but.... how does it work ? You talk too fast -ImMenSeHI, just look into the helpfile how to use FileInstall(). It includes your jpg in to the exe. Before drawing the GUI, you FileInstall the jpg and use it as before.Wenn closing the script, you could delete the jpg or just let it be. More clear now?So long,Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
Immensee Posted June 5, 2006 Author Share Posted June 5, 2006 HI, just look into the helpfile how to use FileInstall(). It includes your jpg in to the exe. Before drawing the GUI, you FileInstall the jpg and use it as before. Wenn closing the script, you could delete the jpg or just let it be. More clear now? So long, Mega A little So like: FileInstall("lame.JPG",@ScriptDir) installs the JPG into the script dir. and if i compile (au3 --> .exe) it will automatically (without lame.JPG) create lame.JPG (without the information of lame.JPG) by itself into the script dir But that makes no sense... it creates an image without having the information... Aaah confused -ImMenSe Link to comment Share on other sites More sharing options...
Xenobiologist Posted June 5, 2006 Share Posted June 5, 2006 HI, it includes the file like : a zip contains files. After compiled your script to an exe with FileInstall in it, the exe is like the zip containing the lame.jpg + the script.exe When running the exe it installs the file, so that you can use it. So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
herewasplato Posted June 5, 2006 Share Posted June 5, 2006 (edited) ...if i compile (au3 --> .exe) it will automatically (without lame.JPG) create lame.JPG...No. When you compile the script it will gather up the picture and make it a part of the exe file - think of it like a ZIP file.Edit: too slow - who knew that those typing classes would come in handy - I should have stayed awake. Edited June 5, 2006 by herewasplato [size="1"][font="Arial"].[u].[/u][/font][/size] 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