Sign in to follow this  
Followers 0
dakota

photos in my .exe

7 posts in this topic

is there a way to incoperate photos that are used in my script into the .exe when i compile them so that i dont have to send all the photos them selves when i send my compiled scripts to my freinds????

Share this post


Link to post
Share on other sites



is there a way to incoperate photos that are used in my script into the .exe when i compile them so that i dont have to send all the photos them selves when i send my compiled scripts to my freinds????

Take a look at FileInstall() in the help file.

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

That kinda does it is there a way to make it not extract this images is for my splashimage

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Edit: Massive Type O_O

No but you can just do what the MANUAL aka HELP tells you to do :D

$destination = @TempDir & "\mySplash.bmp"
FileInstall("C:\foo.bmp", $destination) ;source must be literal string

SplashImageOn("Splash Screen", $destination)
Sleep(3000)
SplashOff()
Edited by Sublime

Share this post


Link to post
Share on other sites

That kinda does it is there a way to make it not extract this images is for my splashimage

No you must install the file somewhere, then call to it... however you can delete it right after you've used it if you wish.

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

so this should work but it does not do i need to declare the variable first??

FileInstall ( 'C:\test\splash.gif', $mypicuture )
SplashImageOn ( "Opening", "$mypicuture" ,400 , 250 , 500 , 500 ,1 )
Sleep(5000)
SplashOff()

Share this post


Link to post
Share on other sites

so this should work but it does not do i need to declare the variable first??

FileInstall ( 'C:\test\splash.gif', $mypicuture )
SplashImageOn ( "Opening", "$mypicuture" ,400 , 250 , 500 , 500 ,1 )
Sleep(5000)
SplashOff()
$mypicture = @TempDir & '\abc.gif'
FileInstall ( 'C:\test\splash.gif', $mypicuture )
SplashImageOn ( "Opening", "$mypicuture" ,400 , 250 , 500 , 500 ,1 )
Sleep(5000)
SplashOff()
FileDelete($mypicture)

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

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