Sign in to follow this  
Followers 0
gigi1

How to include picture?

4 posts in this topic

How can i include some pictures (which i use in my GUI) in the .exe file?

i've read of the FileInstall function, but then 1)does the picture stay in the .exe after compiling? 2)How can i find the temporary files directory for the computer the script is running? (beacuse i guess i need to put the picture somewhere if using FileInstall)

thanks, and sorry for noobness :mellow:

Share this post


Link to post
Share on other sites

Hi.

Have a look at _TempFile()

Regards, Rudi.


Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Share this post


Link to post
Share on other sites

Hi and Welcome to the forums!

does the picture stay in the .exe after compiling?

Did you really check FileInstall() in the helpfile? It's all explained.

To get the temp files dir you would use the macro @TempDir. Macros are used just like a variable, so a short example:

MsgBox(0, "", @TempDir)

Another option would be the Resources UDF, with the advantage that it doesn't need to extract anything, but it's tricky to use. You need to read through EVERYTHING in the first post, and try all the examples. Maybe read the rest of the thread to while you're at it.

But since you're new to all this I recommend you start by trying out FileInstall(), and move to the resources udf when it's really needed.

Share this post


Link to post
Share on other sites

thanks

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0