Jump to content

photos in my .exe


Recommended Posts

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????

Link to comment
Share on other sites

  • Moderators

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.

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • Moderators

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.

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.

Link to comment
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()
Link to comment
Share on other sites

  • Moderators

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)

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...