derkaderka Posted November 26, 2010 Share Posted November 26, 2010 Hey, I am trying to put a splash image in my program. How do I make it so that the program finds the image in the same folder as the .exe file no matter what computer it is on. Like if I have it in a folder on my desktop, but I give it to somebody and they have it in a folder on their documents. How can I make it so that it looks in the local folder, not the specific path. Thanks. Link to comment Share on other sites More sharing options...
JohnOne Posted November 26, 2010 Share Posted November 26, 2010 Start by looking at the @ScriptDir macro in the help AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
derkaderka Posted November 26, 2010 Author Share Posted November 26, 2010 ok thanks Link to comment Share on other sites More sharing options...
SadBunny Posted November 26, 2010 Share Posted November 26, 2010 You might want to give FileInstall() a look as well. Using that, you can just pack the image file (and any other file) with the executable and unpack it at runtime to a dir of your choosing (for instance you might want to write to the desktop dir or My Documents or something due to file write permissions). There are also more advanced options... #AutoIt3Wrapper_res_file_add Roses are FF0000, violets are 0000FF... All my base are belong to you. 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