EliTe_ThuT Posted May 6, 2007 Share Posted May 6, 2007 Hey, I wanted to know if there was a way to do like c++ and to include a image file inside a .exe (when compiling) so we can use it in that script without having to have the image in a directory or something... Thx Link to comment Share on other sites More sharing options...
James Posted May 6, 2007 Share Posted May 6, 2007 I was just going to post that in the AutoIt Feature Requests, but I did a search.. And I found yours, but I think its been asked before.. I will edit in a minute. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
BrettF Posted May 6, 2007 Share Posted May 6, 2007 I was just going to post that in the AutoIt Feature Requests, but I did a search.. And I found yours, but I think its been asked before.. I will edit in a minute.File Install to temp, file delete from temp Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
James Posted May 6, 2007 Share Posted May 6, 2007 Lol, good point, but I think he means so you dont have to do that. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
BrettF Posted May 6, 2007 Share Posted May 6, 2007 Lol, good point, but I think he means so you dont have to do that.Far as I know... there is no other way Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
EliTe_ThuT Posted May 6, 2007 Author Share Posted May 6, 2007 Far as I know... there is no other way But what is this install temp way?? Link to comment Share on other sites More sharing options...
erebus Posted May 6, 2007 Share Posted May 6, 2007 FileInstall("blah.jpg", @TempDir & "\blah.jpg", 1) ; Install from script's dir to windows temp dir and overwrite if already exists ; The rest of your code here FileDelete(@TempDir & "\blah.jpg") ; Delete the file before the script end Exit Link to comment Share on other sites More sharing options...
EliTe_ThuT Posted May 6, 2007 Author Share Posted May 6, 2007 FileInstall("blah.jpg", @TempDir & "\blah.jpg", 1) ; Install from script's dir to windows temp dir and overwrite if already exists ; The rest of your code here FileDelete(@TempDir & "\blah.jpg") ; Delete the file before the script end Exit But why would people use that...if they need the image...and if it's in the script dir...just call it from the script dir...why installing it to temp??? Link to comment Share on other sites More sharing options...
erebus Posted May 6, 2007 Share Posted May 6, 2007 (edited) It's so simple. You use this trick if you don't want your users to see what the graphics of your script are. In addition if you don't want even to alter them, you may use MD5 or other hashes to check either each file's integrity and so on. If you don't see a reason to use such a thing, then don't. Use the classic way instead. Edited May 6, 2007 by erebus 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